| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 60a140b79c58f0fda45e1126dc97d0669ed142c0..4f5855440243d9b7937bdb3d2c09d066fd40c978 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -5901,7 +5901,7 @@ DebugInfo* SharedFunctionInfo::GetDebugInfo() {
|
|
|
|
|
| bool SharedFunctionInfo::HasDebugCode() {
|
| - return IsInterpreted() ||
|
| + return HasBytecodeArray() ||
|
| (code()->kind() == Code::FUNCTION && code()->has_debug_break_slots());
|
| }
|
|
|
| @@ -5925,16 +5925,6 @@ bool SharedFunctionInfo::HasBytecodeArray() {
|
| return function_data()->IsBytecodeArray();
|
| }
|
|
|
| -bool SharedFunctionInfo::IsInterpreted() {
|
| - // Currently, having bytecode does not mean the function is actually being
|
| - // interpreted. However, the debugger has to know precisely what is going to
|
| - // be executed.
|
| - // TODO(yangguo,mstarzinger): make this a synonym of HasBytecodeArray().
|
| - return code() ==
|
| - GetIsolate()->builtins()->builtin(
|
| - Builtins::kInterpreterEntryTrampoline);
|
| -}
|
| -
|
| BytecodeArray* SharedFunctionInfo::bytecode_array() {
|
| DCHECK(HasBytecodeArray());
|
| return BytecodeArray::cast(function_data());
|
|
|