Revision: 11379
Author:   [email protected]
Date:     Wed Apr 18 10:18:56 2012
Log:      Fix presubmit failure in r11376.

[email protected]
TEST=cctest/test-api/StaticGetters[AfterDeath]

Review URL: https://chromiumcodereview.appspot.com/10021057
http://code.google.com/p/v8/source/detail?r=11379

Modified:
 /branches/bleeding_edge/include/v8.h

=======================================
--- /branches/bleeding_edge/include/v8.h        Wed Apr 18 09:07:08 2012
+++ /branches/bleeding_edge/include/v8.h        Wed Apr 18 10:18:56 2012
@@ -3975,7 +3975,7 @@

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

Reply via email to