Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 1c08a9d5cf563ab13f2029e5d4883ccda609728d..0a7ca2275f8b50a782998a3768dde9ffdccc12f4 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -485,8 +485,8 @@ bool Renumber(ParseInfo* parse_info, |
bool collect_type_profile; |
if (parse_info->shared_info().is_null() || |
parse_info->shared_info()->feedback_metadata()->length() == 0) { |
- collect_type_profile = FLAG_type_profile && |
- parse_info->script()->type() == Script::TYPE_NORMAL; |
+ collect_type_profile = |
+ FLAG_type_profile && parse_info->script()->IsUserJavaScript(); |
} else { |
collect_type_profile = |
parse_info->shared_info()->feedback_metadata()->HasTypeProfileSlot(); |