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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 Dart_CObject* AllocateDartCObjectInt32(int32_t value); | 45 Dart_CObject* AllocateDartCObjectInt32(int32_t value); |
46 // Allocates a Dart_CObject object for for a 64-bit integer. | 46 // Allocates a Dart_CObject object for for a 64-bit integer. |
47 Dart_CObject* AllocateDartCObjectInt64(int64_t value); | 47 Dart_CObject* AllocateDartCObjectInt64(int64_t value); |
48 // Allocates a Dart_CObject object for bigint data. | 48 // Allocates a Dart_CObject object for bigint data. |
49 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); | 49 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); |
50 // Allocates a Dart_CObject object for a double. | 50 // Allocates a Dart_CObject object for a double. |
51 Dart_CObject* AllocateDartCObjectDouble(double value); | 51 Dart_CObject* AllocateDartCObjectDouble(double value); |
52 // Allocates a Dart_CObject object for string data. | 52 // Allocates a Dart_CObject object for string data. |
53 Dart_CObject* AllocateDartCObjectString(intptr_t length); | 53 Dart_CObject* AllocateDartCObjectString(intptr_t length); |
54 // Allocates a C Dart_CObject object for byte data. | 54 // Allocates a C Dart_CObject object for byte data. |
55 Dart_CObject* AllocateDartCObjectByteArray(intptr_t length); | 55 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); |
56 // Allocates a C array of Dart_CObject objects. | 56 // Allocates a C array of Dart_CObject objects. |
57 Dart_CObject* AllocateDartCObjectArray(intptr_t length); | 57 Dart_CObject* AllocateDartCObjectArray(intptr_t length); |
58 | 58 |
59 void Init(); | 59 void Init(); |
60 | 60 |
61 intptr_t LookupInternalClass(intptr_t class_header); | 61 intptr_t LookupInternalClass(intptr_t class_header); |
62 Dart_CObject* ReadInlinedObject(intptr_t object_id); | 62 Dart_CObject* ReadInlinedObject(intptr_t object_id); |
63 Dart_CObject* ReadObjectImpl(intptr_t header); | 63 Dart_CObject* ReadObjectImpl(intptr_t header); |
64 Dart_CObject* ReadIndexedObject(intptr_t object_id); | 64 Dart_CObject* ReadIndexedObject(intptr_t object_id); |
65 Dart_CObject* ReadObject(); | 65 Dart_CObject* ReadObject(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void WriteCObject(Dart_CObject* object); | 120 void WriteCObject(Dart_CObject* object); |
121 | 121 |
122 intptr_t object_id_; | 122 intptr_t object_id_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); | 124 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace dart | 127 } // namespace dart |
128 | 128 |
129 #endif // VM_DART_API_MESSAGE_H_ | 129 #endif // VM_DART_API_MESSAGE_H_ |
OLD | NEW |