Index: runtime/vm/dart_api_impl.h |
diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h |
index 4cf06683b87a8b838d4fd75d7b6fd18a3569091a..0fe9005905f3bb24f9f66b2c5af98f891c57feee 100644 |
--- a/runtime/vm/dart_api_impl.h |
+++ b/runtime/vm/dart_api_impl.h |
@@ -11,9 +11,9 @@ |
namespace dart { |
class ApiState; |
+class FinalizablePersistentHandle; |
class LocalHandle; |
class PersistentHandle; |
-class WeakPersistentHandle; |
const char* CanonicalFunction(const char* func); |
@@ -94,7 +94,13 @@ class Api : AllStatic { |
Dart_Handle object); |
// Validates and converts the passed in handle as a weak persistent handle. |
- static WeakPersistentHandle* UnwrapAsWeakPersistentHandle( |
+ static FinalizablePersistentHandle* UnwrapAsWeakPersistentHandle( |
+ const ApiState& state, |
+ Dart_Handle object); |
+ |
+ // Validates and converts the passed in handle as a prologue weak |
+ // persistent handle. |
+ static FinalizablePersistentHandle* UnwrapAsPrologueWeakPersistentHandle( |
const ApiState& state, |
Dart_Handle object); |