| OLD | NEW |
| 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 #ifndef VM_DART_API_MESSAGE_H_ | 5 #ifndef VM_DART_API_MESSAGE_H_ |
| 6 #define VM_DART_API_MESSAGE_H_ | 6 #define VM_DART_API_MESSAGE_H_ |
| 7 | 7 |
| 8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
| 9 #include "vm/snapshot.h" | 9 #include "vm/snapshot.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Allocates a Dart_CObject object for the null object. | 26 // Allocates a Dart_CObject object for the null object. |
| 27 Dart_CObject* AllocateDartCObjectNull(); | 27 Dart_CObject* AllocateDartCObjectNull(); |
| 28 // Allocates a Dart_CObject object for a boolean object. | 28 // Allocates a Dart_CObject object for a boolean object. |
| 29 Dart_CObject* AllocateDartCObjectBool(bool value); | 29 Dart_CObject* AllocateDartCObjectBool(bool value); |
| 30 // Allocates a Dart_CObject object for for a 32-bit integer. | 30 // Allocates a Dart_CObject object for for a 32-bit integer. |
| 31 Dart_CObject* AllocateDartCObjectInt32(int32_t value); | 31 Dart_CObject* AllocateDartCObjectInt32(int32_t value); |
| 32 // Allocates a Dart_CObject object for a double. | 32 // Allocates a Dart_CObject object for a double. |
| 33 Dart_CObject* AllocateDartCObjectDouble(double value); | 33 Dart_CObject* AllocateDartCObjectDouble(double value); |
| 34 // Allocates a Dart_CObject object for string data. | 34 // Allocates a Dart_CObject object for string data. |
| 35 Dart_CObject* AllocateDartCObjectString(intptr_t length); | 35 Dart_CObject* AllocateDartCObjectString(intptr_t length); |
| 36 // Allocates a C Dart_CObject object for byte data. |
| 37 Dart_CObject* AllocateDartCObjectByteArray(intptr_t length); |
| 36 // Allocates a C array of Dart_CObject objects. | 38 // Allocates a C array of Dart_CObject objects. |
| 37 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 39 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
| 38 | 40 |
| 39 void Init(); | 41 void Init(); |
| 40 | 42 |
| 41 intptr_t LookupInternalClass(intptr_t class_header); | 43 intptr_t LookupInternalClass(intptr_t class_header); |
| 42 Dart_CObject* ReadInlinedObject(intptr_t object_id); | 44 Dart_CObject* ReadInlinedObject(intptr_t object_id); |
| 43 Dart_CObject* ReadObjectImpl(intptr_t header); | 45 Dart_CObject* ReadObjectImpl(intptr_t header); |
| 44 Dart_CObject* ReadIndexedObject(intptr_t object_id); | 46 Dart_CObject* ReadIndexedObject(intptr_t object_id); |
| 45 Dart_CObject* ReadObject(); | 47 Dart_CObject* ReadObject(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 58 ReAlloc alloc_; | 60 ReAlloc alloc_; |
| 59 ApiGrowableArray<Dart_CObject*> backward_references_; | 61 ApiGrowableArray<Dart_CObject*> backward_references_; |
| 60 | 62 |
| 61 Dart_CObject type_arguments_marker; | 63 Dart_CObject type_arguments_marker; |
| 62 Dart_CObject dynamic_type_marker; | 64 Dart_CObject dynamic_type_marker; |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace dart | 67 } // namespace dart |
| 66 | 68 |
| 67 #endif // VM_DART_API_MESSAGE_H_ | 69 #endif // VM_DART_API_MESSAGE_H_ |
| OLD | NEW |