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

Unified Diff: runtime/vm/object.cc

Issue 2903993002: Remember deopt-id -> context-level mappings in var descriptors. (Closed)
Patch Set: update descriptor tests Created 3 years, 7 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/kernel_to_il.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index aeab50c73a68f13e50668dddd432638aa54cf98b..0446fa78fdd2db4a346817324f257d93dfc425ef 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12584,12 +12584,13 @@ static int PrintVarInfo(char* buffer,
const RawLocalVarDescriptors::VarInfoKind kind = info.kind();
const int32_t index = info.index();
if (kind == RawLocalVarDescriptors::kContextLevel) {
- return OS::SNPrint(buffer, len, "%2" Pd
- " %-13s level=%-3d scope=%-3d"
- " begin=%-3d end=%d\n",
+ return OS::SNPrint(buffer, len,
+ "%2" Pd
+ " %-13s level=%-3d"
+ " begin=%-3d end=%d\n",
i, LocalVarDescriptors::KindToCString(kind), index,
- info.scope_id, static_cast<int>(info.begin_pos.Pos()),
- static_cast<int>(info.end_pos.Pos()));
+ static_cast<int>(info.begin_pos.value()),
+ static_cast<int>(info.end_pos.value()));
} else if (kind == RawLocalVarDescriptors::kContextVar) {
return OS::SNPrint(
buffer, len, "%2" Pd
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698