Revision: 18200
Author:   [email protected]
Date:     Mon Dec  2 15:27:57 2013 UTC
Log:      ARM: Tidy up Throw and Mod

Small fixes to Throw and Mod Lithium instructions.

TEST=none
BUG=
[email protected]

Review URL: https://codereview.chromium.org/98603005
http://code.google.com/p/v8/source/detail?r=18200

Modified:
 /branches/bleeding_edge/src/arm/lithium-arm.cc
 /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/lithium-arm.cc Mon Dec 2 11:24:31 2013 UTC +++ /branches/bleeding_edge/src/arm/lithium-arm.cc Mon Dec 2 15:27:57 2013 UTC
@@ -1474,7 +1474,7 @@
     if (instr->HasPowerOf2Divisor()) {
       ASSERT(!right->CanBeZero());
       LModI* mod = new(zone()) LModI(UseRegisterAtStart(left),
-                                     UseOrConstant(right));
+                                     UseConstant(right));
       LInstruction* result = DefineAsRegister(mod);
       return (left->CanBeNegative() &&
               instr->CheckFlag(HValue::kBailoutOnMinusZero))
=======================================
--- /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Mon Dec 2 13:14:07 2013 UTC +++ /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Mon Dec 2 15:27:57 2013 UTC
@@ -2047,8 +2047,7 @@


 void LCodeGen::DoThrow(LThrow* instr) {
-  Register input_reg = EmitLoadRegister(instr->value(), ip);
-  __ push(input_reg);
+  __ push(ToRegister(instr->value()));
   ASSERT(ToRegister(instr->context()).is(cp));
   CallRuntime(Runtime::kThrow, 1, instr);

--
--
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/groups/opt_out.

Reply via email to