Revision: 18351
Author:   [email protected]
Date:     Wed Dec 18 15:31:41 2013 UTC
Log:      Fix MIPS switch statement breakage.

BUG=

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

Modified:
 /branches/bleeding_edge/src/mips/full-codegen-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Wed Dec 18 10:40:26 2013 UTC +++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Wed Dec 18 15:31:41 2013 UTC
@@ -1039,6 +1039,15 @@
     CallIC(ic, RelocInfo::CODE_TARGET, clause->CompareId());
     patch_site.EmitPatchInfo();

+    Label skip;
+    __ b(&skip);
+    PrepareForBailout(clause, TOS_REG);
+    __ LoadRoot(at, Heap::kTrueValueRootIndex);
+    __ Branch(&next_test, ne, v0, Operand(at));
+    __ Drop(1);
+    __ jmp(clause->body_target());
+    __ bind(&skip);
+
     __ Branch(&next_test, ne, v0, Operand(zero_reg));
     __ Drop(1);  // Switch value is no longer needed.
     __ Branch(clause->body_target());

--
--
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