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

Issue 2335513004: [Interpreter] Adds stackcheck in InterpreterPushArgsAndCall/Construct builtins. (Closed)

Created:
4 years, 3 months ago by mythria
Modified:
4 years, 3 months ago
CC:
balazs.kilvady, v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Adds stackcheck in InterpreterPushArgsAndCall/Construct builtins. In ignition, arguments to function calls and function constructors are pushed onto the stack before calling the function. It is required to check that stack does not overflow when pushing the arguments. BUG=v8:4280 LOG=N Committed: https://crrev.com/7f3d15aad423aabf2f9116a929c8fd750615610a Cr-Commit-Position: refs/heads/master@{#39470}

Patch Set 1 #

Patch Set 2 : fix for ia32 #

Total comments: 9

Patch Set 3 : Reworked ia32 PushArgs builtin and addressed comments from Ross. #

Total comments: 4

Patch Set 4 : Reverted refactoring in ia32. #

Total comments: 6

Patch Set 5 : Addressed comments from Ross. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -235 lines) Patch
M src/builtins/arm/builtins-arm.cc View 1 2 9 chunks +49 lines, -28 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 10 chunks +47 lines, -28 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 3 4 12 chunks +130 lines, -81 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 10 chunks +54 lines, -31 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 10 chunks +54 lines, -31 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 11 chunks +66 lines, -35 lines 0 comments Download
M test/mjsunit/stack-traces-overflow.js View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 39 (27 generated)
mythria
I added a stack check for InterpreterPushArgs builtins. I had to fix a mjsunit test. ...
4 years, 3 months ago (2016-09-12 13:55:34 UTC) #10
mythria
+ balazs.kilvady@
4 years, 3 months ago (2016-09-12 13:57:37 UTC) #11
rmcilroy
https://codereview.chromium.org/2335513004/diff/20001/src/builtins/arm/builtins-arm.cc File src/builtins/arm/builtins-arm.cc (right): https://codereview.chromium.org/2335513004/diff/20001/src/builtins/arm/builtins-arm.cc#newcode1235 src/builtins/arm/builtins-arm.cc:1235: __ bkpt(0); Comment that this should be unreachable (all ...
4 years, 3 months ago (2016-09-12 14:43:17 UTC) #12
mythria
I reworked the ia32 PushArgs builtin and addressed other comments. PTAL. Thanks, Mythri https://codereview.chromium.org/2335513004/diff/20001/src/builtins/arm/builtins-arm.cc File ...
4 years, 3 months ago (2016-09-13 09:53:34 UTC) #13
rmcilroy
https://codereview.chromium.org/2335513004/diff/40001/src/builtins/ia32/builtins-ia32.cc File src/builtins/ia32/builtins-ia32.cc (right): https://codereview.chromium.org/2335513004/diff/40001/src/builtins/ia32/builtins-ia32.cc#newcode942 src/builtins/ia32/builtins-ia32.cc:942: (num_slots_above_ret_address)*kPointerSize)); space between binary ops https://codereview.chromium.org/2335513004/diff/40001/src/builtins/ia32/builtins-ia32.cc#newcode1026 src/builtins/ia32/builtins-ia32.cc:1026: Generate_InterpreterPushArgsCopyArguments(masm, ecx, ...
4 years, 3 months ago (2016-09-13 10:13:56 UTC) #16
mythria
I merged the helpers back into one helper. PTAL. Thanks, Mythri https://codereview.chromium.org/2335513004/diff/40001/src/builtins/ia32/builtins-ia32.cc File src/builtins/ia32/builtins-ia32.cc (right): ...
4 years, 3 months ago (2016-09-13 11:02:32 UTC) #19
rmcilroy
https://codereview.chromium.org/2335513004/diff/60001/src/builtins/ia32/builtins-ia32.cc File src/builtins/ia32/builtins-ia32.cc (right): https://codereview.chromium.org/2335513004/diff/60001/src/builtins/ia32/builtins-ia32.cc#newcode813 src/builtins/ia32/builtins-ia32.cc:813: // We have to pop return address and the ...
4 years, 3 months ago (2016-09-13 17:12:13 UTC) #24
mythria
Thanks Ross, I addressed your comments. PTAL. Thanks, Mythri https://codereview.chromium.org/2335513004/diff/60001/src/builtins/ia32/builtins-ia32.cc File src/builtins/ia32/builtins-ia32.cc (right): https://codereview.chromium.org/2335513004/diff/60001/src/builtins/ia32/builtins-ia32.cc#newcode813 src/builtins/ia32/builtins-ia32.cc:813: ...
4 years, 3 months ago (2016-09-14 08:34:54 UTC) #25
rmcilroy
LGTM, thanks.
4 years, 3 months ago (2016-09-15 10:14:38 UTC) #30
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/2335513004/80001
4 years, 3 months ago (2016-09-16 10:25:52 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-16 10:28:37 UTC) #37
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 10:28:49 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7f3d15aad423aabf2f9116a929c8fd750615610a
Cr-Commit-Position: refs/heads/master@{#39470}

Powered by Google App Engine
This is Rietveld 408576698