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

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

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 } else { 2137 } else {
2138 return bpt_location->AddRepeated(this); 2138 return bpt_location->AddRepeated(this);
2139 } 2139 }
2140 } 2140 }
2141 2141
2142 2142
2143 Breakpoint* Debugger::SetBreakpointAtActivation(const Instance& closure) { 2143 Breakpoint* Debugger::SetBreakpointAtActivation(const Instance& closure) {
2144 if (!closure.IsClosure()) { 2144 if (!closure.IsClosure()) {
2145 return NULL; 2145 return NULL;
2146 } 2146 }
2147 const Function& func = Function::Handle(Closure::function(closure)); 2147 const Function& func = Function::Handle(Closure::Cast(closure).function());
2148 const Script& script = Script::Handle(func.script()); 2148 const Script& script = Script::Handle(func.script());
2149 BreakpointLocation* bpt_location = SetBreakpoint(script, 2149 BreakpointLocation* bpt_location = SetBreakpoint(script,
2150 func.token_pos(), 2150 func.token_pos(),
2151 func.end_token_pos(), 2151 func.end_token_pos(),
2152 -1, -1 /* no line/col */); 2152 -1, -1 /* no line/col */);
2153 return bpt_location->AddPerClosure(this, closure); 2153 return bpt_location->AddPerClosure(this, closure);
2154 } 2154 }
2155 2155
2156 2156
2157 Breakpoint* Debugger::BreakpointAtActivation(const Instance& closure) { 2157 Breakpoint* Debugger::BreakpointAtActivation(const Instance& closure) {
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
3243 } 3243 }
3244 3244
3245 3245
3246 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 3246 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
3247 ASSERT(bpt->next() == NULL); 3247 ASSERT(bpt->next() == NULL);
3248 bpt->set_next(code_breakpoints_); 3248 bpt->set_next(code_breakpoints_);
3249 code_breakpoints_ = bpt; 3249 code_breakpoints_ = bpt;
3250 } 3250 }
3251 3251
3252 } // namespace dart 3252 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698