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

Issue 2187523002: [interpreter] Add CreateFunctionContext bytecode (Closed)

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

Description

[interpreter] Add CreateFunctionContext bytecode Add a new bytecode to create a function context. The handler inlines FastNewFunctionContextStub. BUG=v8:4280 LOG=n Committed: https://crrev.com/8097eeb9f2a222540d5745d769290d65e38e7f05 Cr-Commit-Position: refs/heads/master@{#38301}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rename to CreateFunctionContext #

Patch Set 4 : remove kMaximumSlots distinction #

Patch Set 5 : rebase #

Patch Set 6 : rebase and fix .golden files #

Total comments: 2

Patch Set 7 : fix bytecode-generator #

Total comments: 8

Patch Set 8 : comments #

Patch Set 9 : fix bytecode graph builder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -89 lines) Patch
M src/code-stubs.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 3 chunks +17 lines, -8 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextParameters.golden View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 1 2 3 4 5 6 7 6 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateArguments.golden View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Delete.golden View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Eval.golden View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 4 5 6 9 chunks +15 lines, -15 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
klaasb
4 years, 4 months ago (2016-08-02 11:22:15 UTC) #7
Michael Starzinger
https://codereview.chromium.org/2187523002/diff/100001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2187523002/diff/100001/src/interpreter/bytecode-generator.cc#newcode3014 src/interpreter/bytecode-generator.cc:3014: scope->GetScopeInfo(isolate())->ContextLength()); Using the {ScopeInfo} here looks dangerous. The slot ...
4 years, 4 months ago (2016-08-02 11:58:41 UTC) #8
Michael Starzinger
LGTM modulo the one comment.
4 years, 4 months ago (2016-08-02 11:59:41 UTC) #9
klaasb
https://codereview.chromium.org/2187523002/diff/100001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2187523002/diff/100001/src/interpreter/bytecode-generator.cc#newcode3014 src/interpreter/bytecode-generator.cc:3014: scope->GetScopeInfo(isolate())->ContextLength()); On 2016/08/02 11:58:41, Michael Starzinger wrote: > Using ...
4 years, 4 months ago (2016-08-02 13:02:26 UTC) #10
rmcilroy
https://codereview.chromium.org/2187523002/diff/120001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/2187523002/diff/120001/src/interpreter/bytecode-array-builder.cc#newcode341 src/interpreter/bytecode-array-builder.cc:341: Output(Bytecode::kCreateFunctionContext, SignedOperand(slots)); Signed? This should always be positive right? ...
4 years, 4 months ago (2016-08-03 10:58:14 UTC) #11
rmcilroy
LGTM with comments in previous reply.
4 years, 4 months ago (2016-08-03 10:58:30 UTC) #12
klaasb
https://codereview.chromium.org/2187523002/diff/120001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/2187523002/diff/120001/src/interpreter/bytecode-array-builder.cc#newcode341 src/interpreter/bytecode-array-builder.cc:341: Output(Bytecode::kCreateFunctionContext, SignedOperand(slots)); On 2016/08/03 10:58:14, rmcilroy (OOO) wrote: > ...
4 years, 4 months ago (2016-08-03 12:28:16 UTC) #13
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/2187523002/140001
4 years, 4 months ago (2016-08-03 12:28:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/6138) v8_linux64_avx2_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-03 12:45:32 UTC) #18
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/2187523002/160001
4 years, 4 months ago (2016-08-03 14:39:55 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-03 14:41:52 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 14:43:37 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8097eeb9f2a222540d5745d769290d65e38e7f05
Cr-Commit-Position: refs/heads/master@{#38301}

Powered by Google App Engine
This is Rietveld 408576698