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

Unified Diff: src/objects.cc

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: one more test Created 3 years, 11 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index e52f47657be249c4932d27ac6bee653c934a9a31..356b6ba09cef00c728d06f8933cd94b95a53fdec 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13402,6 +13402,15 @@ String* SharedFunctionInfo::DebugName() {
return String::cast(n);
}
+bool SharedFunctionInfo::DebugIsBlackboxed() {
+ if (!computed_debug_is_blackboxed()) {
+ Handle<SharedFunctionInfo> info(this);
+ set_debug_is_blackboxed(info->GetIsolate()->debug()->IsBlackboxed(info));
+ set_computed_debug_is_blackboxed(true);
+ }
+ return debug_is_blackboxed();
+}
+
bool SharedFunctionInfo::HasNoSideEffect() {
if (!computed_has_no_side_effect()) {
DisallowHeapAllocation not_handlified;
« src/inspector/v8-debugger-agent-impl.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698