| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |