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

Issue 2634283003: [TypeFeedbackVector] DeclareGlobals needs a literals array (Closed)

Created:
3 years, 11 months ago by mvstanton
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[TypeFeedbackVector] DeclareGlobals needs a literals array [RELAND with one change: until literal arrays are rooted in the outer feedback vector (coming in the next days), the runtime-scope.cc change is held off.] When a function is declared in global scope, the closure is created by the DeclareGlobals runtime service. It needs a pointer to the literals array, already allocated in the feedback vector. This fixes a bug where it's behavior wasn't in sync with CreateClosure, which accepts the literals from the vector. This enables a follow-on performance improvement in the CompileLazy builtin. BUG=680637 Review-Url: https://codereview.chromium.org/2634283003 Cr-Commit-Position: refs/heads/master@{#42620} Committed: https://chromium.googlesource.com/v8/v8/+/d287c8196990b04169d5dc4e9cf6eb03d88d9e47

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 4

Patch Set 3 : Code comments. #

Patch Set 4 : Forgotten nit. #

Patch Set 5 : Don't exploit the literals array yet. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -7 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 chunks +22 lines, -5 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (29 generated)
mvstanton
Hi Michi, hi Leszek, Thanks for the look. Leszek, if you'd just like to look ...
3 years, 11 months ago (2017-01-17 12:34:09 UTC) #8
Michael Starzinger
LGTM from my side. https://codereview.chromium.org/2634283003/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2634283003/diff/20001/src/interpreter/bytecode-generator.cc#newcode533 src/interpreter/bytecode-generator.cc:533: if (declaration.literal_slot.IsInvalid()) { nit: We ...
3 years, 11 months ago (2017-01-17 12:48:21 UTC) #11
mvstanton
Okay, thanks Michael, addressed. :) https://codereview.chromium.org/2634283003/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2634283003/diff/20001/src/interpreter/bytecode-generator.cc#newcode533 src/interpreter/bytecode-generator.cc:533: if (declaration.literal_slot.IsInvalid()) { On ...
3 years, 11 months ago (2017-01-17 13:04:39 UTC) #16
Benedikt Meurer
LGTM
3 years, 11 months ago (2017-01-17 13:06:00 UTC) #18
Leszek Swirski
interpreter lgtm
3 years, 11 months ago (2017-01-17 13:06:37 UTC) #19
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/2634283003/60001
3 years, 11 months ago (2017-01-17 13:19:48 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/b83c3d29a95f672d16ac61b50484120e3a676d9e
3 years, 11 months ago (2017-01-17 13:47:05 UTC) #26
mvstanton
Hi Michael, To get the literal array work back in the tree, it makes sense ...
3 years, 11 months ago (2017-01-23 16:03:09 UTC) #29
Michael Starzinger
Yep. Patch set #5 still LGTM.
3 years, 11 months ago (2017-01-23 17:06:58 UTC) #34
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/2634283003/80001
3 years, 11 months ago (2017-01-24 08:44:43 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 08:46:48 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/d287c8196990b04169d5dc4e9cf6eb03d88...

Powered by Google App Engine
This is Rietveld 408576698