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

Unified Diff: runtime/vm/instructions_arm.cc

Issue 2404973002: Switchable call scheduling. (Closed)
Patch Set: . Created 4 years, 2 months 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 | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_arm.cc
diff --git a/runtime/vm/instructions_arm.cc b/runtime/vm/instructions_arm.cc
index a385a075bbb8397b0072c6d0410cf2802a90584f..a3abab897714ccba0147ce701268f4033f93c213 100644
--- a/runtime/vm/instructions_arm.cc
+++ b/runtime/vm/instructions_arm.cc
@@ -258,15 +258,15 @@ SwitchableCallPattern::SwitchableCallPattern(uword pc, const Code& code)
ASSERT(*(reinterpret_cast<uword*>(pc) - 1) == 0xe12fff3e);
Register reg;
- uword stub_load_end =
- InstructionPattern::DecodeLoadWordFromPool(pc - 2 * Instr::kInstrSize,
+ uword data_load_end =
+ InstructionPattern::DecodeLoadWordFromPool(pc - Instr::kInstrSize,
&reg,
- &target_pool_index_);
- ASSERT(reg == CODE_REG);
- InstructionPattern::DecodeLoadWordFromPool(stub_load_end,
- &reg,
- &data_pool_index_);
+ &data_pool_index_);
ASSERT(reg == R9);
+ InstructionPattern::DecodeLoadWordFromPool(data_load_end - Instr::kInstrSize,
+ &reg,
+ &target_pool_index_);
+ ASSERT(reg == CODE_REG);
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/instructions_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698