[turbofan] Emit constant pool before blocking it in AssembleArchTableSwitch.
BUG=chromium:468749 LOG=NO TEST=Emscripten/NBodyJava Review URL: https://codereview.chromium.org/1014093005 Cr-Commit-Position: refs/heads/master@{#27322}
This commit is contained in:
parent
597992522d
commit
3a79259c0d
@ -802,6 +802,7 @@ void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) {
|
||||
ArmOperandConverter i(this, instr);
|
||||
Register input = i.InputRegister(0);
|
||||
size_t const case_count = instr->InputCount() - 2;
|
||||
__ CheckConstPool(true, true);
|
||||
__ cmp(input, Operand(case_count));
|
||||
__ BlockConstPoolFor(case_count + 2);
|
||||
__ ldr(pc, MemOperand(pc, input, LSL, 2), lo);
|
||||
|
Loading…
Reference in New Issue
Block a user