| Index: src/handles-inl.h
|
| diff --git a/src/handles-inl.h b/src/handles-inl.h
|
| index b31351256edfe7711bd574147bbc03b9c6a8f3d3..1811023ffb77b1c7298aaac13311519d4d83be49 100644
|
| --- a/src/handles-inl.h
|
| +++ b/src/handles-inl.h
|
| @@ -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 @@ inline T* Handle<T>::operator*() const {
|
| }
|
|
|
|
|
| +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 =
|
|
|