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

Unified Diff: include/v8.h

Issue 17162002: Version 3.19.17. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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 | « ChangeLog ('k') | src/api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index f6e236114e33edca721fe3cb1a37fd216c5af0fb..d2a5322b9c05846576bdd05565243ee3bc06c3b1 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -220,6 +220,8 @@ class WeakReferenceCallbacks {
}
+#define V8_USE_UNSAFE_HANDLES
+
/**
* An object reference managed by the v8 garbage collector.
*
@@ -490,10 +492,10 @@ template <class T> class Persistent // NOLINT
public:
#ifndef V8_USE_UNSAFE_HANDLES
V8_INLINE(Persistent()) : val_(0) { }
- // TODO(dcarney): add this back before cutover.
-// V8_INLINE(~Persistent()) {
-// Dispose();
-// }
+ V8_INLINE(~Persistent()) {
+ // TODO(dcarney): add this back before cutover.
+ // Dispose();
+ }
V8_INLINE(bool IsEmpty() const) { return val_ == 0; }
// TODO(dcarney): remove somehow before cutover
// The handle should either be 0, or a pointer to a live cell.
« no previous file with comments | « ChangeLog ('k') | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698