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

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

Issue 1157173005: Include 'fixedId' key when printing service ids (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/debugger_test.cc » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/debugger_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698