Chromium Code Reviews| 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?
|
| } |