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

Issue 1949863002: Fix TypedArray Property optimizations (Closed)

Created:
4 years, 7 months ago by gsathya
Modified:
4 years, 7 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix TypedArray Property optimizations This patch installs %TypedArray% and its prototype on the native context, and wires them up to each TypedArray subclass. This is later used to check the holder of length, byteLength and byteOffset is %Typedarray% and apply the appropriate optimizations. BUG=chromium:593634 LOG=Y Committed: https://crrev.com/41d571dfe87d70bb04a59e6e6dbe732b6df56277 Cr-Commit-Position: refs/heads/master@{#36116}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed review comments #

Total comments: 2

Patch Set 3 : Use CreateFunction #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -10 lines) Patch
M src/accessors.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 chunks +31 lines, -3 lines 0 comments Download
M src/contexts.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/js/array-iterator.js View 1 chunk +1 line, -1 line 3 comments Download
M src/js/typedarray.js View 3 chunks +5 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949863002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949863002/1
4 years, 7 months ago (2016-05-03 23:50:22 UTC) #4
gsathya
4 years, 7 months ago (2016-05-03 23:50:39 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 00:22:52 UTC) #8
Dan Ehrenberg
https://codereview.chromium.org/1949863002/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1949863002/diff/1/src/bootstrapper.cc#newcode1963 src/bootstrapper.cc:1963: DCHECK(false); Nit: DCHECK(false) is rather unidiomatic (although it is ...
4 years, 7 months ago (2016-05-04 18:11:13 UTC) #9
adamk
https://codereview.chromium.org/1949863002/diff/1/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/1949863002/diff/1/src/accessors.cc#newcode119 src/accessors.cc:119: HandleScope scope(isolate); You shouldn't need to create a HandleScope ...
4 years, 7 months ago (2016-05-04 18:44:36 UTC) #10
gsathya
Thanks for the comments. PTAL. https://codereview.chromium.org/1949863002/diff/1/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/1949863002/diff/1/src/accessors.cc#newcode119 src/accessors.cc:119: HandleScope scope(isolate); On 2016/05/04 ...
4 years, 7 months ago (2016-05-05 21:16:06 UTC) #11
Dan Ehrenberg
https://codereview.chromium.org/1949863002/diff/20001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1949863002/diff/20001/src/bootstrapper.cc#newcode1615 src/bootstrapper.cc:1615: typed_array_prototype, Builtins::kIllegal); Use CreateFunction rather than InstallFunction in order ...
4 years, 7 months ago (2016-05-05 23:37:31 UTC) #12
gsathya
PTAL https://codereview.chromium.org/1949863002/diff/20001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1949863002/diff/20001/src/bootstrapper.cc#newcode1615 src/bootstrapper.cc:1615: typed_array_prototype, Builtins::kIllegal); On 2016/05/05 23:37:31, Dan Ehrenberg wrote: ...
4 years, 7 months ago (2016-05-06 11:10:27 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949863002/40001
4 years, 7 months ago (2016-05-06 11:10:56 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 11:40:26 UTC) #17
Dan Ehrenberg
lgtm
4 years, 7 months ago (2016-05-06 16:33:16 UTC) #18
adamk
https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js File src/js/array-iterator.js (right): https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js#newcode25 src/js/array-iterator.js:25: var GlobalTypedArray = %object_get_prototype_of(global.Uint8Array); Did we ever figure out ...
4 years, 7 months ago (2016-05-06 17:56:12 UTC) #19
Dan Ehrenberg
https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js File src/js/array-iterator.js (right): https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js#newcode25 src/js/array-iterator.js:25: var GlobalTypedArray = %object_get_prototype_of(global.Uint8Array); On 2016/05/06 at 17:56:12, adamk ...
4 years, 7 months ago (2016-05-06 18:09:33 UTC) #20
adamk
lgtm https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js File src/js/array-iterator.js (right): https://codereview.chromium.org/1949863002/diff/40001/src/js/array-iterator.js#newcode25 src/js/array-iterator.js:25: var GlobalTypedArray = %object_get_prototype_of(global.Uint8Array); On 2016/05/06 18:09:33, Dan ...
4 years, 7 months ago (2016-05-06 18:11:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949863002/40001
4 years, 7 months ago (2016-05-09 18:34:32 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-09 19:05:27 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 19:07:39 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/41d571dfe87d70bb04a59e6e6dbe732b6df56277
Cr-Commit-Position: refs/heads/master@{#36116}

Powered by Google App Engine
This is Rietveld 408576698