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

Unified Diff: runtime/vm/precompiler.cc

Issue 2793943002: Fix disassembly of OSR functions. (Closed)
Patch Set: Remove unused function Created 3 years, 9 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/disassembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index dc6c1fcf16f6c4bfaa174135c88c051e94b091ed..da3473927aa2e45734306dee8c3741f9c906651c 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -1246,7 +1246,8 @@ RawFunction* Precompiler::CompileStaticInitializer(const Field& field,
if ((FLAG_disassemble || FLAG_disassemble_optimized) &&
FlowGraphPrinter::ShouldPrint(parsed_function->function())) {
- Disassembler::DisassembleCode(parsed_function->function(),
+ Code& code = Code::Handle(parsed_function->function().CurrentCode());
+ Disassembler::DisassembleCode(parsed_function->function(), code,
/* optimized = */ true);
}
return parsed_function->function().raw();
@@ -3532,10 +3533,12 @@ static RawError* PrecompileFunctionHelper(Precompiler* precompiler,
}
if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) {
- Disassembler::DisassembleCode(function, optimized);
+ Code& code = Code::Handle(function.CurrentCode());
+ Disassembler::DisassembleCode(function, code, optimized);
} else if (FLAG_disassemble_optimized && optimized &&
FlowGraphPrinter::ShouldPrint(function)) {
- Disassembler::DisassembleCode(function, true);
+ Code& code = Code::Handle(function.CurrentCode());
+ Disassembler::DisassembleCode(function, code, true);
}
return Error::null();
} else {
« no previous file with comments | « runtime/vm/disassembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698