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

Unified Diff: src/objects-inl.h

Issue 2457433002: Fix detection of BUILTIN functions (Closed)
Patch Set: Fix expected output Created 4 years, 2 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 | « no previous file | test/inspector/debugger/asm-js-breakpoint-before-exec.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 6e55449a8983bec4bbb93ddb7e21a6419dc692cf..a80d2f82c649bb261f226caf6c0039b0195497cc 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6495,9 +6495,9 @@ bool SharedFunctionInfo::IsBuiltin() {
return type != Script::TYPE_NORMAL;
}
-
-bool SharedFunctionInfo::IsSubjectToDebugging() { return !IsBuiltin(); }
-
+bool SharedFunctionInfo::IsSubjectToDebugging() {
+ return !IsBuiltin() && !HasAsmWasmData();
+}
bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const {
return optimized_code_map() == GetHeap()->empty_fixed_array();
« no previous file with comments | « no previous file | test/inspector/debugger/asm-js-breakpoint-before-exec.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698