| 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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 } | 2526 } |
| 2527 | 2527 |
| 2528 | 2528 |
| 2529 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2529 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2530 ASSERT(bpt->next() == NULL); | 2530 ASSERT(bpt->next() == NULL); |
| 2531 bpt->set_next(code_breakpoints_); | 2531 bpt->set_next(code_breakpoints_); |
| 2532 code_breakpoints_ = bpt; | 2532 code_breakpoints_ = bpt; |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 } // namespace dart | 2535 } // namespace dart |
| OLD | NEW |