| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index f77800ad1f789cc6d2121e876032408a9a5b25b1..56aa1482fff0d8cc1964a4b4120cccc98cdd966e 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -8721,11 +8721,11 @@ void DebugInfo::SetBreakPoint(Handle<DebugInfo> debug_info,
|
| // No free slot - extend break point info array.
|
| Handle<FixedArray> old_break_points =
|
| Handle<FixedArray>(FixedArray::cast(debug_info->break_points()));
|
| - debug_info->set_break_points(*Factory::NewFixedArray(
|
| - old_break_points->length() +
|
| - Debug::kEstimatedNofBreakPointsInFunction));
|
| Handle<FixedArray> new_break_points =
|
| - Handle<FixedArray>(FixedArray::cast(debug_info->break_points()));
|
| + Factory::NewFixedArray(old_break_points->length() +
|
| + Debug::kEstimatedNofBreakPointsInFunction);
|
| +
|
| + debug_info->set_break_points(*new_break_points);
|
| for (int i = 0; i < old_break_points->length(); i++) {
|
| new_break_points->set(i, old_break_points->get(i));
|
| }
|
|
|