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

Unified Diff: runtime/vm/instructions_arm64.cc

Issue 2392613002: Reapply "Lazy deopt without code patching." (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.h ('k') | runtime/vm/instructions_dbc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_arm64.cc
diff --git a/runtime/vm/instructions_arm64.cc b/runtime/vm/instructions_arm64.cc
index 60ef9bff42f0c82bc1dc047ca303aaa3c83fbda0..3bd5c3fb8d32f51e9c093dc0083a41b3943e9ce5 100644
--- a/runtime/vm/instructions_arm64.cc
+++ b/runtime/vm/instructions_arm64.cc
@@ -333,30 +333,6 @@ void CallPattern::SetTargetCode(const Code& target) const {
}
-void CallPattern::InsertDeoptCallAt(uword pc, uword target_address) {
- Instr* movz0 = Instr::At(pc + (0 * Instr::kInstrSize));
- Instr* movk1 = Instr::At(pc + (1 * Instr::kInstrSize));
- Instr* movk2 = Instr::At(pc + (2 * Instr::kInstrSize));
- Instr* movk3 = Instr::At(pc + (3 * Instr::kInstrSize));
- Instr* blr = Instr::At(pc + (4 * Instr::kInstrSize));
- const uint32_t w0 = Utils::Low32Bits(target_address);
- const uint32_t w1 = Utils::High32Bits(target_address);
- const uint16_t h0 = Utils::Low16Bits(w0);
- const uint16_t h1 = Utils::High16Bits(w0);
- const uint16_t h2 = Utils::Low16Bits(w1);
- const uint16_t h3 = Utils::High16Bits(w1);
-
- movz0->SetMoveWideBits(MOVZ, IP0, h0, 0, kDoubleWord);
- movk1->SetMoveWideBits(MOVK, IP0, h1, 1, kDoubleWord);
- movk2->SetMoveWideBits(MOVK, IP0, h2, 2, kDoubleWord);
- movk3->SetMoveWideBits(MOVK, IP0, h3, 3, kDoubleWord);
- blr->SetUnconditionalBranchRegBits(BLR, IP0);
-
- ASSERT(kDeoptCallLengthInBytes == 5 * Instr::kInstrSize);
- CPU::FlushICache(pc, kDeoptCallLengthInBytes);
-}
-
-
SwitchableCallPattern::SwitchableCallPattern(uword pc, const Code& code)
: object_pool_(ObjectPool::Handle(code.GetObjectPool())),
data_pool_index_(-1),
« no previous file with comments | « runtime/vm/instructions_arm64.h ('k') | runtime/vm/instructions_dbc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698