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

Unified Diff: runtime/vm/compiler.cc

Issue 1316813002: Add missing support in disassembler for recently introduced new variable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 39fbf22d5725b89bc13e16c6dbe8c270baa7f804..4ba03785ec706b47db5e70c74b50857b4cc84ec6 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -932,10 +932,13 @@ static void DisassembleCode(const Function& function, bool optimized) {
} else if (kind == RawLocalVarDescriptors::kStackVar) {
ISL_Print(" stack var '%s' offset %d",
var_name.ToCString(), var_info.index());
- } else {
- ASSERT(kind == RawLocalVarDescriptors::kContextVar);
+ } else if (kind == RawLocalVarDescriptors::kContextVar) {
ISL_Print(" context var '%s' level %d offset %d",
var_name.ToCString(), var_info.scope_id, var_info.index());
+ } else {
+ ASSERT(kind == RawLocalVarDescriptors::kAsyncOperation);
+ ISL_Print(" async operation '%s' level %d offset %d",
+ var_name.ToCString(), var_info.scope_id, var_info.index());
}
ISL_Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698