Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f8ecab355e082c2f38bf7f6ac9ac04b09e6c8220..93eacb292fdafd938cd1c141d6514d05724c98ea 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -18599,11 +18599,8 @@ void DebugInfo::SetBreakPoint(Handle<DebugInfo> debug_info, int source_position, |
DCHECK(index != kNoBreakPointInfo); |
// Allocate new BreakPointInfo object and set the break point. |
- Handle<BreakPointInfo> new_break_point_info = Handle<BreakPointInfo>::cast( |
- isolate->factory()->NewStruct(BREAK_POINT_INFO_TYPE)); |
- new_break_point_info->set_source_position(source_position); |
- new_break_point_info->set_break_point_objects( |
- isolate->heap()->undefined_value()); |
+ Handle<BreakPointInfo> new_break_point_info = |
+ isolate->factory()->NewBreakPointInfo(source_position); |
BreakPointInfo::SetBreakPoint(new_break_point_info, break_point_object); |
debug_info->break_points()->set(index, *new_break_point_info); |
} |