Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a49bc807f1707ece12e9087c4a1a5b9e71147e74..bc1400c4d751bef6f7c7a4b7e0f9d7994cee5940 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13803,8 +13803,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(); |