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

Issue 2714193002: Remove SMI length check from TF_BUILTIN(ArrayIncludes, CodeStubAssembler) (Closed)

Created:
3 years, 10 months ago by vabr (Chromium)
Modified:
3 years, 9 months ago
Reviewers:
Benedikt Meurer, caitp
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove SMI length check from TF_BUILTIN(ArrayIncludes, CodeStubAssembler) Currently, ArrayIncludes handles the hypothetical case of an array with a fast ElementsKind and non-SMI length. This should not happen (and is checked against in JSArray::JSArrayVerify of objects_debug.cc). Therefore this CL replaces that handling with a CSA_ASSERT that the length is indeed SMI. The CL also simplifies loading of the (SMI) length on 64 bit architectures by using LoadAndUntagObjectField instead of LoadObjectField+SmiToWord. BUG=v8:5985 Review-Url: https://codereview.chromium.org/2714193002 Cr-Commit-Position: refs/heads/master@{#43433} Committed: https://chromium.googlesource.com/v8/v8/+/72a4922509a9e32da8ec2706e3b6b6cb46ef340a

Patch Set 1 #

Patch Set 2 : Assert on tagged + fix compilation #

Patch Set 3 : No 'ToWord32' #

Total comments: 3

Patch Set 4 : Remove len_var #

Patch Set 5 : Ensure RawMachineAssembler::AddNode does not complain about null current_block_ #

Total comments: 3

Patch Set 6 : No braces #

Patch Set 7 : Add const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -34 lines) Patch
M src/builtins/builtins-array.cc View 1 2 3 4 5 6 13 chunks +18 lines, -34 lines 0 comments Download

Messages

Total messages: 40 (28 generated)
vabr (Chromium)
Hi Benedikt and caitp@, This is the other CL we talked about. It is ready ...
3 years, 10 months ago (2017-02-25 17:52:17 UTC) #15
caitp
LGTM I'm not sure if we want to keep using IntPtr operations in the rest ...
3 years, 10 months ago (2017-02-25 18:03:06 UTC) #16
vabr (Chromium)
Thanks! I have 2 questions below. :) Cheers, Vaclav https://codereview.chromium.org/2714193002/diff/40001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2714193002/diff/40001/src/builtins/builtins-array.cc#newcode1710 src/builtins/builtins-array.cc:1710: ...
3 years, 10 months ago (2017-02-25 18:35:48 UTC) #17
caitp
https://codereview.chromium.org/2714193002/diff/40001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2714193002/diff/40001/src/builtins/builtins-array.cc#newcode1710 src/builtins/builtins-array.cc:1710: len_var.Bind(len); On 2017/02/25 18:35:48, vabr (Chromium) wrote: > On ...
3 years, 10 months ago (2017-02-25 18:40:12 UTC) #18
vabr (Chromium)
Thanks for the answer, caitp@! Looking at the code, I agree that there seems to ...
3 years, 10 months ago (2017-02-25 21:25:55 UTC) #21
Benedikt Meurer
On 2017/02/25 21:56:45, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
3 years, 9 months ago (2017-02-26 12:18:45 UTC) #24
vabr (Chromium)
On 2017/02/26 12:18:45, Benedikt Meurer wrote: > On 2017/02/25 21:56:45, commit-bot: I haz the power ...
3 years, 9 months ago (2017-02-26 12:31:23 UTC) #25
Benedikt Meurer
Meh, sorry... done :-) https://codereview.chromium.org/2714193002/diff/80001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2714193002/diff/80001/src/builtins/builtins-array.cc#newcode1701 src/builtins/builtins-array.cc:1701: Node* len = nullptr; On ...
3 years, 9 months ago (2017-02-26 18:34:28 UTC) #26
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/2714193002/120001
3 years, 9 months ago (2017-02-26 19:54:38 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/v8/v8/+/72a4922509a9e32da8ec2706e3b6b6cb46ef340a
3 years, 9 months ago (2017-02-26 19:56:31 UTC) #38
vabr (Chromium)
Thanks for the tip to remove the braces! Vaclav https://codereview.chromium.org/2714193002/diff/80001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2714193002/diff/80001/src/builtins/builtins-array.cc#newcode1701 src/builtins/builtins-array.cc:1701: ...
3 years, 9 months ago (2017-02-26 20:30:24 UTC) #39
Benedikt Meurer
3 years, 9 months ago (2017-02-27 05:01:35 UTC) #40
Message was sent while issue was closed.
LGTM!

Powered by Google App Engine
This is Rietveld 408576698