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

Unified Diff: runtime/vm/instructions_mips.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/instructions_arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_mips.cc
diff --git a/runtime/vm/instructions_mips.cc b/runtime/vm/instructions_mips.cc
index 737094e69cc6b014e3a45b1692f5de957e52ae36..cc51a3df20c5f5ca25728861f627a1e217fcc6f6 100644
--- a/runtime/vm/instructions_mips.cc
+++ b/runtime/vm/instructions_mips.cc
@@ -227,15 +227,15 @@ SwitchableCallPattern::SwitchableCallPattern(uword pc, const Code& code)
ASSERT(*(reinterpret_cast<uword*>(pc) - 2) == 0x0320f809);
Register reg;
- uword stub_load_end =
- InstructionPattern::DecodeLoadWordFromPool(pc - 3 * Instr::kInstrSize,
+ uword data_load_end =
+ InstructionPattern::DecodeLoadWordFromPool(pc - 2 * Instr::kInstrSize,
&reg,
- &target_pool_index_);
- ASSERT(reg == CODE_REG);
- InstructionPattern::DecodeLoadWordFromPool(stub_load_end,
- &reg,
- &data_pool_index_);
+ &data_pool_index_);
ASSERT(reg == S5);
+ InstructionPattern::DecodeLoadWordFromPool(data_load_end - Instr::kInstrSize,
+ &reg,
+ &target_pool_index_);
+ ASSERT(reg == CODE_REG);
}
« no previous file with comments | « runtime/vm/instructions_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698