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

Issue 2343633002: [interpreter] Add a fast path for dynamic local load (Closed)

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

Description

[interpreter] Add a fast path for dynamic local load Adds a fast path for loading DYNAMIC_LOCAL variables, which are lookup variables that can be context loaded, without calling the runtime, as long as there was no context extension by a sloppy eval along their context chain. BUG=v8:5263 Committed: https://crrev.com/66d2e1fc22398f24ee43d65010b80441a0a33c80 Cr-Commit-Position: refs/heads/master@{#39473}

Patch Set 1 #

Patch Set 2 : Remove unused variables #

Patch Set 3 : Add tests #

Patch Set 4 : Fix test and graph builder #

Patch Set 5 : Disable clang format for the new test #

Total comments: 12

Patch Set 6 : Address comments, add graph builder tests #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Fix extension slot word size in equality test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -24 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 1 chunk +13 lines, -1 line 0 comments Download
M src/interpreter/bytecodes.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 chunk +6 lines, -1 line 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 1 2 5 chunks +73 lines, -22 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 4 5 6 2 chunks +43 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (21 generated)
Leszek Swirski
rmcilroy@chromium.org: Please review changes in mythria@chromium.org: Please review changes in
4 years, 3 months ago (2016-09-14 13:14:54 UTC) #2
mythria
Nice, lgtm.
4 years, 3 months ago (2016-09-15 08:55:53 UTC) #7
Leszek
Added some tests, PTAL
4 years, 3 months ago (2016-09-15 09:47:16 UTC) #10
Leszek
mstarzinger@chromium.org: Please review changes in
4 years, 3 months ago (2016-09-15 11:54:59 UTC) #22
rmcilroy
Nice, LGTM once comments are addressed. https://codereview.chromium.org/2343633002/diff/80001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2343633002/diff/80001/src/compiler/bytecode-graph-builder.cc#newcode890 src/compiler/bytecode-graph-builder.cc:890: // TODO(leszeks): Build ...
4 years, 3 months ago (2016-09-16 08:56:55 UTC) #23
Leszek Swirski
https://codereview.chromium.org/2343633002/diff/80001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2343633002/diff/80001/src/compiler/bytecode-graph-builder.cc#newcode890 src/compiler/bytecode-graph-builder.cc:890: // TODO(leszeks): Build the fast path here On 2016/09/16 ...
4 years, 3 months ago (2016-09-16 10:46:55 UTC) #24
Michael Starzinger
LGTM with one comment. https://codereview.chromium.org/2343633002/diff/120001/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2343633002/diff/120001/src/interpreter/interpreter-assembler.cc#newcode141 src/interpreter/interpreter-assembler.cc:141: GotoIf(Word32NotEqual(extension_slot, TheHoleConstant()), target); Shouldn't this ...
4 years, 3 months ago (2016-09-16 12:31:59 UTC) #25
Leszek Swirski
https://codereview.chromium.org/2343633002/diff/120001/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2343633002/diff/120001/src/interpreter/interpreter-assembler.cc#newcode141 src/interpreter/interpreter-assembler.cc:141: GotoIf(Word32NotEqual(extension_slot, TheHoleConstant()), target); On 2016/09/16 12:31:59, Michael Starzinger wrote: ...
4 years, 3 months ago (2016-09-16 13:00:50 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/2343633002/140001
4 years, 3 months ago (2016-09-16 13:01:38 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-16 13:26:50 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 13:27:31 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/66d2e1fc22398f24ee43d65010b80441a0a33c80
Cr-Commit-Position: refs/heads/master@{#39473}

Powered by Google App Engine
This is Rietveld 408576698