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

Unified Diff: runtime/vm/dart_api_message.h

Issue 15689013: - Modify dart_api.h to be a proper C API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.h
===================================================================
--- runtime/vm/dart_api_message.h (revision 23447)
+++ runtime/vm/dart_api_message.h (working copy)
@@ -16,7 +16,7 @@
// that graph.
struct Dart_CObject_Internal : public Dart_CObject {
enum Type {
- kTypeArguments = Dart_CObject::kNumberOfTypes,
+ kTypeArguments = Dart_CObject_kNumberOfTypes,
kDynamicType,
kClass,
kView,
@@ -70,7 +70,7 @@
// Allocates a Dart_CObject object.
Dart_CObject* AllocateDartCObject();
// Allocates a Dart_CObject object with the specified type.
- Dart_CObject* AllocateDartCObject(Dart_CObject::Type type);
+ Dart_CObject* AllocateDartCObject(Dart_CObject_Type type);
// Allocates a Dart_CObject object representing an unsupported
// object in the API message.
Dart_CObject* AllocateDartCObjectUnsupported();
@@ -90,7 +90,7 @@
Dart_CObject* AllocateDartCObjectString(intptr_t length);
// Allocates a C Dart_CObject object for a typed data.
Dart_CObject* AllocateDartCObjectTypedData(
- Dart_CObject::TypedDataType type, intptr_t length);
+ Dart_TypedData_Type type, intptr_t length);
// Allocates a C array of Dart_CObject objects.
Dart_CObject* AllocateDartCObjectArray(intptr_t length);
// Allocates a Dart_CObject_Internal object with the specified type.
@@ -120,7 +120,7 @@
Dart_CObject* GetBackRef(intptr_t id);
Dart_CObject_Internal* AsInternal(Dart_CObject* object) {
- ASSERT(object->type >= Dart_CObject::kNumberOfTypes);
+ ASSERT(object->type >= Dart_CObject_kNumberOfTypes);
return reinterpret_cast<Dart_CObject_Internal*>(object);
}
@@ -143,7 +143,7 @@
: BaseWriter(buffer, alloc, kInitialSize),
object_id_(0), forward_list_(NULL),
forward_list_length_(0), forward_id_(0) {
- ASSERT(kDartCObjectTypeMask >= Dart_CObject::kNumberOfTypes - 1);
+ ASSERT(kDartCObjectTypeMask >= Dart_CObject_kNumberOfTypes - 1);
}
~ApiMessageWriter() {
::free(forward_list_);
@@ -177,7 +177,7 @@
bool WriteCObject(Dart_CObject* object);
bool WriteCObjectRef(Dart_CObject* object);
bool WriteForwardedCObject(Dart_CObject* object);
- bool WriteCObjectInlined(Dart_CObject* object, Dart_CObject::Type type);
+ bool WriteCObjectInlined(Dart_CObject* object, Dart_CObject_Type type);
intptr_t object_id_;
Dart_CObject** forward_list_;
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698