Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 58d51c11ae874ce2ed087636dd84b3844b358a7d..c25d163916b721805bf7bbf7be14bb102bf19130 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13801,8 +13801,10 @@ void SharedFunctionInfo::DisableOptimization(BailoutReason reason) { |
set_optimization_disabled(true); |
set_disable_optimization_reason(reason); |
// Code should be the lazy compilation stub or else unoptimized. |
- DCHECK(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN); |
- PROFILE(GetIsolate(), CodeDisableOptEvent(code(), this)); |
+ DCHECK(abstract_code()->kind() == AbstractCode::FUNCTION || |
+ abstract_code()->kind() == AbstractCode::INTERPRETED_FUNCTION || |
+ abstract_code()->kind() == AbstractCode::BUILTIN); |
+ PROFILE(GetIsolate(), CodeDisableOptEvent(abstract_code(), this)); |
if (FLAG_trace_opt) { |
PrintF("[disabled optimization for "); |
ShortPrint(); |