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

Issue 18695004: Add internal fields to JSArrayBufferViews (JSTypedArray and JSDataView) (Closed)

Created:
7 years, 5 months ago by Dmitry Lomov (no reviews)
Modified:
7 years, 5 months ago
Reviewers:
titzer, Sven Panne
CC:
v8-dev
Visibility:
Public.

Description

Add internal fields to JSArrayBufferViews (JSTypedArray and JSDataView) In Blink, JSTypedArray and JSDataView objects act as "wrappers" for C++ objects. Wrapping protocol in Blink requires all wrapper JavaScript objects to have a certain amount of internal fields that Blink uses for book-keeping (essentially a pointer to C++ object and some type information). This change adds those internal fields to JSTypedArray and JSDataView, in a similiar way to how it is done for JSArrayBuffer. R=titzer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15511

Patch Set 1 #

Patch Set 2 : Added zeroing out internal fields and tests that verify that #

Total comments: 8

Patch Set 3 : CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -8 lines) Patch
M include/v8.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/objects-visiting-inl.h View 4 chunks +6 lines, -6 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 9 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Dmitry Lomov (no reviews)
titzer@: please review svenpanne@: FYI (comments welcome as usual)
7 years, 5 months ago (2013-07-04 17:01:20 UTC) #1
Dmitry Lomov (no reviews)
Added zeroing out internal fields and tests that verify that.
7 years, 5 months ago (2013-07-04 17:37:27 UTC) #2
titzer
https://codereview.chromium.org/18695004/diff/3001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/18695004/diff/3001/include/v8.h#newcode2492 include/v8.h:2492: #ifndef V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT I'm not sure why you conditionally define ...
7 years, 5 months ago (2013-07-05 08:09:57 UTC) #3
Dmitry Lomov (no reviews)
Thanks for the review! Comments addressed. PTAL https://codereview.chromium.org/18695004/diff/3001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/18695004/diff/3001/include/v8.h#newcode2492 include/v8.h:2492: #ifndef V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT ...
7 years, 5 months ago (2013-07-05 09:56:02 UTC) #4
titzer
lgtm
7 years, 5 months ago (2013-07-05 10:02:34 UTC) #5
Dmitry Lomov (no reviews)
7 years, 5 months ago (2013-07-05 10:12:44 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r15511 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698