Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 28a63f092efb5a7831ccd5a891a9cffddbf4f655..49dc25b2ad99429c77b4644397e3e78ff61fb62c 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -594,6 +594,12 @@ template <class T> class Persistent // NOLINT |
| } |
| #endif |
| + template <class S> V8_INLINE( |
| + static Persistent<T>& Upcast(Persistent<S>& that)) { // NOLINT |
|
Sven Panne
2013/06/05 07:08:49
How does this relate to Persistent::Cast? It looks
|
| + TYPE_CHECK(T, S); |
| + return reinterpret_cast<Persistent<T>&>(that); |
| + } |
| + |
| V8_DEPRECATED(static Persistent<T> New(Handle<T> that)); |
| /** |