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

Unified Diff: src/debug/debug.cc

Issue 2744613006: [object] Add Script::IsUserJavaScript(). (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 8c85e4b2497f66317f7152ed786b977056d76557..76ded2cc7ada18cb7d511d55d315cf80733f799f 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -1979,7 +1979,7 @@ bool Debug::IsBlackboxed(Handle<SharedFunctionInfo> shared) {
DisableBreak no_recursive_break(this);
DCHECK(shared->script()->IsScript());
Handle<Script> script(Script::cast(shared->script()));
- DCHECK(script->type() == i::Script::TYPE_NORMAL);
+ DCHECK(script->IsUserJavaScript());
debug::Location start =
GetDebugLocation(script, shared->start_position());
debug::Location end = GetDebugLocation(script, shared->end_position());
@@ -2030,8 +2030,7 @@ void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
FixedArray* array = isolate_->native_context()->embedder_data();
script->set_context_data(array->get(v8::Context::kDebugIdIndex));
if (ignore_events()) return;
- if (script->type() != i::Script::TYPE_NORMAL &&
- script->type() != i::Script::TYPE_WASM) {
+ if (!script->IsUserJavaScript() && script->type() != i::Script::TYPE_WASM) {
return;
}
if (!debug_delegate_) return;
« no previous file with comments | « src/compiler.cc ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698