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

Unified Diff: src/objects.cc

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: fixed tests 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index eb4b343350dc2c06de4853713eb99e7929c5f7c2..0f97ae03a509c889fd89b0063da53eabab0b3a44 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13448,6 +13448,16 @@ String* SharedFunctionInfo::DebugName() {
return String::cast(n);
}
+bool SharedFunctionInfo::DebugIsBlackboxed() {
+ if (!computed_debug_is_blackboxed()) {
+ HandleScope handle_scope(GetIsolate());
+ Handle<SharedFunctionInfo> info(this);
+ set_debug_is_blackboxed(info->GetIsolate()->debug()->IsBlackboxed(info));
+ set_computed_debug_is_blackboxed(true);
Yang 2017/01/23 08:48:29 Oh yeah, this is not GC-safe. set_debug_is_blackbo
kozy 2017/01/23 20:28:01 Thank you! Done. I'll try to be more accurate abou
+ }
+ return debug_is_blackboxed();
+}
+
bool SharedFunctionInfo::HasNoSideEffect() {
if (!computed_has_no_side_effect()) {
DisallowHeapAllocation not_handlified;
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698