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

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)

Created:
3 years, 10 months ago by Jarin
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Count closures using the feedback vector cell map, specialize if count==1. This introduces new maps to track whether we have created at most one closure. If we have created just one closure, Turbofan will specialize the code to its context. Review-Url: https://codereview.chromium.org/2680313002 Cr-Commit-Position: refs/heads/master@{#43108} Committed: https://chromium.googlesource.com/v8/v8/+/36ed494784706c3c573c7d5fdd61d93a33dcb91a

Patch Set 1 #

Patch Set 2 : Attempt to fix #

Patch Set 3 : Remove debug print #

Total comments: 4

Patch Set 4 : Only specialize if compiling from bytecode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -82 lines) Patch
M src/builtins/builtins-constructor.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M src/code-stub-assembler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/js-create-lowering.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-create-lowering.cc View 1 2 chunks +0 lines, -44 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/debug/liveedit.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/factory.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 2 chunks +27 lines, -0 lines 0 comments Download
M src/feedback-vector.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/heap/heap.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-compiler.cc View 1 chunk +3 lines, -1 line 0 comments Download
M test/debugger/debug/debug-liveedit-double-call.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/debugger/debug/debug-set-variable-value.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/unittests/compiler/js-create-lowering-unittest.cc View 1 2 3 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
Jarin
Could you take a look, please? (The failing test is a bug in maybe-assigned calculation, ...
3 years, 10 months ago (2017-02-10 07:55:04 UTC) #14
Benedikt Meurer
LGTM.
3 years, 10 months ago (2017-02-10 07:58:57 UTC) #15
mvstanton
thanks! LGTM.
3 years, 10 months ago (2017-02-10 09:20:41 UTC) #16
Michael Starzinger
LGTM. https://codereview.chromium.org/2680313002/diff/40001/src/compiler/js-create-lowering.cc File src/compiler/js-create-lowering.cc (left): https://codereview.chromium.org/2680313002/diff/40001/src/compiler/js-create-lowering.cc#oldcode756 src/compiler/js-create-lowering.cc:756: if (!FLAG_turbo_lower_create_closure) return NoChange(); nit: Please also remove ...
3 years, 10 months ago (2017-02-10 14:04:27 UTC) #21
Jarin
https://codereview.chromium.org/2680313002/diff/40001/src/compiler/js-create-lowering.cc File src/compiler/js-create-lowering.cc (left): https://codereview.chromium.org/2680313002/diff/40001/src/compiler/js-create-lowering.cc#oldcode756 src/compiler/js-create-lowering.cc:756: if (!FLAG_turbo_lower_create_closure) return NoChange(); On 2017/02/10 14:04:27, Michael Starzinger ...
3 years, 10 months ago (2017-02-10 14:53:06 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/2680313002/60001
3 years, 10 months ago (2017-02-10 14:53:29 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 15:19:26 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/36ed494784706c3c573c7d5fdd61d93a33d...

Powered by Google App Engine
This is Rietveld 408576698