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

Issue 1901083002: [Interpreter] Introduce IncStub and DecStub. (Closed)

Created:
4 years, 8 months ago by rmcilroy
Modified:
4 years, 8 months ago
CC:
oth, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Introduce IncStub and DecStub. Adds IncStub and DecStub TurboFan code stubs and hooks them up to the interpreter's Inc and Dec bytecodes (which are used for count operations, e.g. i++). BUG=v8:4280 LOG=N Committed: https://crrev.com/c58f3285815c44312235030facb86fa0eb2cdc98 Cr-Commit-Position: refs/heads/master@{#35720}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Address review comments #

Total comments: 2

Patch Set 3 : Review comments. #

Patch Set 4 : Omit ToNumber where possible #

Total comments: 4

Patch Set 5 : Address comments #

Patch Set 6 : Rebase #

Patch Set 7 : Reabse #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -51 lines) Patch
M src/arm/interface-descriptors-arm.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/arm64/interface-descriptors-arm64.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/code-factory.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/code-factory.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M src/code-stubs.h View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 1 chunk +162 lines, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M src/ia32/interface-descriptors-ia32.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M src/mips/interface-descriptors-mips.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/mips64/interface-descriptors-mips64.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/ppc/interface-descriptors-ppc.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/s390/interface-descriptors-s390.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M src/x64/interface-descriptors-x64.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/x87/interface-descriptors-x87.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 1 2 3 5 chunks +6 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 2 3 4 chunks +6 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 2 3 8 chunks +5 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoExpression.golden View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 39 (17 generated)
rmcilroy
Benedikt / Enrico, PTAL, thanks.
4 years, 8 months ago (2016-04-19 10:52:39 UTC) #4
epertoso
https://codereview.chromium.org/1901083002/diff/40001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1901083002/diff/40001/src/code-stubs.cc#newcode1611 src/code-stubs.cc:1611: void IncStub::GenerateAssembly(compiler::CodeStubAssembler* assembler) const { After http://crrev.com/1893383002, you should ...
4 years, 8 months ago (2016-04-19 13:08:11 UTC) #5
rmcilroy
https://codereview.chromium.org/1901083002/diff/40001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1901083002/diff/40001/src/code-stubs.cc#newcode1611 src/code-stubs.cc:1611: void IncStub::GenerateAssembly(compiler::CodeStubAssembler* assembler) const { On 2016/04/19 13:08:11, epertoso ...
4 years, 8 months ago (2016-04-19 14:31:46 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901083002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901083002/60001
4 years, 8 months ago (2016-04-19 14:32:16 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_mips64el_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_rel/builds/13282) v8_linux_mipsel_compile_rel on ...
4 years, 8 months ago (2016-04-19 14:35:26 UTC) #10
epertoso
https://codereview.chromium.org/1901083002/diff/60001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1901083002/diff/60001/src/code-stubs.cc#newcode1623 src/code-stubs.cc:1623: // Input has been converted to a number using ...
4 years, 8 months ago (2016-04-19 15:48:23 UTC) #11
rmcilroy
https://codereview.chromium.org/1901083002/diff/60001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1901083002/diff/60001/src/code-stubs.cc#newcode1623 src/code-stubs.cc:1623: // Input has been converted to a number using ...
4 years, 8 months ago (2016-04-19 15:50:03 UTC) #12
Benedikt Meurer
How about moving the ToNumber into Inc/Dec (at the bytecode level already)? That way you ...
4 years, 8 months ago (2016-04-20 03:52:52 UTC) #13
rmcilroy
On 2016/04/20 03:52:52, Benedikt Meurer wrote: > How about moving the ToNumber into Inc/Dec (at ...
4 years, 8 months ago (2016-04-20 08:55:19 UTC) #14
rmcilroy
On 2016/04/20 08:55:19, rmcilroy wrote: > On 2016/04/20 03:52:52, Benedikt Meurer wrote: > > How ...
4 years, 8 months ago (2016-04-20 14:49:37 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901083002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901083002/80001
4 years, 8 months ago (2016-04-20 14:49:42 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-20 15:15:52 UTC) #20
Benedikt Meurer
Very nice! LGTM. https://codereview.chromium.org/1901083002/diff/100001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/1901083002/diff/100001/src/code-stubs.cc#newcode1625 src/code-stubs.cc:1625: Label start(assembler, 1, start_vars); You can ...
4 years, 8 months ago (2016-04-21 11:37:35 UTC) #22
rmcilroy
Enrico, do you have any more comments before I land this? https://codereview.chromium.org/1901083002/diff/100001/src/code-stubs.cc File src/code-stubs.cc (right): ...
4 years, 8 months ago (2016-04-21 13:55:31 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901083002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901083002/140001
4 years, 8 months ago (2016-04-21 13:55:41 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/16591) v8_linux64_asan_rel_ng on ...
4 years, 8 months ago (2016-04-21 13:57:12 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901083002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901083002/160001
4 years, 8 months ago (2016-04-21 14:34:36 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 14:58:28 UTC) #31
epertoso
lgtm
4 years, 8 months ago (2016-04-22 09:40:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901083002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901083002/200001
4 years, 8 months ago (2016-04-22 09:48:59 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 8 months ago (2016-04-22 10:35:48 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:19 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c58f3285815c44312235030facb86fa0eb2cdc98
Cr-Commit-Position: refs/heads/master@{#35720}

Powered by Google App Engine
This is Rietveld 408576698