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

Side by Side Diff: vm/debugger.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/code_generator_ia32.cc ('k') | vm/disassembler_ia32.cc » ('j') | 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 "vm/code_generator.h" 7 #include "vm/code_generator.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 line_number_(-1), 98 line_number_(-1),
99 var_descriptors_(NULL), 99 var_descriptors_(NULL),
100 desc_indices_(8) { 100 desc_indices_(8) {
101 } 101 }
102 102
103 103
104 const Function& ActivationFrame::DartFunction() { 104 const Function& ActivationFrame::DartFunction() {
105 if (function_.IsNull()) { 105 if (function_.IsNull()) {
106 Isolate* isolate = Isolate::Current(); 106 Isolate* isolate = Isolate::Current();
107 ASSERT(isolate != NULL); 107 ASSERT(isolate != NULL);
108 const Code& code = Code::Handle(StackFrame::LookupCode(isolate, pc_)); 108 const Code& code = Code::Handle(Code::LookupCode(pc_));
109 function_ = code.function(); 109 function_ = code.function();
110 } 110 }
111 return function_; 111 return function_;
112 } 112 }
113 113
114 114
115 const char* Debugger::QualifiedFunctionName(const Function& func) { 115 const char* Debugger::QualifiedFunctionName(const Function& func) {
116 const String& func_name = String::Handle(func.name()); 116 const String& func_name = String::Handle(func.name());
117 Class& func_class = Class::Handle(func.owner()); 117 Class& func_class = Class::Handle(func.owner());
118 String& class_name = String::Handle(func_class.Name()); 118 String& class_name = String::Handle(func_class.Name());
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 } 1136 }
1137 1137
1138 1138
1139 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1139 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1140 ASSERT(bpt->next() == NULL); 1140 ASSERT(bpt->next() == NULL);
1141 bpt->set_next(code_breakpoints_); 1141 bpt->set_next(code_breakpoints_);
1142 code_breakpoints_ = bpt; 1142 code_breakpoints_ = bpt;
1143 } 1143 }
1144 1144
1145 } // namespace dart 1145 } // namespace dart
OLDNEW
« no previous file with comments | « vm/code_generator_ia32.cc ('k') | vm/disassembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698