Commit c0363fda authored by cbruni's avatar cbruni Committed by Commit bot

[gin] Use new SetAlignedPointerInInteralFields api function

R=jochen@chromium.org
BUG=chromium:630217

Review-Url: https://codereview.chromium.org/2236443002
Cr-Commit-Position: refs/heads/master@{#415651}
parent 17b65e3d
......@@ -58,8 +58,10 @@ v8::Local<v8::Object> WrappableBase::GetWrapperImpl(v8::Isolate* isolate,
delete this;
return wrapper;
}
wrapper->SetAlignedPointerInInternalField(kWrapperInfoIndex, info);
wrapper->SetAlignedPointerInInternalField(kEncodedValueIndex, this);
int indices[] = {kWrapperInfoIndex, kEncodedValueIndex};
void* values[] = {info, this};
wrapper->SetAlignedPointerInInternalFields(2, indices, values);
wrapper_.Reset(isolate, wrapper);
wrapper_.SetWeak(this, FirstWeakCallback, v8::WeakCallbackType::kParameter);
return wrapper;
......
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