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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 2380403003: Lazy deopt without code patching. (Closed)
Patch Set: remove tracing register assignment 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/code_patcher_x64.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc
index 18aa1a181cfd579a6d56da5c27cca27090a9a832..bc09820f1d356a1eead880153679055a7738950b 100644
--- a/runtime/vm/deopt_instructions.cc
+++ b/runtime/vm/deopt_instructions.cc
@@ -123,10 +123,12 @@ DeoptContext::DeoptContext(const StackFrame* frame,
if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) {
THR_Print(
- "Deoptimizing (reason %d '%s') at pc %#" Px " '%s' (count %d)\n",
+ "Deoptimizing (reason %d '%s') at "
+ "pc=%" Pp " fp=%" Pp " '%s' (count %d)\n",
deopt_reason(),
DeoptReasonToCString(deopt_reason()),
frame->pc(),
+ frame->fp(),
function.ToFullyQualifiedCString(),
function.deoptimization_counter());
}
@@ -343,11 +345,11 @@ void DeoptContext::FillDestFrame() {
if (FLAG_trace_deoptimization_verbose) {
for (intptr_t i = 0; i < frame_size; i++) {
intptr_t* to_addr = GetDestFrameAddressAt(i);
- OS::PrintErr("*%" Pd ". [%p] 0x%" Px " [%s]\n",
- i,
- to_addr,
- *to_addr,
- deopt_instructions[i + (len - frame_size)]->ToCString());
+ THR_Print("*%" Pd ". [%p] 0x%" Px " [%s]\n",
+ i,
+ to_addr,
+ *to_addr,
+ deopt_instructions[i + (len - frame_size)]->ToCString());
}
}
}
@@ -398,12 +400,12 @@ intptr_t DeoptContext::MaterializeDeferredObjects() {
intptr_t line, column;
script.GetTokenLocation(token_pos, &line, &column);
String& line_string = String::Handle(script.GetLine(line));
- OS::PrintErr(" Function: %s\n", top_function.ToFullyQualifiedCString());
+ THR_Print(" Function: %s\n", top_function.ToFullyQualifiedCString());
char line_buffer[80];
OS::SNPrint(line_buffer, sizeof(line_buffer), " Line %" Pd ": '%s'",
line, line_string.ToCString());
- OS::PrintErr("%s\n", line_buffer);
- OS::PrintErr(" Deopt args: %" Pd "\n", deopt_arg_count);
+ THR_Print("%s\n", line_buffer);
+ THR_Print(" Deopt args: %" Pd "\n", deopt_arg_count);
}
return deopt_arg_count;
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698