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

Issue 2785293002: [inspector] move console to builtins (Closed)

Created:
3 years, 8 months ago by kozy
Modified:
3 years, 8 months ago
Reviewers:
dgozman, Yang
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] move console to builtins What will we get: - console would be included into snapshot and allow us to reduce time that we spent in contextCreated function (~5 times faster), - it allows us to make further small improvement of console methods, e.g. we can implement super quick return from console.assert if first argument is true, - console calls are ~ 15% faster. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng BUG=v8:6175 R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2785293002 Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#44353} Committed: https://chromium.googlesource.com/v8/v8/+/55905f85d63d75aaa9313e51eb7bede754a8e41c Review-Url: https://codereview.chromium.org/2785293002 Cr-Original-Original-Commit-Position: refs/heads/master@{#44355} Committed: https://chromium.googlesource.com/v8/v8/+/cc74ea0bc4fe4a71fa53d08b62cc18d15e01fbb3 Review-Url: https://codereview.chromium.org/2785293002 Cr-Original-Commit-Position: refs/heads/master@{#44416} Committed: https://chromium.googlesource.com/v8/v8/+/f5dc738cda0336929dcb8eb73b87fdcd01b7c685 Review-Url: https://codereview.chromium.org/2785293002 Cr-Commit-Position: refs/heads/master@{#44702} Committed: https://chromium.googlesource.com/v8/v8/+/54271c21e2860273abd6018c398b04f672ef2615

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : use console helper #

Total comments: 6

Patch Set 4 : addressed comments #

Patch Set 5 : addressed all comments #

Patch Set 6 : better test #

Patch Set 7 : fixed console.toString() #

Patch Set 8 : rebased #

Patch Set 9 : rebased #

Patch Set 10 : rebased console #

Patch Set 11 : removed unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -161 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M include/v8.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
A src/builtins/builtins-console.cc View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
M src/builtins/builtins-definitions.h View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/debug/interface-types.h View 1 2 3 2 chunks +47 lines, -0 lines 0 comments Download
M src/inspector/inspected-context.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -11 lines 0 comments Download
M src/inspector/v8-console.h View 1 2 3 4 chunks +32 lines, -25 lines 0 comments Download
M src/inspector/v8-console.cc View 1 2 3 22 chunks +56 lines, -123 lines 0 comments Download
M src/inspector/v8-inspector-impl.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/inspector-impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A test/inspector/runtime/console-spec.js View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A test/inspector/runtime/console-spec-expected.txt View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 82 (55 generated)
kozy
Dmitry, please take a look.
3 years, 8 months ago (2017-03-30 20:57:14 UTC) #1
kozy
I attached screenshot with performance comparison to the issue.
3 years, 8 months ago (2017-03-31 01:02:09 UTC) #2
Yang
On 2017/03/31 01:02:09, kozy wrote: > I attached screenshot with performance comparison to the issue. ...
3 years, 8 months ago (2017-03-31 06:21:32 UTC) #3
Yang
On 2017/03/31 06:21:32, Yang wrote: > On 2017/03/31 01:02:09, kozy wrote: > > I attached ...
3 years, 8 months ago (2017-03-31 06:39:40 UTC) #4
Yang
On 2017/03/31 06:39:40, Yang wrote: > On 2017/03/31 06:21:32, Yang wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-03-31 07:04:54 UTC) #5
kozy
On 2017/03/31 06:39:40, Yang wrote: > On 2017/03/31 06:21:32, Yang wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-03-31 07:42:01 UTC) #6
dgozman
lgtm https://codereview.chromium.org/2785293002/diff/40001/src/builtins/builtins-console.cc File src/builtins/builtins-console.cc (right): https://codereview.chromium.org/2785293002/diff/40001/src/builtins/builtins-console.cc#newcode9 src/builtins/builtins-console.cc:9: #include "src/counters.h" Remove? https://codereview.chromium.org/2785293002/diff/40001/src/debug/interface-types.h File src/debug/interface-types.h (right): https://codereview.chromium.org/2785293002/diff/40001/src/debug/interface-types.h#newcode98 ...
3 years, 8 months ago (2017-04-03 20:19:42 UTC) #10
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/2785293002/80001
3 years, 8 months ago (2017-04-03 22:03:15 UTC) #13
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/2785293002/100001
3 years, 8 months ago (2017-04-03 22:34:39 UTC) #17
kozy
all done. https://codereview.chromium.org/2785293002/diff/40001/src/builtins/builtins-console.cc File src/builtins/builtins-console.cc (right): https://codereview.chromium.org/2785293002/diff/40001/src/builtins/builtins-console.cc#newcode9 src/builtins/builtins-console.cc:9: #include "src/counters.h" On 2017/04/03 20:19:42, dgozman wrote: ...
3 years, 8 months ago (2017-04-03 22:34:41 UTC) #18
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/2785293002/120001
3 years, 8 months ago (2017-04-03 22:36:47 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://chromium.googlesource.com/v8/v8/+/55905f85d63d75aaa9313e51eb7bede754a8e41c
3 years, 8 months ago (2017-04-03 23:00:57 UTC) #26
kozy
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/2795003003/ by kozyatinskiy@chromium.org. ...
3 years, 8 months ago (2017-04-03 23:29:21 UTC) #27
kozy
all blink tests passed locally.
3 years, 8 months ago (2017-04-04 00:36:49 UTC) #33
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/2785293002/140001
3 years, 8 months ago (2017-04-04 00:37:04 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/v8/v8/+/cc74ea0bc4fe4a71fa53d08b62cc18d15e01fbb3
3 years, 8 months ago (2017-04-04 00:38:46 UTC) #39
Michael Achenbach
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/2790343002/ by machenbach@chromium.org. ...
3 years, 8 months ago (2017-04-04 06:47:54 UTC) #40
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/2785293002/140001
3 years, 8 months ago (2017-04-05 14:58:46 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/35485) v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 15:00:16 UTC) #45
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/2785293002/160001
3 years, 8 months ago (2017-04-05 15:14:25 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/builds/19658) v8_linux_verify_csa_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 15:18:35 UTC) #51
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/2785293002/180001
3 years, 8 months ago (2017-04-05 15:48:40 UTC) #54
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/2785293002/180001
3 years, 8 months ago (2017-04-05 16:30:15 UTC) #57
commit-bot: I haz the power
Committed patchset #9 (id:180001) as https://chromium.googlesource.com/v8/v8/+/f5dc738cda0336929dcb8eb73b87fdcd01b7c685
3 years, 8 months ago (2017-04-05 16:55:28 UTC) #60
Michael Achenbach
A revert of this CL (patchset #9 id:180001) has been created in https://codereview.chromium.org/2801023003/ by machenbach@chromium.org. ...
3 years, 8 months ago (2017-04-06 08:37:59 UTC) #61
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/2785293002/220001
3 years, 8 months ago (2017-04-18 19:12:09 UTC) #79
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 20:50:40 UTC) #82
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://chromium.googlesource.com/v8/v8/+/54271c21e2860273abd6018c398b04f672e...

Powered by Google App Engine
This is Rietveld 408576698