| Index: src/handles-inl.h
|
| ===================================================================
|
| --- src/handles-inl.h (revision 6967)
|
| +++ src/handles-inl.h (working copy)
|
| @@ -36,14 +36,14 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -template<class T>
|
| +template<typename T>
|
| Handle<T>::Handle(T* obj) {
|
| ASSERT(!obj->IsFailure());
|
| location_ = HandleScope::CreateHandle(obj);
|
| }
|
|
|
|
|
| -template <class T>
|
| +template <typename T>
|
| inline T* Handle<T>::operator*() const {
|
| ASSERT(location_ != NULL);
|
| ASSERT(reinterpret_cast<Address>(*location_) != kHandleZapValue);
|
| @@ -51,6 +51,16 @@
|
| }
|
|
|
|
|
| +template <typename T>
|
| +HandleCell<T>::HandleCell(T* value)
|
| + : location_(HandleScope::CreateHandle(value)) { }
|
| +
|
| +
|
| +template <typename T>
|
| +HandleCell<T>::HandleCell(Handle<T> value)
|
| + : location_(HandleScope::CreateHandle(*value)) { }
|
| +
|
| +
|
| #ifdef DEBUG
|
| inline NoHandleAllocation::NoHandleAllocation() {
|
| v8::ImplementationUtilities::HandleScopeData* current =
|
|
|