Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.cc

Issue 297303006: Some more debugger-related refactorings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16678 matching lines...) Expand 10 before | Expand all | Expand 10 after
16689 break; 16689 break;
16690 } 16690 }
16691 } 16691 }
16692 if (index == kNoBreakPointInfo) { 16692 if (index == kNoBreakPointInfo) {
16693 // No free slot - extend break point info array. 16693 // No free slot - extend break point info array.
16694 Handle<FixedArray> old_break_points = 16694 Handle<FixedArray> old_break_points =
16695 Handle<FixedArray>(FixedArray::cast(debug_info->break_points())); 16695 Handle<FixedArray>(FixedArray::cast(debug_info->break_points()));
16696 Handle<FixedArray> new_break_points = 16696 Handle<FixedArray> new_break_points =
16697 isolate->factory()->NewFixedArray( 16697 isolate->factory()->NewFixedArray(
16698 old_break_points->length() + 16698 old_break_points->length() +
16699 Debug::kEstimatedNofBreakPointsInFunction); 16699 DebugInfo::kEstimatedNofBreakPointsInFunction);
16700 16700
16701 debug_info->set_break_points(*new_break_points); 16701 debug_info->set_break_points(*new_break_points);
16702 for (int i = 0; i < old_break_points->length(); i++) { 16702 for (int i = 0; i < old_break_points->length(); i++) {
16703 new_break_points->set(i, old_break_points->get(i)); 16703 new_break_points->set(i, old_break_points->get(i));
16704 } 16704 }
16705 index = old_break_points->length(); 16705 index = old_break_points->length();
16706 } 16706 }
16707 ASSERT(index != kNoBreakPointInfo); 16707 ASSERT(index != kNoBreakPointInfo);
16708 16708
16709 // Allocate new BreakPointInfo object and set the break point. 16709 // Allocate new BreakPointInfo object and set the break point.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
17162 #define ERROR_MESSAGES_TEXTS(C, T) T, 17162 #define ERROR_MESSAGES_TEXTS(C, T) T,
17163 static const char* error_messages_[] = { 17163 static const char* error_messages_[] = {
17164 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 17164 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
17165 }; 17165 };
17166 #undef ERROR_MESSAGES_TEXTS 17166 #undef ERROR_MESSAGES_TEXTS
17167 return error_messages_[reason]; 17167 return error_messages_[reason];
17168 } 17168 }
17169 17169
17170 17170
17171 } } // namespace v8::internal 17171 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698