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

Unified Diff: runtime/vm/debugger.cc

Issue 2819523003: DBC follow up CL (Closed)
Patch Set: Created 3 years, 8 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 | tests/corelib/corelib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index cfb8f6575aea3c45d7e715c5e24848aa85de4948..d4c276823e6cb7177a965d00cd0f8d503d0cb9e4 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -930,6 +930,7 @@ const Context& ActivationFrame::GetSavedCurrentContext() {
if (!ctx_.IsNull()) return ctx_;
GetVarDescriptors();
intptr_t var_desc_len = var_descriptors_.Length();
+ Object& obj = Object::Handle();
for (intptr_t i = 0; i < var_desc_len; i++) {
RawLocalVarDescriptors::VarInfo var_info;
var_descriptors_.GetInfo(i, &var_info);
@@ -939,7 +940,7 @@ const Context& ActivationFrame::GetSavedCurrentContext() {
OS::PrintErr("\tFound saved current ctx at index %d\n",
var_info.index());
}
- const Object& obj = Object::Handle(GetStackVar(var_info.index()));
+ obj = GetStackVar(var_info.index());
if (obj.IsClosure()) {
ASSERT(function().name() == Symbols::Call().raw());
ASSERT(function().IsInvokeFieldDispatcher());
@@ -953,6 +954,7 @@ const Context& ActivationFrame::GetSavedCurrentContext() {
return ctx_;
}
}
+ return ctx_;
return Context::ZoneHandle(Context::null());
siva 2017/04/13 16:10:28 dead code?
}
« no previous file with comments | « no previous file | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698