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

Issue 2541113004: [Ignition/turbo] Add a NewWithSpread bytecode. (Closed)

Created:
4 years ago by petermarshall
Modified:
4 years ago
CC:
rmcilroy, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Ignition/turbo] Add a NewWithSpread bytecode. This just calls into a runtime function for implementation currently. Intermediate step in speeding up constructor calls containing a spread. The NewWithSpread bytecode will probably end up having different arguments with future CLs - the constructor and the new.target should have their own regs. For now we are calling into the runtime function, so we need the regs together. BUG=v8:5659 Committed: https://crrev.com/a25e768864362c80f060095eaefe79f53e735f63 Cr-Commit-Position: refs/heads/master@{#41542}

Patch Set 1 #

Patch Set 2 : Move MustIterate to Object #

Total comments: 6

Patch Set 3 : Call Execution::New instead and address Benedikt's comments #

Total comments: 1

Patch Set 4 : Rename to NewWithSpread #

Patch Set 5 : rename to IterationHasObservableEffects #

Total comments: 1

Patch Set 6 : Add todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -115 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 1 chunk +6 lines, -19 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-array.cc View 1 2 3 4 3 chunks +1 line, -72 lines 0 comments Download
M src/runtime/runtime-classes.cc View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden View 1 2 3 4 chunks +12 lines, -19 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 31 (19 generated)
petermarshall
PTAL :)
4 years ago (2016-12-05 11:33:41 UTC) #8
Benedikt Meurer
Nice! First round of comments. https://codereview.chromium.org/2541113004/diff/20001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2541113004/diff/20001/src/interpreter/bytecode-array-builder.h#newcode243 src/interpreter/bytecode-array-builder.h:243: BytecodeArrayBuilder& ConstructWithSpread(RegisterList args); Nit: ...
4 years ago (2016-12-05 11:42:10 UTC) #9
petermarshall
https://codereview.chromium.org/2541113004/diff/20001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2541113004/diff/20001/src/interpreter/bytecode-array-builder.h#newcode243 src/interpreter/bytecode-array-builder.h:243: BytecodeArrayBuilder& ConstructWithSpread(RegisterList args); On 2016/12/05 at 11:42:10, Benedikt Meurer ...
4 years ago (2016-12-05 13:30:46 UTC) #10
rmcilroy
Nice. Interpreter changes LGTM with naming nit addressed. +1 to putting constructor and new.target in ...
4 years ago (2016-12-05 15:03:44 UTC) #13
petermarshall
On 2016/12/05 at 15:03:44, rmcilroy wrote: > Nice. Interpreter changes LGTM with naming nit addressed. ...
4 years ago (2016-12-05 16:07:19 UTC) #18
petermarshall
> https://codereview.chromium.org/2541113004/diff/20001/src/objects.h#newcode1511 > src/objects.h:1511: bool MustIterate(); > Nit: This should have a more scary^Wdescriptive name ...
4 years ago (2016-12-05 16:09:27 UTC) #19
Benedikt Meurer
LGTM with comment. https://codereview.chromium.org/2541113004/diff/80001/src/runtime/runtime-classes.cc File src/runtime/runtime-classes.cc (right): https://codereview.chromium.org/2541113004/diff/80001/src/runtime/runtime-classes.cc#newcode421 src/runtime/runtime-classes.cc:421: for (uint32_t i = 0; i ...
4 years ago (2016-12-07 07:32:40 UTC) #20
rmcilroy
Nit - please update the CL title and description with the name change.
4 years ago (2016-12-07 07:40:31 UTC) #21
petermarshall
On 2016/12/07 at 07:40:31, rmcilroy wrote: > Nit - please update the CL title and ...
4 years ago (2016-12-07 08:04:56 UTC) #24
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/2541113004/100001
4 years ago (2016-12-07 08:05:08 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-07 08:34:58 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-07 08:35:16 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a25e768864362c80f060095eaefe79f53e735f63
Cr-Commit-Position: refs/heads/master@{#41542}

Powered by Google App Engine
This is Rietveld 408576698