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

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

Issue 9182001: OOB messages and general message refactor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_IMPL_H_ 5 #ifndef VM_DART_API_IMPL_H_
6 #define VM_DART_API_IMPL_H_ 6 #define VM_DART_API_IMPL_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 static LocalHandle* UnwrapAsLocalHandle(const ApiState& state, 88 static LocalHandle* UnwrapAsLocalHandle(const ApiState& state,
89 Dart_Handle object); 89 Dart_Handle object);
90 90
91 // Validates and converts the passed in handle as a persistent handle. 91 // Validates and converts the passed in handle as a persistent handle.
92 static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state, 92 static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state,
93 Dart_Handle object); 93 Dart_Handle object);
94 94
95 // Casts the internal Isolate* type to the external Dart_Isolate type. 95 // Casts the internal Isolate* type to the external Dart_Isolate type.
96 static Dart_Isolate CastIsolate(Isolate* isolate); 96 static Dart_Isolate CastIsolate(Isolate* isolate);
97 97
98 // Casts a message byte array to the external Dart_Message type.
99 static Dart_Message CastMessage(uint8_t* message);
100
101 // Gets the handle used to designate successful return. 98 // Gets the handle used to designate successful return.
102 static Dart_Handle Success(); 99 static Dart_Handle Success();
103 100
104 // Generates a handle used to designate an error return. 101 // Generates a handle used to designate an error return.
105 static Dart_Handle NewError(const char* format, ...); 102 static Dart_Handle NewError(const char* format, ...);
106 103
107 // Gets a handle to Null. 104 // Gets a handle to Null.
108 static Dart_Handle Null(); 105 static Dart_Handle Null();
109 106
110 // Gets a handle to True. 107 // Gets a handle to True.
111 static Dart_Handle True(); 108 static Dart_Handle True();
112 109
113 // Gets a handle to False 110 // Gets a handle to False
114 static Dart_Handle False(); 111 static Dart_Handle False();
115 112
116 // Allocates space in the local zone. 113 // Allocates space in the local zone.
117 static uword Allocate(intptr_t size); 114 static uword Allocate(intptr_t size);
118 115
119 // Reallocates space in the local zone. 116 // Reallocates space in the local zone.
120 static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size); 117 static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
121 }; 118 };
122 119
123 } // namespace dart. 120 } // namespace dart.
124 121
125 #endif // VM_DART_API_IMPL_H_ 122 #endif // VM_DART_API_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698