Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
| index 66e4316ae67de0986cab4e2dd3cb133f9540d0ef..caa845f52211a8deef8adba38e51e326f9551bff 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
| @@ -70,8 +70,9 @@ inline void V8DOMWrapper::setNativeInfo(v8::Isolate* isolate, v8::Local<v8::Obje |
| ASSERT(wrapper->InternalFieldCount() >= 2); |
| ASSERT(scriptWrappable); |
| ASSERT(wrapperTypeInfo); |
| - wrapper->SetAlignedPointerInInternalField(v8DOMWrapperObjectIndex, scriptWrappable); |
| - wrapper->SetAlignedPointerInInternalField(v8DOMWrapperTypeIndex, const_cast<WrapperTypeInfo*>(wrapperTypeInfo)); |
| + int indices[] = { v8DOMWrapperObjectIndex, v8DOMWrapperTypeIndex }; |
| + void* values[] = { scriptWrappable, const_cast<WrapperTypeInfo*>(wrapperTypeInfo) }; |
| + wrapper->SetAlignedPointerInInternalFields(2, indices, values); |
|
haraken
2016/08/03 22:59:32
2 => WTF_ARRAY_LENGTH
|
| if (RuntimeEnabledFeatures::traceWrappablesEnabled()) { |
| auto perIsolateData = V8PerIsolateData::from(isolate); |
| // We notify ScriptWrappableVisitor about the new wrapper association, |