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

Issue 2347143002: [interpreter] Add fast path for dynamic global lookups (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 fast path for dynamic global lookups Adds a fast path for loading DYNAMIC_GLOBAL variables, which are lookup variables that can be globally 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/044a62be6c8ece4e3b95a23f485cfa6831098b39 Cr-Commit-Position: refs/heads/master@{#39537}

Patch Set 1 #

Patch Set 2 : Add interpreter/bytecode-graph-builder tests #

Patch Set 3 : Rebase on master and rebaseline tests #

Total comments: 20

Patch Set 4 : Fix comments and some inlining of methods #

Total comments: 4

Patch Set 5 : Fix bytecode operand documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -24 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 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 1 chunk +6 lines, -0 lines 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 2 chunks +10 lines, -2 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 6 chunks +70 lines, -10 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 1 2 5 chunks +54 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotInEval.golden View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotWideInEval.golden View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 1 chunk +41 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

Depends on Patchset:

Messages

Total messages: 22 (13 generated)
Leszek Swirski
rmcilroy@chromium.org: Please review changes in mythria@chromium.org: Please review changes in
4 years, 3 months ago (2016-09-16 11:22:34 UTC) #4
rmcilroy
LGTM with some nits. https://codereview.chromium.org/2347143002/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2347143002/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode919 src/compiler/bytecode-graph-builder.cc:919: // TODO(leszeks): Build the fast ...
4 years, 3 months ago (2016-09-19 09:04:29 UTC) #11
mythria
Thanks, lgtm with a minor nit. https://codereview.chromium.org/2347143002/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2347143002/diff/40001/src/interpreter/bytecode-array-builder.h#newcode141 src/interpreter/bytecode-array-builder.h:141: // Lookup the ...
4 years, 3 months ago (2016-09-19 09:26:53 UTC) #12
Leszek Swirski
https://codereview.chromium.org/2347143002/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2347143002/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode919 src/compiler/bytecode-graph-builder.cc:919: // TODO(leszeks): Build the fast path here On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 10:34:52 UTC) #13
Leszek Swirski
mstarzinger@chromium.org: Please review changes in
4 years, 3 months ago (2016-09-19 10:45:46 UTC) #15
Michael Starzinger
LGTM. https://codereview.chromium.org/2347143002/diff/60001/src/interpreter/interpreter.cc File src/interpreter/interpreter.cc (right): https://codereview.chromium.org/2347143002/diff/60001/src/interpreter/interpreter.cc#newcode630 src/interpreter/interpreter.cc:630: // LdaLookupSlot <name_index> nit: // LdaLookupContextSlot <name_index> <slot_index> ...
4 years, 3 months ago (2016-09-20 09:26:38 UTC) #16
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/2347143002/80001
4 years, 3 months ago (2016-09-20 09:39:47 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-20 10:31:30 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 10:32:01 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/044a62be6c8ece4e3b95a23f485cfa6831098b39
Cr-Commit-Position: refs/heads/master@{#39537}

Powered by Google App Engine
This is Rietveld 408576698