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

Side by Side Diff: runtime/vm/debugger.cc

Issue 93733006: - Avoid returning "<optimized out>" strings as contexts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 595
596 RawInstance* ActivationFrame::GetLocalInstanceVar(intptr_t slot_index) { 596 RawInstance* ActivationFrame::GetLocalInstanceVar(intptr_t slot_index) {
597 Instance& instance = Instance::Handle(); 597 Instance& instance = Instance::Handle();
598 instance ^= GetLocalVar(slot_index); 598 instance ^= GetLocalVar(slot_index);
599 return instance.raw(); 599 return instance.raw();
600 } 600 }
601 601
602 602
603 RawContext* ActivationFrame::GetLocalContextVar(intptr_t slot_index) { 603 RawContext* ActivationFrame::GetLocalContextVar(intptr_t slot_index) {
604 Context& context = Context::Handle(); 604 Object& context = Object::Handle(GetLocalVar(slot_index));
605 context ^= GetLocalVar(slot_index); 605 if (context.IsContext()) {
606 return context.raw(); 606 return Context::Cast(context).raw();
607 }
608 return Context::null();
607 } 609 }
608 610
609 611
610 void ActivationFrame::VariableAt(intptr_t i, 612 void ActivationFrame::VariableAt(intptr_t i,
611 String* name, 613 String* name,
612 intptr_t* token_pos, 614 intptr_t* token_pos,
613 intptr_t* end_pos, 615 intptr_t* end_pos,
614 Instance* value) { 616 Instance* value) {
615 GetDescIndices(); 617 GetDescIndices();
616 ASSERT(i < desc_indices_.length()); 618 ASSERT(i < desc_indices_.length());
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 } 2281 }
2280 2282
2281 2283
2282 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2284 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2283 ASSERT(bpt->next() == NULL); 2285 ASSERT(bpt->next() == NULL);
2284 bpt->set_next(code_breakpoints_); 2286 bpt->set_next(code_breakpoints_);
2285 code_breakpoints_ = bpt; 2287 code_breakpoints_ = bpt;
2286 } 2288 }
2287 2289
2288 } // namespace dart 2290 } // namespace dart
OLDNEW
« 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