Reviewers: Sven Panne,
Description:
fix eternal casts
[email protected]
BUG=
Please review this at https://codereview.chromium.org/23532017/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M include/v8.h
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index
9ba928bd88fd3913ddb3cb61b2cf2f5f67d0e03e..cfc1de63bf2c0bda91496091615a8692cfab887d
100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5578,13 +5578,13 @@ template<class T>
template<class S>
void Eternal<T>::Set(Isolate* isolate, Local<S> handle) {
TYPE_CHECK(T, S);
- V8::Eternalize(isolate, Value::Cast(*handle), &this->index_);
+ V8::Eternalize(isolate, reinterpret_cast<Value*>(*handle),
&this->index_);
}
template<class T>
Local<T> Eternal<T>::Get(Isolate* isolate) {
- return Local<T>::Cast(V8::GetEternal(isolate, index_));
+ return Local<T>(reinterpret_cast<T*>(*V8::GetEternal(isolate, index_)));
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.