| OLD | NEW |
| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return line_number_; | 128 return line_number_; |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 void SourceBreakpoint::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 132 void SourceBreakpoint::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| 133 visitor->VisitPointer(reinterpret_cast<RawObject**>(&script_)); | 133 visitor->VisitPointer(reinterpret_cast<RawObject**>(&script_)); |
| 134 visitor->VisitPointer(reinterpret_cast<RawObject**>(&function_)); | 134 visitor->VisitPointer(reinterpret_cast<RawObject**>(&function_)); |
| 135 } | 135 } |
| 136 | 136 |
| 137 | 137 |
| 138 void SourceBreakpoint::PrintToJSONStream(JSONStream* stream) { | 138 void SourceBreakpoint::PrintJSON(JSONStream* stream) { |
| 139 Isolate* isolate = Isolate::Current(); | 139 Isolate* isolate = Isolate::Current(); |
| 140 | 140 |
| 141 JSONObject jsobj(stream); | 141 JSONObject jsobj(stream); |
| 142 jsobj.AddProperty("type", "Breakpoint"); | 142 jsobj.AddProperty("type", "Breakpoint"); |
| 143 | 143 |
| 144 jsobj.AddProperty("id", id()); | 144 jsobj.AddProperty("id", id()); |
| 145 jsobj.AddProperty("enabled", IsEnabled()); | 145 jsobj.AddProperty("enabled", IsEnabled()); |
| 146 jsobj.AddProperty("resolved", IsResolved()); | 146 jsobj.AddProperty("resolved", IsResolved()); |
| 147 | 147 |
| 148 Library& library = Library::Handle(isolate); | 148 Library& library = Library::Handle(isolate); |
| (...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 | 2516 |
| 2517 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2517 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2518 ASSERT(bpt->next() == NULL); | 2518 ASSERT(bpt->next() == NULL); |
| 2519 bpt->set_next(code_breakpoints_); | 2519 bpt->set_next(code_breakpoints_); |
| 2520 code_breakpoints_ = bpt; | 2520 code_breakpoints_ = bpt; |
| 2521 } | 2521 } |
| 2522 | 2522 |
| 2523 } // namespace dart | 2523 } // namespace dart |
| OLD | NEW |