| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index fac61a6ee8a212b677d04e78f2f52a76c59e821c..4aa62063209940111756241a8f644090c315177d 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2405,7 +2405,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
|
| share->SetConstructStub(*construct_stub);
|
| share->set_instance_class_name(*Object_string());
|
| share->set_script(*undefined_value(), SKIP_WRITE_BARRIER);
|
| - share->set_debug_info(DebugInfo::uninitialized(), SKIP_WRITE_BARRIER);
|
| + share->set_debug_info(Smi::kZero, SKIP_WRITE_BARRIER);
|
| share->set_function_identifier(*undefined_value(), SKIP_WRITE_BARRIER);
|
| StaticFeedbackVectorSpec empty_spec;
|
| Handle<TypeFeedbackMetadata> feedback_metadata =
|
| @@ -2509,6 +2509,7 @@ Handle<String> Factory::NumberToString(Handle<Object> number,
|
|
|
|
|
| Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
|
| + DCHECK(!shared->HasDebugInfo());
|
| // Allocate initial fixed array for active break points before allocating the
|
| // debug info object to avoid allocation while setting up the debug info
|
| // object.
|
| @@ -2528,6 +2529,7 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
|
| Handle<DebugInfo> debug_info =
|
| Handle<DebugInfo>::cast(NewStruct(DEBUG_INFO_TYPE));
|
| debug_info->set_shared(*shared);
|
| + debug_info->set_debugger_hints(shared->debugger_hints());
|
| debug_info->set_debug_bytecode_array(*maybe_debug_bytecode_array);
|
| debug_info->set_break_points(*break_points);
|
|
|
|
|