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

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: gen js 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
« no previous file with comments | « runtime/vm/debugger.h ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « runtime/vm/debugger.h ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698