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

Unified Diff: runtime/vm/dart_api_state.h

Issue 905823002: Verify proper API use of acquire/release typed data (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_state.h
===================================================================
--- runtime/vm/dart_api_state.h (revision 43108)
+++ runtime/vm/dart_api_state.h (working copy)
@@ -18,6 +18,7 @@
#include "vm/raw_object.h"
#include "vm/os_thread.h"
#include "vm/visitor.h"
+#include "vm/weak_table.h"
#include "vm/handles_impl.h"
@@ -832,6 +833,8 @@
void DelayWeakReferenceSet(WeakReferenceSet* reference_set);
+ WeakTable* acquired_table() { return &acquired_table_; }
+
private:
PersistentHandles persistent_handles_;
FinalizablePersistentHandles weak_persistent_handles_;
@@ -839,6 +842,7 @@
ApiLocalScope* reusable_scope_;
ApiLocalScope* top_scope_;
WeakReferenceSet* delayed_weak_reference_sets_;
+ WeakTable acquired_table_;
// Persistent handles to important objects.
PersistentHandle* null_;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698