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

Issue 2153433002: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed)

Created:
4 years, 5 months ago by mythria
Modified:
4 years, 5 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Collect type feedback for 'new' in the bytecode handler Collect type feedback in the bytecode handler for 'new' bytecode. The current implementation does not collect allocation site feedback. BUG=v8:4280, v8:4780 LOG=N Committed: https://crrev.com/1eadc76419b323fb2e55ae9953142f801704aa59 Cr-Commit-Position: refs/heads/master@{#37862}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix comments from Ross. #

Total comments: 2

Patch Set 3 : Added a TODO as suggested by Benedikt. #

Total comments: 6

Patch Set 4 : Addressed comments from Ross. #

Patch Set 5 : Accidentally modified a different part in the last patch. #

Patch Set 6 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -68 lines) Patch
M src/builtins/arm/builtins-arm.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M src/builtins/builtins.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 3 4 5 2 chunks +13 lines, -3 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M src/code-factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/code-factory.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 2 3 4 3 chunks +146 lines, -6 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 5 2 chunks +0 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallNew.golden View 4 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden View 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
mythria
I added type feedback support for new bytecode. I did not add support to collect ...
4 years, 5 months ago (2016-07-14 15:00:56 UTC) #6
rmcilroy
Looks good overall. A couple of comments. Also, we should update bytecode-graph-builder to pass the ...
4 years, 5 months ago (2016-07-15 10:44:06 UTC) #7
mythria
Thanks Ross. I forgot about passing the correct feedback to the bytecode graph builder. Fixed ...
4 years, 5 months ago (2016-07-15 13:53:41 UTC) #10
Benedikt Meurer
Thanks Mythri. LGTM with one comment. https://codereview.chromium.org/2153433002/diff/20001/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2153433002/diff/20001/src/interpreter/interpreter-assembler.cc#newcode692 src/interpreter/interpreter-assembler.cc:692: CreateWeakCellStub weak_cell_stub(isolate()); Can ...
4 years, 5 months ago (2016-07-17 19:37:14 UTC) #13
mythria
Thanks for the review Benedikt. I added the TODO to both call and construct handlers. ...
4 years, 5 months ago (2016-07-18 09:22:40 UTC) #18
rmcilroy
LGTM with a couple of comments, thanks. Benedikt: Do you have any answers for the ...
4 years, 5 months ago (2016-07-18 10:13:01 UTC) #19
mythria
Thanks Ross, as discussed offline, I added a TODO for marking the extra_checks block as ...
4 years, 5 months ago (2016-07-19 09:50:59 UTC) #20
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/2153433002/100001
4 years, 5 months ago (2016-07-19 11:07:39 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-19 11:10:00 UTC) #32
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/1eadc76419b323fb2e55ae9953142f801704aa59 Cr-Commit-Position: refs/heads/master@{#37862}
4 years, 5 months ago (2016-07-19 11:10:43 UTC) #34
mythria
4 years, 5 months ago (2016-07-19 14:15:49 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2165633003/ by mythria@chromium.org.

The reason for reverting is: This cl causes a large regression in octane
(https://chromeperf.appspot.com/group_report?bug_id=629503). I have to
investigate the reason before I can reland this..

Powered by Google App Engine
This is Rietveld 408576698