| Index: src/debug/debug.cc
|
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc
|
| index 8d0f7ee677c2e63c9e1105838d8a1b7fdae1eaf2..3b5fb5f53d5f449b9cd3e0122a34fdffb93c44cc 100644
|
| --- a/src/debug/debug.cc
|
| +++ b/src/debug/debug.cc
|
| @@ -1323,7 +1323,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
|
| isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
|
| "prepare for break points");
|
|
|
| - bool is_interpreted = shared->IsInterpreted();
|
| + bool is_interpreted = shared->HasBytecodeArray();
|
|
|
| {
|
| // TODO(yangguo): with bytecode, we still walk the heap to find all
|
| @@ -1532,7 +1532,7 @@ bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared,
|
| return false;
|
| }
|
|
|
| - if (shared->IsInterpreted()) {
|
| + if (shared->HasBytecodeArray()) {
|
| // To prepare bytecode for debugging, we already need to have the debug
|
| // info (containing the debug copy) upfront, but since we do not recompile,
|
| // preparing for break points cannot fail.
|
|
|