| Index: runtime/vm/dart_api_impl.h
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.h (revision 23191)
|
| +++ runtime/vm/dart_api_impl.h (working copy)
|
| @@ -74,24 +74,17 @@
|
| CLASS_LIST_FOR_HANDLES(DECLARE_UNWRAP)
|
| #undef DECLARE_UNWRAP
|
|
|
| - // Validates and converts the passed in handle as a local handle.
|
| - static LocalHandle* UnwrapAsLocalHandle(const ApiState& state,
|
| - Dart_Handle object);
|
| -
|
| // Validates and converts the passed in handle as a persistent handle.
|
| - static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state,
|
| - Dart_Handle object);
|
| + static PersistentHandle* UnwrapAsPersistentHandle(Dart_PersistentHandle object);
|
|
|
| // Validates and converts the passed in handle as a weak persistent handle.
|
| static FinalizablePersistentHandle* UnwrapAsWeakPersistentHandle(
|
| - const ApiState& state,
|
| - Dart_Handle object);
|
| + Dart_WeakPersistentHandle object);
|
|
|
| // Validates and converts the passed in handle as a prologue weak
|
| // persistent handle.
|
| static FinalizablePersistentHandle* UnwrapAsPrologueWeakPersistentHandle(
|
| - const ApiState& state,
|
| - Dart_Handle object);
|
| + Dart_WeakPersistentHandle object);
|
|
|
| // Returns an Error handle if isolate is in an inconsistent state.
|
| // Returns a Success handle when no error condition exists.
|
| @@ -154,6 +147,9 @@
|
| // Performs one-time initialization needed by the API.
|
| static void InitOnce();
|
|
|
| + // Allocates handles for objects in the VM isolate.
|
| + static void InitHandles();
|
| +
|
| // Helper function to get the peer value of an external string object.
|
| static bool ExternalStringGetPeerHelper(Dart_Handle object, void** peer);
|
|
|
| @@ -161,6 +157,9 @@
|
| // Thread local key used by the API. Currently holds the current
|
| // ApiNativeScope if any.
|
| static ThreadLocalKey api_native_key_;
|
| + static Dart_Handle true_handle_;
|
| + static Dart_Handle false_handle_;
|
| + static Dart_Handle null_handle_;
|
|
|
| friend class ApiNativeScope;
|
| };
|
|
|