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

Issue 1133933003: [strong] Function arity check should be based on required parameters (Closed)

Created:
5 years, 7 months ago by arv (Not doing code reviews)
Modified:
5 years, 7 months ago
CC:
v8-dev, v8-mips-ports_googlegroups.com, Rodolph Perfetta (ARM)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[strong] Function arity check should be based on required parameters Also check whether the arguments count is smaller than the number of required parameters which is the same as the SharedFunctionInfo length. BUG=v8:4102 LOG=N R=rossberg@chromium.org Committed: https://crrev.com/78f0452d310221ac74b6221140d376d8302c4579 Cr-Commit-Position: refs/heads/master@{#28491}

Patch Set 1 #

Patch Set 2 : Fix x64 #

Total comments: 1

Patch Set 3 : arm64 #

Patch Set 4 : mips #

Patch Set 5 : mips64 #

Patch Set 6 : git rebase #

Total comments: 8

Patch Set 7 : Added dchecks and cleaned up assembly based on feedback #

Total comments: 2

Patch Set 8 : Use Ldr on arm64 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -139 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 2 chunks +10 lines, -5 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -3 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 2 chunks +9 lines, -3 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 chunks +21 lines, -3 lines 0 comments Download
M test/mjsunit/strong/function-arity.js View 1 2 3 4 5 6 chunks +135 lines, -115 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
arv (Not doing code reviews)
PTAL ia32 works but x64 does not. Do you have any idea?
5 years, 7 months ago (2015-05-14 19:55:14 UTC) #1
arv (Not doing code reviews)
Ping
5 years, 7 months ago (2015-05-15 14:33:11 UTC) #2
rossberg
LGTM, in what way does it not work on x64?
5 years, 7 months ago (2015-05-18 16:35:42 UTC) #3
arv (Not doing code reviews)
On 2015/05/18 16:35:42, rossberg wrote: > LGTM, in what way does it not work on ...
5 years, 7 months ago (2015-05-18 17:01:18 UTC) #4
arv (Not doing code reviews)
Fix x64
5 years, 7 months ago (2015-05-18 18:06:08 UTC) #5
arv (Not doing code reviews)
https://codereview.chromium.org/1133933003/diff/20001/src/x64/builtins-x64.cc File src/x64/builtins-x64.cc (right): https://codereview.chromium.org/1133933003/diff/20001/src/x64/builtins-x64.cc#newcode1663 src/x64/builtins-x64.cc:1663: // See comment near kLengthOffset in src/objects.h I'm not ...
5 years, 7 months ago (2015-05-18 18:08:17 UTC) #6
arv (Not doing code reviews)
arm64
5 years, 7 months ago (2015-05-18 19:47:54 UTC) #7
arv (Not doing code reviews)
mips
5 years, 7 months ago (2015-05-18 19:59:02 UTC) #8
arv (Not doing code reviews)
mips64
5 years, 7 months ago (2015-05-18 20:09:22 UTC) #9
arv (Not doing code reviews)
git rebase
5 years, 7 months ago (2015-05-18 20:27:25 UTC) #10
arv (Not doing code reviews)
Mips people, please can you take a look at mips64 in particaluar. See https://code.google.com/p/chromium/codesearch#chromium/src/v8/src/objects.h&l=7304 and ...
5 years, 7 months ago (2015-05-18 20:35:17 UTC) #11
paul.l...
mips and mips64 ports LGTM. kPointerSize can NOT be kInt32Size on mips64. (I think that ...
5 years, 7 months ago (2015-05-18 22:04:01 UTC) #13
paul.l...
https://codereview.chromium.org/1133933003/diff/100001/src/mips64/builtins-mips64.cc File src/mips64/builtins-mips64.cc (right): https://codereview.chromium.org/1133933003/diff/100001/src/mips64/builtins-mips64.cc#newcode1764 src/mips64/builtins-mips64.cc:1764: __ srl(a5, a5, 1); On 2015/05/18 22:04:01, paul.l... wrote: ...
5 years, 7 months ago (2015-05-18 22:11:47 UTC) #14
arv (Not doing code reviews)
On 2015/05/18 22:04:01, paul.l... wrote: > mips and mips64 ports LGTM. kPointerSize can NOT be ...
5 years, 7 months ago (2015-05-19 14:26:51 UTC) #15
Rodolph Perfetta
Paul is right, you can't have 32-bit pointer in arm64. https://codereview.chromium.org/1133933003/diff/100001/src/arm/builtins-arm.cc File src/arm/builtins-arm.cc (right): https://codereview.chromium.org/1133933003/diff/100001/src/arm/builtins-arm.cc#newcode1737 ...
5 years, 7 months ago (2015-05-19 14:37:06 UTC) #17
Rodolph Perfetta
On 2015/05/19 14:37:06, Rodolph Perfetta wrote: > Paul is right, you can't have 32-bit pointer ...
5 years, 7 months ago (2015-05-19 14:41:43 UTC) #18
arv (Not doing code reviews)
On 2015/05/19 14:41:43, Rodolph Perfetta wrote: > One last precision, my arm64 code assumes SharedFunctionInfo::length ...
5 years, 7 months ago (2015-05-19 14:54:45 UTC) #19
arv (Not doing code reviews)
This is awesome feedback. Makes me wish all assembly was reviewed by experts like you. ...
5 years, 7 months ago (2015-05-19 14:56:13 UTC) #20
arv (Not doing code reviews)
Added dchecks and cleaned up assembly based on feedback
5 years, 7 months ago (2015-05-19 14:56:59 UTC) #21
paul.l...
https://codereview.chromium.org/1133933003/diff/120001/src/arm64/builtins-arm64.cc File src/arm64/builtins-arm64.cc (right): https://codereview.chromium.org/1133933003/diff/120001/src/arm64/builtins-arm64.cc#newcode1755 src/arm64/builtins-arm64.cc:1755: FieldMemOperand(scratch1, SharedFunctionInfo::kLengthOffset)); Ldrsh() should be Ldr() , per previous ...
5 years, 7 months ago (2015-05-19 15:30:57 UTC) #22
arv (Not doing code reviews)
Use Ldr on arm64
5 years, 7 months ago (2015-05-19 15:54:19 UTC) #23
arv (Not doing code reviews)
Thanks https://codereview.chromium.org/1133933003/diff/120001/src/arm64/builtins-arm64.cc File src/arm64/builtins-arm64.cc (right): https://codereview.chromium.org/1133933003/diff/120001/src/arm64/builtins-arm64.cc#newcode1755 src/arm64/builtins-arm64.cc:1755: FieldMemOperand(scratch1, SharedFunctionInfo::kLengthOffset)); On 2015/05/19 15:30:56, paul.l... wrote: > ...
5 years, 7 months ago (2015-05-19 15:54:38 UTC) #24
Rodolph Perfetta
On 2015/05/19 15:54:38, arv wrote: > Thanks > > https://codereview.chromium.org/1133933003/diff/120001/src/arm64/builtins-arm64.cc > File src/arm64/builtins-arm64.cc (right): > ...
5 years, 7 months ago (2015-05-19 16:06:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133933003/140001
5 years, 7 months ago (2015-05-19 18:42:42 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-19 18:44:26 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 18:44:44 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/78f0452d310221ac74b6221140d376d8302c4579
Cr-Commit-Position: refs/heads/master@{#28491}

Powered by Google App Engine
This is Rietveld 408576698