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

Issue 1817033002: [Interpreter] Add dispatch counters for each bytecode. (Closed)

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

Description

[Interpreter] Add dispatch counters for each bytecode. Counters are enabled with FLAG_ignition_count_handler_dispatches. Increment saturates instead of overflowing. BUG=v8:4280 LOG=N

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase on master. #

Total comments: 2

Patch Set 3 : Extract dump code, reduce table size. #

Patch Set 4 : Saturate counters instead of overflowing. #

Patch Set 5 : Rebase on master. #

Patch Set 6 : Remove unused bailout reason, rebase on master. #

Total comments: 28

Patch Set 7 : Renaming and moving code around. #

Patch Set 8 : uintptr instead of uint32 #

Patch Set 9 : Rebase on master. #

Patch Set 10 : Expand counter variable name. #

Patch Set 11 : Open table file inside write function V8_SHARED guards. #

Patch Set 12 : Use smart pointer instead of vector. #

Patch Set 13 : Memset allocated counters array. #

Patch Set 14 : Minor code cleanups. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -3 lines) Patch
M src/assembler.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/d8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +26 lines, -0 lines 0 comments Download
M src/external-reference-table.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -3 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 42 (23 generated)
Stefano Sanfilippo
PTAL.
4 years, 9 months ago (2016-03-21 15:22:57 UTC) #5
rmcilroy
https://codereview.chromium.org/1817033002/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1817033002/diff/20001/src/d8.cc#newcode1353 src/d8.cc:1353: } As discussed, maybe we could output json for ...
4 years, 9 months ago (2016-03-23 11:04:26 UTC) #9
Stefano Sanfilippo
https://codereview.chromium.org/1817033002/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1817033002/diff/20001/src/d8.cc#newcode1353 src/d8.cc:1353: } On 2016/03/23 11:04:26, rmcilroy wrote: > As discussed, ...
4 years, 9 months ago (2016-03-23 16:26:27 UTC) #10
rmcilroy
https://codereview.chromium.org/1817033002/diff/120001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1817033002/diff/120001/src/assembler.h#newcode908 src/assembler.h:908: static ExternalReference interpreter_handlers_dispatch_counters( nit - just interpreter_dispatch_counters (throughout, and ...
4 years, 8 months ago (2016-04-05 10:00:46 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/160001
4 years, 8 months ago (2016-04-05 11:33:44 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/16118) v8_linux_arm64_rel on ...
4 years, 8 months ago (2016-04-05 11:34:55 UTC) #17
Stefano Sanfilippo
https://codereview.chromium.org/1817033002/diff/120001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1817033002/diff/120001/src/assembler.h#newcode908 src/assembler.h:908: static ExternalReference interpreter_handlers_dispatch_counters( On 2016/04/05 10:00:45, rmcilroy (Slow) wrote: ...
4 years, 8 months ago (2016-04-05 14:01:46 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/160001
4 years, 8 months ago (2016-04-05 14:02:21 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/15746) v8_linux64_asan_rel on ...
4 years, 8 months ago (2016-04-05 14:03:50 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/180001
4 years, 8 months ago (2016-04-05 14:21:13 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_compile_rel/builds/12753)
4 years, 8 months ago (2016-04-05 14:41:13 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/200001
4 years, 8 months ago (2016-04-05 14:46:42 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_compile_rel/builds/12758)
4 years, 8 months ago (2016-04-05 14:54:34 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/240001
4 years, 8 months ago (2016-04-05 16:24:42 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/280001
4 years, 8 months ago (2016-04-05 17:54:02 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/3813) v8_linux64_rel_ng_triggered on ...
4 years, 8 months ago (2016-04-05 18:25:51 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817033002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817033002/300001
4 years, 8 months ago (2016-04-06 11:03:35 UTC) #39
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 11:37:11 UTC) #41
Stefano Sanfilippo
4 years, 8 months ago (2016-04-18 12:54:24 UTC) #42
Message was sent while issue was closed.
Closing, as we went for the approach in
https://crrev.com/1e3257d27f42ee1fd81aaf97536db171e7abd7fd

Powered by Google App Engine
This is Rietveld 408576698