Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 095425262a6ee7ed2d893b195e9f7d9b5320c2ee..471a840b5d70da098c6b3a5fe1cf49d8ad344556 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5859,6 +5859,7 @@ bool SharedFunctionInfo::is_compiled() { |
Builtins* builtins = GetIsolate()->builtins(); |
DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent)); |
DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized)); |
+ DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline)); |
return code() != builtins->builtin(Builtins::kCompileLazy); |
} |
@@ -6054,6 +6055,10 @@ bool JSFunction::IsOptimized() { |
return code()->kind() == Code::OPTIMIZED_FUNCTION; |
} |
+bool JSFunction::IsMarkedForBaseline() { |
+ return code() == |
+ GetIsolate()->builtins()->builtin(Builtins::kCompileBaseline); |
+} |
bool JSFunction::IsMarkedForOptimization() { |
return code() == GetIsolate()->builtins()->builtin( |
@@ -6219,6 +6224,7 @@ Object* JSFunction::prototype() { |
bool JSFunction::is_compiled() { |
Builtins* builtins = GetIsolate()->builtins(); |
return code() != builtins->builtin(Builtins::kCompileLazy) && |
+ code() != builtins->builtin(Builtins::kCompileBaseline) && |
code() != builtins->builtin(Builtins::kCompileOptimized) && |
code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent); |
} |