Fix presubmit failure in r11376.

R=jkummerow@chromium.org
TEST=cctest/test-api/StaticGetters[AfterDeath]

Review URL: https://chromiumcodereview.appspot.com/10021057

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11379 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 70918cb8
...@@ -3975,7 +3975,7 @@ class Internals { ...@@ -3975,7 +3975,7 @@ class Internals {
static inline internal::Object** GetRoot(v8::Isolate* isolate, int index) { static inline internal::Object** GetRoot(v8::Isolate* isolate, int index) {
uint8_t* addr = reinterpret_cast<uint8_t*>(isolate) + kIsolateRootsOffset; 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> template <typename T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment