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

Issue 2499093003: [inspector] don't report frames for v8-debugger internal scripts (Closed)

Created:
4 years, 1 month ago by kozy
Modified:
4 years, 1 month ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] don't report frames for v8-debugger internal scripts We don't report scriptParsed for internal debugger scripts. Call frames should be filter out too. Example of v8-debugger internal scripts: - injected-script.js, - debugger-script.js, - temporary script to evaluate function definition in callFunctionOn protocol method, ... BUG=none R=yangguo@chromium.org

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M src/isolate.cc View 1 chunk +5 lines, -0 lines 1 comment Download
M src/objects-inl.h View 1 chunk +6 lines, -1 line 2 comments Download

Messages

Total messages: 5 (0 generated)
kozy
Yang, please take a look.
4 years, 1 month ago (2016-11-15 02:24:08 UTC) #1
kozy
Maybe we can mark v8-debugger internal scripts as native and don't add new condition to ...
4 years, 1 month ago (2016-11-15 02:25:54 UTC) #2
kozy
Maybe we can mark v8-debugger internal scripts as native and don't add new condition to ...
4 years, 1 month ago (2016-11-15 02:25:55 UTC) #3
Yang
https://codereview.chromium.org/2499093003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2499093003/diff/1/src/isolate.cc#newcode780 src/isolate.cc:780: } Please change StackTraceFrameIterator::IsValidFrame to use SharedFunctionInfo::IsSubjectToDebugging instead. Thanks. ...
4 years, 1 month ago (2016-11-15 08:15:47 UTC) #4
Yang
4 years, 1 month ago (2016-11-22 09:25:45 UTC) #5
On 2016/11/15 08:15:47, Yang wrote:
> https://codereview.chromium.org/2499093003/diff/1/src/isolate.cc
> File src/isolate.cc (right):
> 
> https://codereview.chromium.org/2499093003/diff/1/src/isolate.cc#newcode780
> src/isolate.cc:780: }
> Please change StackTraceFrameIterator::IsValidFrame to use
> SharedFunctionInfo::IsSubjectToDebugging instead. Thanks.
> 
> https://codereview.chromium.org/2499093003/diff/1/src/objects-inl.h
> File src/objects-inl.h (right):
> 
>
https://codereview.chromium.org/2499093003/diff/1/src/objects-inl.h#newcode6510
> src/objects-inl.h:6510: bool result = !IsBuiltin() && !HasAsmWasmData();
> Can we combine these two lines to
> 
> if (IsBuiltin() || HasAsmWasmData()) return false;
> 
>
https://codereview.chromium.org/2499093003/diff/1/src/objects-inl.h#newcode6515
> src/objects-inl.h:6515: return
> !script->origin_options().IsEmbedderDebugScript();
> I think we should get rid of this origin_option, and instead set introduce a
new
> script type. IsBuiltin would then return true. Other places that check for
> IsEmbedderDebugScript would also check for the script type instead.
> 
> 
> btw, in V8Debugger::getCompiledScripts, do you care about getting V8's native
> scripts? If not, we could use IsSubjectToDebugging there as well.

Can we close this CL?

Powered by Google App Engine
This is Rietveld 408576698