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

Unified Diff: runtime/vm/instructions_dbc.cc

Issue 2382953004: Revert "Lazy deopt without code patching." (Closed)
Patch Set: Created 4 years, 3 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_dbc.h ('k') | runtime/vm/instructions_mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_dbc.cc
diff --git a/runtime/vm/instructions_dbc.cc b/runtime/vm/instructions_dbc.cc
index b3f50ad49e20e7877e7491ba759414a649b6bd59..7d8dab7bc30697e0a64a90149cea64f3d6a2d84d 100644
--- a/runtime/vm/instructions_dbc.cc
+++ b/runtime/vm/instructions_dbc.cc
@@ -67,6 +67,18 @@ CallPattern::CallPattern(uword pc, const Code& code)
}
+int CallPattern::DeoptCallPatternLengthInInstructions() {
+ UNIMPLEMENTED();
+ return 0;
+}
+
+
+int CallPattern::DeoptCallPatternLengthInBytes() {
+ UNIMPLEMENTED();
+ return 0;
+}
+
+
NativeCallPattern::NativeCallPattern(uword pc, const Code& code)
: object_pool_(ObjectPool::Handle(code.GetObjectPool())),
end_(pc),
@@ -169,7 +181,7 @@ void CallPattern::SetTargetCode(const Code& target_code) const {
}
-void CallPattern::InsertDeoptCallAt(uword pc) {
+void CallPattern::InsertDeoptCallAt(uword pc, uword target_address) {
const uint8_t argc = Bytecode::IsCallOpcode(Bytecode::At(pc)) ?
Bytecode::DecodeArgc(Bytecode::At(pc)) : 0;
*reinterpret_cast<Instr*>(pc) = Bytecode::Encode(Bytecode::kDeopt, argc, 0);
« no previous file with comments | « runtime/vm/instructions_dbc.h ('k') | runtime/vm/instructions_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698