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

Issue 2498413002: Initialize internal fields in Factory::NewJSTypedArray and NewJSDataView. (Closed)

Created:
4 years, 1 month ago by jbroman
Modified:
4 years, 1 month ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Initialize internal fields in Factory::NewJSTypedArray and NewJSDataView. This was causing array buffer views created by ValueDeserializer to have uninitialized internal fields, which lead to crashes in layout tests when Blink tried to read those fields. For array buffers, JSArrayBuffer::Setup is responsible for this logic (as well as initializing the V8 fields); this is similar to that. The runtime already seems to correctly initialize these for script-created array buffer views as well, which is why this issue was not detected sooner. Committed: https://crrev.com/879f6599eee6e1dfcbe9a24bf688b261c03e9558 Cr-Commit-Position: refs/heads/master@{#41014}

Patch Set 1 #

Patch Set 2 : unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M src/factory.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
jbroman
Without this patch, the tests fail with # # Fatal error in v8::Object::GetAlignedPointerFromInternalField() # Not ...
4 years, 1 month ago (2016-11-15 16:52:58 UTC) #9
Jakob Kummerow
lgtm
4 years, 1 month ago (2016-11-15 22:39:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498413002/20001
4 years, 1 month ago (2016-11-15 22:40:28 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-15 22:42:59 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:17 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/879f6599eee6e1dfcbe9a24bf688b261c03e9558
Cr-Commit-Position: refs/heads/master@{#41014}

Powered by Google App Engine
This is Rietveld 408576698