| Index: runtime/vm/dart_api_impl.h
|
| diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h
|
| index e41e96f592a155dbe9043709f6fbb013cd11124e..4cf06683b87a8b838d4fd75d7b6fd18a3569091a 100644
|
| --- a/runtime/vm/dart_api_impl.h
|
| +++ b/runtime/vm/dart_api_impl.h
|
| @@ -121,6 +121,16 @@ class Api : AllStatic {
|
|
|
| // Reallocates space in the local zone.
|
| static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
|
| +
|
| + // Performs one-time initialization needed by the API.
|
| + static void InitOnce();
|
| +
|
| + private:
|
| + // Thread local key used by the API. Currently holds the current
|
| + // ApiNativeScope if any.
|
| + static ThreadLocalKey api_native_key_;
|
| +
|
| + friend class ApiNativeScope;
|
| };
|
|
|
| class IsolateSaver {
|
|
|