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

Issue 2038083002: [Interpreter] Add a simple dead-code elimination bytecode optimizer. (Closed)

Created:
4 years, 6 months ago by rmcilroy
Modified:
4 years, 6 months ago
Reviewers:
oth
CC:
v8-reviews_googlegroups.com, rmcilroy, Michael Hablich
Base URL:
https://chromium.googlesource.com/v8/v8.git@int_jump_writer
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Add a simple dead-code elimination bytecode optimizer. Adds back simple dead code elimination to the bytecode pipeline. BUG=v8:4280, chromium:616064 Committed: https://crrev.com/76368d085432aa2a919eadfe2ea01be2be50eb07 Cr-Commit-Position: refs/heads/master@{#37147}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add tests #

Total comments: 4

Patch Set 4 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -112 lines) Patch
M BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
A src/interpreter/bytecode-dead-code-optimizer.h View 1 chunk +41 lines, -0 lines 0 comments Download
A src/interpreter/bytecode-dead-code-optimizer.cc View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoExpression.golden View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IfConditions.golden View 1 2 6 chunks +6 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Throw.golden View 2 chunks +2 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryCatch.golden View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WithStatement.golden View 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M test/cctest/interpreter/test-source-positions.cc View 1 2 4 chunks +34 lines, -39 lines 0 comments Download
M test/unittests/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 10 chunks +78 lines, -41 lines 0 comments Download
A test/unittests/interpreter/bytecode-dead-code-optimizer-unittest.cc View 1 2 1 chunk +149 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
rmcilroy
The perf bots seem reasonably fine with this (+/- 0.5% so in the noise, except ...
4 years, 6 months ago (2016-06-06 12:21:12 UTC) #2
oth
On 2016/06/06 12:21:12, rmcilroy wrote: > The perf bots seem reasonably fine with this (+/- ...
4 years, 6 months ago (2016-06-06 20:36:15 UTC) #3
rmcilroy
Added tests, PTAL, thanks. https://codereview.chromium.org/2038083002/diff/80001/test/cctest/interpreter/test-source-positions.cc File test/cctest/interpreter/test-source-positions.cc (left): https://codereview.chromium.org/2038083002/diff/80001/test/cctest/interpreter/test-source-positions.cc#oldcode186 test/cctest/interpreter/test-source-positions.cc:186: std::string function_name = MakeFunctionName(optimization_bitmap); It ...
4 years, 6 months ago (2016-06-21 10:25:20 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038083002/80001
4 years, 6 months ago (2016-06-21 10:25:36 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/3502) v8_linux64_avx2_rel_ng_triggered on ...
4 years, 6 months ago (2016-06-21 10:44:00 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038083002/100001
4 years, 6 months ago (2016-06-21 10:51:49 UTC) #12
oth
Nice. lgtm. https://codereview.chromium.org/2038083002/diff/80001/test/cctest/interpreter/test-source-positions.cc File test/cctest/interpreter/test-source-positions.cc (left): https://codereview.chromium.org/2038083002/diff/80001/test/cctest/interpreter/test-source-positions.cc#oldcode186 test/cctest/interpreter/test-source-positions.cc:186: std::string function_name = MakeFunctionName(optimization_bitmap); On 2016/06/21 10:25:19, ...
4 years, 6 months ago (2016-06-21 11:03:56 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 11:20:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038083002/100001
4 years, 6 months ago (2016-06-21 15:24:34 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 6 months ago (2016-06-21 15:27:00 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 15:29:35 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/76368d085432aa2a919eadfe2ea01be2be50eb07
Cr-Commit-Position: refs/heads/master@{#37147}

Powered by Google App Engine
This is Rietveld 408576698