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

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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 ~JSONObject() { 234 ~JSONObject() {
234 stream_->CloseObject(); 235 stream_->CloseObject();
235 } 236 }
236 237
237 void AddServiceId(const Object& o) const { 238 void AddServiceId(const Object& o) const {
238 stream_->PrintServiceId(o); 239 stream_->PrintServiceId(o);
239 } 240 }
240 241
241 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3); 242 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
242 243
243 void AddLocation(const Script& script, 244 void AddLocation(
244 intptr_t token_pos, 245 const Script& script,
245 intptr_t end_token_pos = -1) const; 246 TokenDescriptor token_pos,
247 TokenDescriptor end_token_pos = TokenDescriptor::kNoSource) const;
246 248
247 void AddLocation(const BreakpointLocation* bpt_loc) const; 249 void AddLocation(const BreakpointLocation* bpt_loc) const;
248 250
249 void AddUnresolvedLocation(const BreakpointLocation* bpt_loc) const; 251 void AddUnresolvedLocation(const BreakpointLocation* bpt_loc) const;
250 252
251 void AddProperty(const char* name, bool b) const { 253 void AddProperty(const char* name, bool b) const {
252 stream_->PrintPropertyBool(name, b); 254 stream_->PrintPropertyBool(name, b);
253 } 255 }
254 void AddProperty(const char* name, intptr_t i) const { 256 void AddProperty(const char* name, intptr_t i) const {
255 stream_->PrintProperty(name, i); 257 stream_->PrintProperty(name, i);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 379
378 friend class JSONObject; 380 friend class JSONObject;
379 381
380 DISALLOW_ALLOCATION(); 382 DISALLOW_ALLOCATION();
381 DISALLOW_COPY_AND_ASSIGN(JSONArray); 383 DISALLOW_COPY_AND_ASSIGN(JSONArray);
382 }; 384 };
383 385
384 } // namespace dart 386 } // namespace dart
385 387
386 #endif // VM_JSON_STREAM_H_ 388 #endif // VM_JSON_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698