Reviewers: Jakob,
Description:
Fix presubmit failure in r11376.
[email protected]
TEST=cctest/test-api/StaticGetters[AfterDeath]
Please review this at https://chromiumcodereview.appspot.com/10021057/
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
179fa985bb0376d32faf534127cf6826b08ec9e9..eb87488adc78797d0343d9da4d863c06a32ef1d7
100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -3975,7 +3975,7 @@ class Internals {
static inline internal::Object** GetRoot(v8::Isolate* isolate, int
index) {
uint8_t* addr = reinterpret_cast<uint8_t*>(isolate) +
kIsolateRootsOffset;
- return &reinterpret_cast<internal::Object**>(addr)[index];
+ return reinterpret_cast<internal::Object**>(addr + index *
kApiPointerSize);
}
template <typename T>
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev