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

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

Issue 257053003: Always use the same json for null in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/debugger.h ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698