Revision: 19910
Author: [email protected]
Date: Thu Mar 13 17:38:40 2014 UTC
Log: MIPS: Remove uses of CanBeNegative() in HMod.
Port r19878 (74a9002)
BUG=v8:3204
LOG=y
[email protected]
Review URL: https://codereview.chromium.org/197463008
Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=19910
Modified:
/branches/bleeding_edge/src/mips/lithium-codegen-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Thu Mar 13
15:16:20 2014 UTC
+++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Thu Mar 13
17:38:40 2014 UTC
@@ -1082,7 +1082,7 @@
int32_t mask = divisor < 0 ? -(divisor + 1) : (divisor - 1);
Label dividend_is_not_negative, done;
- if (hmod->left()->CanBeNegative()) {
+ if (hmod->CheckFlag(HValue::kLeftCanBeNegative)) {
__ Branch(÷nd_is_not_negative, ge, dividend, Operand(zero_reg));
// Note: The code below even works when right contains kMinInt.
__ subu(dividend, zero_reg, dividend);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.