diff options
author | Kristian Monsen <kristianm@google.com> | 2010-07-29 15:18:00 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-07-29 15:18:00 +0100 |
commit | 50ef84f5fad2def87d3fbc737bec4a32711fdef4 (patch) | |
tree | 72049481a445e51e78cc81ec1d114de2e87c6d1f /include | |
parent | 3bec4d28b1f388dbc06a9c4276e1a03e86c52b04 (diff) | |
download | android_external_v8-50ef84f5fad2def87d3fbc737bec4a32711fdef4.tar.gz android_external_v8-50ef84f5fad2def87d3fbc737bec4a32711fdef4.tar.bz2 android_external_v8-50ef84f5fad2def87d3fbc737bec4a32711fdef4.zip |
Update V8 to r5136 as required by WebKit r64264
Change-Id: I55b86fa101d9d53e889e2e3811fdf75f463ac3c6
Diffstat (limited to 'include')
-rw-r--r-- | include/v8.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/v8.h b/include/v8.h index 9e4cebb7..3ac10ab9 100644 --- a/include/v8.h +++ b/include/v8.h @@ -137,6 +137,9 @@ class Top; /** * A weak reference callback function. * + * This callback should either explicitly invoke Dispose on |object| if + * V8 wrapper is not needed anymore, or 'revive' it by invocation of MakeWeak. + * * \param object the weak global object to be reclaimed by the garbage collector * \param parameter the value passed in when making the weak global object */ @@ -146,9 +149,9 @@ typedef void (*WeakReferenceCallback)(Persistent<Value> object, // --- H a n d l e s --- -#define TYPE_CHECK(T, S) \ - while (false) { \ - *(static_cast<T**>(0)) = static_cast<S*>(0); \ +#define TYPE_CHECK(T, S) \ + while (false) { \ + *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \ } /** |