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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 9148051: Provide API support for weak handles and post-mortem finalization. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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 dbfd18ab9e66f9974b1e5d40e800611ae48a8cb2..0a2abe4bf42bab2ab9bddcfba6c393533e781ab7 100644
--- a/runtime/vm/dart_api_impl.h
+++ b/runtime/vm/dart_api_impl.h
@@ -13,6 +13,7 @@ namespace dart {
class ApiState;
class LocalHandle;
class PersistentHandle;
+class WeakPersistentHandle;
const char* CanonicalFunction(const char* func);
@@ -92,6 +93,11 @@ class Api : AllStatic {
static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state,
Dart_Handle object);
+ // Validates and converts the passed in handle as a weak persistent handle.
+ static WeakPersistentHandle* UnwrapAsWeakPersistentHandle(
+ const ApiState& state,
+ Dart_Handle object);
+
// Casts the internal Isolate* type to the external Dart_Isolate type.
static Dart_Isolate CastIsolate(Isolate* isolate);
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698