Reviewers: danno, Paul Lind, dusmil, kisg, palfia, Hannes Payer,
Description:
MIPS: Enable optimization of functions with generic switches.
Port r18347 (64ac25c)
Fix of r18351
BUG=
Please review this at https://codereview.chromium.org/94103007/
SVN Base: https://github.com/v8/v8.git@gbl
Affected files (+2, -2 lines):
M src/mips/full-codegen-mips.cc
Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index
4b6d28000b43b2f7a0aaca18a9e27daab004e420..b94f351d3038c3f6e8af38ed0709aafdebd2d947
100644
--- a/src/mips/full-codegen-mips.cc
+++ b/src/mips/full-codegen-mips.cc
@@ -1040,12 +1040,12 @@ void
FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
patch_site.EmitPatchInfo();
Label skip;
- __ b(&skip);
+ __ Branch(&skip);
PrepareForBailout(clause, TOS_REG);
__ LoadRoot(at, Heap::kTrueValueRootIndex);
__ Branch(&next_test, ne, v0, Operand(at));
__ Drop(1);
- __ jmp(clause->body_target());
+ __ Branch(clause->body_target());
__ bind(&skip);
__ Branch(&next_test, ne, v0, Operand(zero_reg));
--
--
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.