Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: gin/wrappable.cc

Issue 2236443002: [gin] Use new SetAlignedPointerInInteralFields api function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/wrappable.cc
diff --git a/gin/wrappable.cc b/gin/wrappable.cc
index 0fac4e0b0b8381b24459f7f04183fec3ab28f2e2..6e1957eb77b34ad8ced4d51623684ee9611c7289 100644
--- a/gin/wrappable.cc
+++ b/gin/wrappable.cc
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698