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

Unified Diff: runtime/bin/io_buffer.h

Issue 15772005: - Add different types for persistent and weak persistent handles (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/bin/common.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_buffer.h
===================================================================
--- runtime/bin/io_buffer.h (revision 23307)
+++ runtime/bin/io_buffer.h (working copy)
@@ -29,10 +29,10 @@
}
// Function for finalizing external byte arrays used as IO buffers.
- static void Finalizer(Dart_Handle handle, void* buffer) {
+ static void Finalizer(Dart_WeakPersistentHandle handle, void* buffer) {
Free(buffer);
if (handle != NULL) {
- Dart_DeletePersistentHandle(handle);
+ Dart_DeleteWeakPersistentHandle(handle);
}
}
« no previous file with comments | « runtime/bin/common.cc ('k') | runtime/bin/io_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698