Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Unified Diff: include/v8.h

Issue 23532017: fix eternal casts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_)));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698