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

Side by Side Diff: runtime/vm/json_stream.h

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef VM_JSON_STREAM_H_ 5 #ifndef VM_JSON_STREAM_H_
6 #define VM_JSON_STREAM_H_ 6 #define VM_JSON_STREAM_H_
7 7
8 #include "include/dart_api.h" // for Dart_Port 8 #include "include/dart_api.h" // for Dart_Port
9 #include "platform/text_buffer.h" 9 #include "platform/text_buffer.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
11 #include "vm/service.h" 11 #include "vm/service.h"
12 #include "vm/token_descriptor.h"
12 13
13 14
14 namespace dart { 15 namespace dart {
15 16
16 class Array; 17 class Array;
17 class Breakpoint; 18 class Breakpoint;
18 class BreakpointLocation; 19 class BreakpointLocation;
19 class Field; 20 class Field;
20 class GrowableObjectArray; 21 class GrowableObjectArray;
21 class Instance; 22 class Instance;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 ~JSONObject() { 233 ~JSONObject() {
233 stream_->CloseObject(); 234 stream_->CloseObject();
234 } 235 }
235 236
236 void AddServiceId(const Object& o) const { 237 void AddServiceId(const Object& o) const {
237 stream_->PrintServiceId(o); 238 stream_->PrintServiceId(o);
238 } 239 }
239 240
240 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3); 241 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
241 242
242 void AddLocation(const Script& script, 243 void AddLocation(
243 intptr_t token_pos, 244 const Script& script,
244 intptr_t end_token_pos = -1) const; 245 TokenDescriptor token_pos,
246 TokenDescriptor end_token_pos = TokenDescriptor::kNoSource) const;
245 247
246 void AddLocation(const BreakpointLocation* bpt_loc) const; 248 void AddLocation(const BreakpointLocation* bpt_loc) const;
247 249
248 void AddUnresolvedLocation(const BreakpointLocation* bpt_loc) const; 250 void AddUnresolvedLocation(const BreakpointLocation* bpt_loc) const;
249 251
250 void AddProperty(const char* name, bool b) const { 252 void AddProperty(const char* name, bool b) const {
251 stream_->PrintPropertyBool(name, b); 253 stream_->PrintPropertyBool(name, b);
252 } 254 }
253 void AddProperty(const char* name, intptr_t i) const { 255 void AddProperty(const char* name, intptr_t i) const {
254 stream_->PrintProperty(name, i); 256 stream_->PrintProperty(name, i);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 378
377 friend class JSONObject; 379 friend class JSONObject;
378 380
379 DISALLOW_ALLOCATION(); 381 DISALLOW_ALLOCATION();
380 DISALLOW_COPY_AND_ASSIGN(JSONArray); 382 DISALLOW_COPY_AND_ASSIGN(JSONArray);
381 }; 383 };
382 384
383 } // namespace dart 385 } // namespace dart
384 386
385 #endif // VM_JSON_STREAM_H_ 387 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | runtime/vm/token_descriptor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698