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

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

Issue 14142008: Add support for more typed data types on native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Allocates a Dart_CObject object for for a 32-bit integer. 81 // Allocates a Dart_CObject object for for a 32-bit integer.
82 Dart_CObject* AllocateDartCObjectInt32(int32_t value); 82 Dart_CObject* AllocateDartCObjectInt32(int32_t value);
83 // Allocates a Dart_CObject object for for a 64-bit integer. 83 // Allocates a Dart_CObject object for for a 64-bit integer.
84 Dart_CObject* AllocateDartCObjectInt64(int64_t value); 84 Dart_CObject* AllocateDartCObjectInt64(int64_t value);
85 // Allocates a Dart_CObject object for bigint data. 85 // Allocates a Dart_CObject object for bigint data.
86 Dart_CObject* AllocateDartCObjectBigint(intptr_t length); 86 Dart_CObject* AllocateDartCObjectBigint(intptr_t length);
87 // Allocates a Dart_CObject object for a double. 87 // Allocates a Dart_CObject object for a double.
88 Dart_CObject* AllocateDartCObjectDouble(double value); 88 Dart_CObject* AllocateDartCObjectDouble(double value);
89 // Allocates a Dart_CObject object for string data. 89 // Allocates a Dart_CObject object for string data.
90 Dart_CObject* AllocateDartCObjectString(intptr_t length); 90 Dart_CObject* AllocateDartCObjectString(intptr_t length);
91 // Allocates a C Dart_CObject object for byte data. 91 // Allocates a C Dart_CObject object for a typed data.
92 Dart_CObject* AllocateDartCObjectUint8Array(intptr_t length); 92 Dart_CObject* AllocateDartCObjectTypedData(
93 Dart_CObject::TypedDataType type, intptr_t length);
93 // Allocates a C array of Dart_CObject objects. 94 // Allocates a C array of Dart_CObject objects.
94 Dart_CObject* AllocateDartCObjectArray(intptr_t length); 95 Dart_CObject* AllocateDartCObjectArray(intptr_t length);
95 // Allocates a Dart_CObject_Internal object with the specified type. 96 // Allocates a Dart_CObject_Internal object with the specified type.
96 Dart_CObject_Internal* AllocateDartCObjectInternal( 97 Dart_CObject_Internal* AllocateDartCObjectInternal(
97 Dart_CObject_Internal::Type type); 98 Dart_CObject_Internal::Type type);
98 // Allocates a Dart_CObject_Internal object for a class object. 99 // Allocates a Dart_CObject_Internal object for a class object.
99 Dart_CObject_Internal* AllocateDartCObjectClass(); 100 Dart_CObject_Internal* AllocateDartCObjectClass();
100 // Allocates a backwards reference node. 101 // Allocates a backwards reference node.
101 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state); 102 BackRefNode* AllocateBackRefNode(Dart_CObject* ref, DeserializeState state);
102 103
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 Dart_CObject** forward_list_; 183 Dart_CObject** forward_list_;
183 intptr_t forward_list_length_; 184 intptr_t forward_list_length_;
184 intptr_t forward_id_; 185 intptr_t forward_id_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter); 187 DISALLOW_COPY_AND_ASSIGN(ApiMessageWriter);
187 }; 188 };
188 189
189 } // namespace dart 190 } // namespace dart
190 191
191 #endif // VM_DART_API_MESSAGE_H_ 192 #endif // VM_DART_API_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698