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

Unified Diff: src/api.cc

Issue 2512463002: Revert of Refactor SharedFunctionInfo::IsBuiltin. (Closed)
Patch Set: Created 4 years, 1 month 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/accessors.cc ('k') | src/ast/prettyprinter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 7914b36c115f3d48cf0f3d6cfd3610cac45d5f8b..8eca750f268727784f14142db40342640ba187c1 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -5109,7 +5109,7 @@
return false;
}
auto func = i::Handle<i::JSFunction>::cast(self);
- return !func->shared()->IsUserJavaScript();
+ return func->shared()->IsBuiltin();
}
« no previous file with comments | « src/accessors.cc ('k') | src/ast/prettyprinter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698