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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 9655011: Implement prologue weak persistent handles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final revision Created 8 years, 9 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/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698