Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index d1078ea7ab6ab83ab654c1c1aa8be6d39052c889..36e79f85df93854ff8d19576e6d97797ce418af7 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5717,8 +5717,8 @@ SMI_ACCESSORS(BreakPointInfo, statement_position, kStatementPositionIndex) |
ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) |
ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
-ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, |
- kOptimizedCodeMapOffset) |
+ACCESSORS(SharedFunctionInfo, optimized_code_map, FixedArray, |
+ kOptimizedCodeMapOffset) |
ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
ACCESSORS(SharedFunctionInfo, feedback_vector, TypeFeedbackVector, |
kFeedbackVectorOffset) |
@@ -6165,6 +6165,11 @@ bool SharedFunctionInfo::IsBuiltin() { |
bool SharedFunctionInfo::IsSubjectToDebugging() { return !IsBuiltin(); } |
+bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const { |
+ return optimized_code_map() == GetHeap()->cleared_optimized_code_map(); |
+} |
+ |
+ |
bool JSFunction::IsOptimized() { |
return code()->kind() == Code::OPTIMIZED_FUNCTION; |
} |