| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 visitor->VisitPointer(reinterpret_cast<RawObject**>(&function_)); | 171 visitor->VisitPointer(reinterpret_cast<RawObject**>(&function_)); |
| 172 } | 172 } |
| 173 | 173 |
| 174 | 174 |
| 175 void SourceBreakpoint::PrintJSON(JSONStream* stream) { | 175 void SourceBreakpoint::PrintJSON(JSONStream* stream) { |
| 176 Isolate* isolate = Isolate::Current(); | 176 Isolate* isolate = Isolate::Current(); |
| 177 | 177 |
| 178 JSONObject jsobj(stream); | 178 JSONObject jsobj(stream); |
| 179 jsobj.AddProperty("type", "Breakpoint"); | 179 jsobj.AddProperty("type", "Breakpoint"); |
| 180 | 180 |
| 181 jsobj.AddPropertyF("id", "breakpoints/%" Pd "", id()); | 181 jsobj.AddFixedServiceId("breakpoints/%" Pd "", id()); |
| 182 jsobj.AddProperty("breakpointNumber", id()); | 182 jsobj.AddProperty("breakpointNumber", id()); |
| 183 jsobj.AddProperty("resolved", IsResolved()); | 183 jsobj.AddProperty("resolved", IsResolved()); |
| 184 | 184 |
| 185 Library& library = Library::Handle(isolate); | 185 Library& library = Library::Handle(isolate); |
| 186 Script& script = Script::Handle(isolate); | 186 Script& script = Script::Handle(isolate); |
| 187 intptr_t token_pos; | 187 intptr_t token_pos; |
| 188 GetCodeLocation(&library, &script, &token_pos); | 188 GetCodeLocation(&library, &script, &token_pos); |
| 189 { | 189 { |
| 190 JSONObject location(&jsobj, "location"); | 190 JSONObject location(&jsobj, "location"); |
| 191 location.AddProperty("type", "Location"); | 191 location.AddProperty("type", "Location"); |
| (...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2700 } | 2700 } |
| 2701 | 2701 |
| 2702 | 2702 |
| 2703 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2703 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2704 ASSERT(bpt->next() == NULL); | 2704 ASSERT(bpt->next() == NULL); |
| 2705 bpt->set_next(code_breakpoints_); | 2705 bpt->set_next(code_breakpoints_); |
| 2706 code_breakpoints_ = bpt; | 2706 code_breakpoints_ = bpt; |
| 2707 } | 2707 } |
| 2708 | 2708 |
| 2709 } // namespace dart | 2709 } // namespace dart |
| OLD | NEW |