| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "accessors.h" | 7 #include "accessors.h" |
| 8 #include "allocation-site-scopes.h" | 8 #include "allocation-site-scopes.h" |
| 9 #include "api.h" | 9 #include "api.h" |
| 10 #include "arguments.h" | 10 #include "arguments.h" |
| (...skipping 16785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16796 break; | 16796 break; |
| 16797 } | 16797 } |
| 16798 } | 16798 } |
| 16799 if (index == kNoBreakPointInfo) { | 16799 if (index == kNoBreakPointInfo) { |
| 16800 // No free slot - extend break point info array. | 16800 // No free slot - extend break point info array. |
| 16801 Handle<FixedArray> old_break_points = | 16801 Handle<FixedArray> old_break_points = |
| 16802 Handle<FixedArray>(FixedArray::cast(debug_info->break_points())); | 16802 Handle<FixedArray>(FixedArray::cast(debug_info->break_points())); |
| 16803 Handle<FixedArray> new_break_points = | 16803 Handle<FixedArray> new_break_points = |
| 16804 isolate->factory()->NewFixedArray( | 16804 isolate->factory()->NewFixedArray( |
| 16805 old_break_points->length() + | 16805 old_break_points->length() + |
| 16806 Debug::kEstimatedNofBreakPointsInFunction); | 16806 DebugInfo::kEstimatedNofBreakPointsInFunction); |
| 16807 | 16807 |
| 16808 debug_info->set_break_points(*new_break_points); | 16808 debug_info->set_break_points(*new_break_points); |
| 16809 for (int i = 0; i < old_break_points->length(); i++) { | 16809 for (int i = 0; i < old_break_points->length(); i++) { |
| 16810 new_break_points->set(i, old_break_points->get(i)); | 16810 new_break_points->set(i, old_break_points->get(i)); |
| 16811 } | 16811 } |
| 16812 index = old_break_points->length(); | 16812 index = old_break_points->length(); |
| 16813 } | 16813 } |
| 16814 ASSERT(index != kNoBreakPointInfo); | 16814 ASSERT(index != kNoBreakPointInfo); |
| 16815 | 16815 |
| 16816 // Allocate new BreakPointInfo object and set the break point. | 16816 // Allocate new BreakPointInfo object and set the break point. |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17269 #define ERROR_MESSAGES_TEXTS(C, T) T, | 17269 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 17270 static const char* error_messages_[] = { | 17270 static const char* error_messages_[] = { |
| 17271 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 17271 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 17272 }; | 17272 }; |
| 17273 #undef ERROR_MESSAGES_TEXTS | 17273 #undef ERROR_MESSAGES_TEXTS |
| 17274 return error_messages_[reason]; | 17274 return error_messages_[reason]; |
| 17275 } | 17275 } |
| 17276 | 17276 |
| 17277 | 17277 |
| 17278 } } // namespace v8::internal | 17278 } } // namespace v8::internal |
| OLD | NEW |