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

Issue 2769673002: Move Oddball/String to %Typearray%.prototype.fill fast path (Closed)

Created:
3 years, 9 months ago by rongjie
Modified:
3 years, 9 months ago
CC:
darin (slow to review), v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Move Oddball/String to %Typearray%.prototype.fill fast path ToNumber for Oddball/String has no side-effect, no need to go through %Typearray%.prototype.fill slow path. BUG=v8:5929, chromium:702902 Review-Url: https://codereview.chromium.org/2769673002 Cr-Commit-Position: refs/heads/master@{#44129} Committed: https://chromium.googlesource.com/v8/v8/+/a1f2239e0b7daff6bbf728d4f744ef6ee52f5299

Patch Set 1 #

Total comments: 5

Patch Set 2 : minor changes #

Patch Set 3 : beautify test #

Total comments: 2

Patch Set 4 : Oddball and String #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -13 lines) Patch
M src/elements.cc View 1 2 3 1 chunk +14 lines, -7 lines 0 comments Download
M test/mjsunit/es6/typedarray-fill.js View 1 2 3 3 chunks +25 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
rongjie
3 years, 9 months ago (2017-03-22 13:05:51 UTC) #2
caitp
I think it would be fine to only handle undefined on the fast path. Maybe ...
3 years, 9 months ago (2017-03-22 13:10:51 UTC) #4
caitp
https://codereview.chromium.org/2769673002/diff/1/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2769673002/diff/1/src/elements.cc#newcode2869 src/elements.cc:2869: } else if (obj_value->IsHeapNumber()) { Oh nvm, I thought ...
3 years, 9 months ago (2017-03-22 13:11:42 UTC) #5
Camillo Bruni
almost :) https://codereview.chromium.org/2769673002/diff/1/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2769673002/diff/1/src/elements.cc#newcode2869 src/elements.cc:2869: } else if (obj_value->IsHeapNumber()) { Given that ...
3 years, 9 months ago (2017-03-22 21:26:50 UTC) #6
rongjie
https://codereview.chromium.org/2769673002/diff/1/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2769673002/diff/1/src/elements.cc#newcode2869 src/elements.cc:2869: } else if (obj_value->IsHeapNumber()) { On 2017/03/22 21:26:50, Camillo ...
3 years, 9 months ago (2017-03-23 00:01:49 UTC) #7
Camillo Bruni
sorry.. another comment https://codereview.chromium.org/2769673002/diff/40001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2769673002/diff/40001/src/elements.cc#newcode2876 src/elements.cc:2876: BackingStore::from_double(std::numeric_limits<double>::quiet_NaN()); I just realized that we ...
3 years, 9 months ago (2017-03-23 10:56:43 UTC) #8
rongjie
https://codereview.chromium.org/2769673002/diff/40001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2769673002/diff/40001/src/elements.cc#newcode2876 src/elements.cc:2876: BackingStore::from_double(std::numeric_limits<double>::quiet_NaN()); On 2017/03/23 10:56:43, Camillo Bruni wrote: > I ...
3 years, 9 months ago (2017-03-23 12:39:14 UTC) #9
Camillo Bruni
LGTM, please wait for lgtm from bmeurer
3 years, 9 months ago (2017-03-24 13:43:53 UTC) #12
Benedikt Meurer
lgtm
3 years, 9 months ago (2017-03-24 17:59:01 UTC) #13
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/2769673002/60001
3 years, 9 months ago (2017-03-24 22:17:51 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 22:43:44 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/a1f2239e0b7daff6bbf728d4f744ef6ee52...

Powered by Google App Engine
This is Rietveld 408576698