| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index e3b47427e38251435c4d4ab36f7498d7ec34029b..be1fda0bc46c97cff6f9aa69bdc6191958cad7fc 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6127,7 +6127,7 @@ BOOL_GETTER(SharedFunctionInfo,
|
| kOptimizationDisabled)
|
|
|
| AbstractCode* SharedFunctionInfo::abstract_code() {
|
| - if (HasBytecodeArray()) {
|
| + if ((!is_compiled() && HasBytecodeArray()) || IsInterpreted()) {
|
| return AbstractCode::cast(bytecode_array());
|
| } else {
|
| return AbstractCode::cast(code());
|
| @@ -6545,7 +6545,7 @@ void Map::InobjectSlackTrackingStep() {
|
| }
|
|
|
| AbstractCode* JSFunction::abstract_code() {
|
| - if (IsInterpreted()) {
|
| + if ((!is_compiled() && shared()->HasBytecodeArray()) || IsInterpreted()) {
|
| return AbstractCode::cast(shared()->bytecode_array());
|
| } else {
|
| return AbstractCode::cast(code());
|
|
|