Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: src/codegen-arm.cc

Issue 14886: Bring toiger up to date with bleeding edge 984. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/assembler-ia32-inl.h ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen-arm.cc
===================================================================
--- src/codegen-arm.cc (revision 1004)
+++ src/codegen-arm.cc (working copy)
@@ -1307,10 +1307,7 @@
fail_label->Branch(ne);
__ cmp(r0, Operand(Smi::FromInt(range)));
fail_label->Branch(ge);
- __ add(pc, pc, Operand(r0, LSL, 2 - kSmiTagSize));
- // One extra instruction offsets the table, so the table's start address is
- // the pc-register at the above add.
- __ stop("Unreachable: Switch table alignment");
+ __ SmiJumpTable(r0, case_targets);
JumpTarget table_start(this);
table_start.Bind();
@@ -1319,7 +1316,6 @@
case_targets[i]->Jump();
frame_ = new VirtualFrame(table_start.expected_frame());
}
-
GenerateFastCaseSwitchCases(node, case_labels, &table_start);
}
« no previous file with comments | « src/assembler-ia32-inl.h ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698