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

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)

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

Description

[inspector] cache stack frame for call sites Usually program doesn't contain a lot of different stack frames in collected stack trace. BUG=v8:6189 R=yangguo@chromium.orr TBR=bmeurer@chromium.org Review-Url: https://codereview.chromium.org/2788413004 Cr-Commit-Position: refs/heads/master@{#44622} Committed: https://chromium.googlesource.com/v8/v8/+/81bb72c11ce5bf506531390a09299f2244582db5

Patch Set 1 #

Patch Set 2 : ready for review #

Total comments: 4

Patch Set 3 : put map separately #

Total comments: 6

Patch Set 4 : check for the function name #

Patch Set 5 : fixed gcmole #

Patch Set 6 : gcmole.. #

Patch Set 7 : rebased #

Patch Set 8 : without global weak hash table #

Patch Set 9 : fixed compilation #

Patch Set 10 : removed redundant ; #

Patch Set 11 : drop stack frame cache on LowMemoryNotification and when optimize_for_size #

Patch Set 12 : rebased #

Total comments: 2

Patch Set 13 : rebased #

Total comments: 1

Patch Set 14 : addressed comments #

Patch Set 15 : tuple is here #

Patch Set 16 : reverted v8-debugger change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -33 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -1 line 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M src/extensions/statistics-extension.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +33 lines, -5 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +51 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +43 lines, -6 lines 0 comments Download
M src/perf-jit.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M src/wasm/wasm-code-specialization.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode-expectations-printer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/source-position-matcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-writer-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 79 (50 generated)
kozy
Yang, please take a look! I left more details about performance comparison in linked issue. ...
3 years, 8 months ago (2017-04-04 06:23:26 UTC) #2
rmcilroy
https://codereview.chromium.org/2788413004/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/20001/src/isolate.cc#newcode641 src/isolate.cc:641: } Rather than requiring a new field in both ...
3 years, 8 months ago (2017-04-04 09:22:49 UTC) #8
Yang
https://codereview.chromium.org/2788413004/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/20001/src/isolate.cc#newcode641 src/isolate.cc:641: } On 2017/04/04 09:22:49, rmcilroy wrote: > Rather than ...
3 years, 8 months ago (2017-04-04 13:51:58 UTC) #9
kozy
I stored stack_frame_cache separately. Please take a look. It almost finished. I've only one issue ...
3 years, 8 months ago (2017-04-04 19:11:07 UTC) #10
Yang
On 2017/04/04 19:11:07, kozy wrote: > I stored stack_frame_cache separately. Please take a look. > ...
3 years, 8 months ago (2017-04-04 19:45:29 UTC) #11
Yang
https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc#newcode634 src/isolate.cc:634: return handle(StackFrameInfo::cast(cache->ValueAt(entry)), isolate_); You would check here whether the ...
3 years, 8 months ago (2017-04-04 19:47:06 UTC) #12
kozy
https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc#newcode634 src/isolate.cc:634: return handle(StackFrameInfo::cast(cache->ValueAt(entry)), isolate_); On 2017/04/04 19:47:06, Yang wrote: > ...
3 years, 8 months ago (2017-04-04 20:48:24 UTC) #13
kozy
I mean the same with time without caching.
3 years, 8 months ago (2017-04-04 20:57:06 UTC) #14
Yang
Ulan, please also take a look! https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc#newcode634 src/isolate.cc:634: return handle(StackFrameInfo::cast(cache->ValueAt(entry)), isolate_); ...
3 years, 8 months ago (2017-04-04 21:15:18 UTC) #16
Yang
On 2017/04/04 21:15:18, Yang wrote: > Ulan, please also take a look! > > https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc ...
3 years, 8 months ago (2017-04-04 21:15:27 UTC) #17
Yang
On 2017/04/04 21:15:27, Yang wrote: > On 2017/04/04 21:15:18, Yang wrote: > > Ulan, please ...
3 years, 8 months ago (2017-04-04 21:23:23 UTC) #18
kozy
All done. https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2788413004/diff/40001/src/isolate.cc#newcode634 src/isolate.cc:634: return handle(StackFrameInfo::cast(cache->ValueAt(entry)), isolate_); On 2017/04/04 21:15:18, Yang ...
3 years, 8 months ago (2017-04-04 23:08:12 UTC) #19
kozy
Ulan, please take a look!
3 years, 8 months ago (2017-04-06 14:48:19 UTC) #30
kozy
Ross and Yang, please take another look. After discussion with Ulan about using global weak ...
3 years, 8 months ago (2017-04-08 22:10:22 UTC) #39
Yang
On 2017/04/08 22:10:22, kozy wrote: > Ross and Yang, please take another look. > After ...
3 years, 8 months ago (2017-04-08 22:30:00 UTC) #42
Yang
LGTM. Nice solution. Please wait till after branch point though. Also added Clemens for the ...
3 years, 8 months ago (2017-04-08 22:37:26 UTC) #44
Yang
On 2017/04/08 22:37:26, Yang wrote: > LGTM. Nice solution. Please wait till after branch point ...
3 years, 8 months ago (2017-04-09 06:40:08 UTC) #47
kozy
On 2017/04/09 06:40:08, Yang wrote: > On 2017/04/08 22:37:26, Yang wrote: > > LGTM. Nice ...
3 years, 8 months ago (2017-04-09 23:13:08 UTC) #48
Yang
On 2017/04/09 23:13:08, kozy wrote: > On 2017/04/09 06:40:08, Yang wrote: > > On 2017/04/08 ...
3 years, 8 months ago (2017-04-10 05:55:46 UTC) #49
ulan
lgtm
3 years, 8 months ago (2017-04-10 06:22:33 UTC) #50
Clemens Hammacher
wasm changes LGTM
3 years, 8 months ago (2017-04-10 07:24:28 UTC) #51
rmcilroy
I only skimmed (assume other folks reviewed carefully), but approach looks good, thanks. LGTM.
3 years, 8 months ago (2017-04-10 13:50:41 UTC) #52
kozy
On 2017/04/10 05:55:46, Yang wrote: > On 2017/04/09 23:13:08, kozy wrote: > > On 2017/04/09 ...
3 years, 8 months ago (2017-04-10 15:15:33 UTC) #53
Yang
LGTM. And again, please wait till after the branch :) https://codereview.chromium.org/2788413004/diff/220001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2788413004/diff/220001/src/api.cc#newcode8702 ...
3 years, 8 months ago (2017-04-11 13:09:46 UTC) #58
kozy
all done. https://codereview.chromium.org/2788413004/diff/220001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2788413004/diff/220001/src/api.cc#newcode8702 src/api.cc:8702: if (obj->IsCode() || obj->IsBytecodeArray()) { On 2017/04/11 ...
3 years, 8 months ago (2017-04-12 15:05:17 UTC) #59
Yang
https://codereview.chromium.org/2788413004/diff/240001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2788413004/diff/240001/include/v8.h#newcode8659 include/v8.h:8659: static const int kJSObjectType = 0xbd; You don't have ...
3 years, 8 months ago (2017-04-12 15:25:35 UTC) #62
kozy
On 2017/04/12 15:25:35, Yang wrote: > https://codereview.chromium.org/2788413004/diff/240001/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/2788413004/diff/240001/include/v8.h#newcode8659 > ...
3 years, 8 months ago (2017-04-12 16:19:22 UTC) #67
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/2788413004/300001
3 years, 8 months ago (2017-04-12 18:31:41 UTC) #76
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 18:33:32 UTC) #79
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://chromium.googlesource.com/v8/v8/+/81bb72c11ce5bf506531390a09299f22445...

Powered by Google App Engine
This is Rietveld 408576698