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

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

Issue 1387433002: Ensure that service protocol specification and implementation use the correct numeric types (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/observatory/tests/service/get_vm_rpc_test.dart ('k') | runtime/vm/json_stream.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) 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/json.h" 9 #include "platform/json.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void PrintPropertyName(const char* name); 165 void PrintPropertyName(const char* name);
166 void PrintCommaIfNeeded(); 166 void PrintCommaIfNeeded();
167 bool NeedComma(); 167 bool NeedComma();
168 168
169 bool AddDartString(const String& s, intptr_t limit); 169 bool AddDartString(const String& s, intptr_t limit);
170 void AddEscapedUTF8String(const char* s); 170 void AddEscapedUTF8String(const char* s);
171 void AddEscapedUTF8String(const char* s, intptr_t len); 171 void AddEscapedUTF8String(const char* s, intptr_t len);
172 172
173 intptr_t nesting_level() const { return open_objects_; } 173 intptr_t nesting_level() const { return open_objects_; }
174 174
175 // Debug only fatal assertion.
176 static void EnsureIntegerIsRepresentableInJavaScript(int64_t i);
177
175 intptr_t open_objects_; 178 intptr_t open_objects_;
176 TextBuffer buffer_; 179 TextBuffer buffer_;
177 // Default service id zone. 180 // Default service id zone.
178 RingServiceIdZone default_id_zone_; 181 RingServiceIdZone default_id_zone_;
179 ServiceIdZone* id_zone_; 182 ServiceIdZone* id_zone_;
180 Dart_Port reply_port_; 183 Dart_Port reply_port_;
181 Instance* seq_; 184 Instance* seq_;
182 const char* method_; 185 const char* method_;
183 const char** param_keys_; 186 const char** param_keys_;
184 const char** param_values_; 187 const char** param_values_;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 343
341 friend class JSONObject; 344 friend class JSONObject;
342 345
343 DISALLOW_ALLOCATION(); 346 DISALLOW_ALLOCATION();
344 DISALLOW_COPY_AND_ASSIGN(JSONArray); 347 DISALLOW_COPY_AND_ASSIGN(JSONArray);
345 }; 348 };
346 349
347 } // namespace dart 350 } // namespace dart
348 351
349 #endif // VM_JSON_STREAM_H_ 352 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/get_vm_rpc_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698