| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 31f8a80ea1a78344bdffb6a8f5f64c501ddbdf7c..def3c896c599aaa29dfa34dac3681b40ce57e281 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2232,7 +2232,7 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
|
| Handle<DebugInfo> debug_info =
|
| Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE));
|
| debug_info->set_shared(*shared);
|
| - if (shared->IsInterpreted()) {
|
| + if (shared->HasBytecodeArray()) {
|
| // We need to create a copy, but delay since this may cause heap
|
| // verification.
|
| debug_info->set_abstract_code(AbstractCode::cast(shared->bytecode_array()));
|
| @@ -2240,7 +2240,7 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
|
| debug_info->set_abstract_code(AbstractCode::cast(shared->code()));
|
| }
|
| debug_info->set_break_points(*break_points);
|
| - if (shared->IsInterpreted()) {
|
| + if (shared->HasBytecodeArray()) {
|
| // Create a copy for debugging.
|
| Handle<BytecodeArray> original(shared->bytecode_array());
|
| Handle<BytecodeArray> copy = CopyBytecodeArray(original);
|
|
|