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

Side by Side Diff: src/objects.cc

Issue 298863011: Merge the classes Debug and Debugger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename EnterDebugger Created 6 years, 7 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 16778 matching lines...) Expand 10 before | Expand all | Expand 10 after
16789 break; 16789 break;
16790 } 16790 }
16791 } 16791 }
16792 if (index == kNoBreakPointInfo) { 16792 if (index == kNoBreakPointInfo) {
16793 // No free slot - extend break point info array. 16793 // No free slot - extend break point info array.
16794 Handle<FixedArray> old_break_points = 16794 Handle<FixedArray> old_break_points =
16795 Handle<FixedArray>(FixedArray::cast(debug_info->break_points())); 16795 Handle<FixedArray>(FixedArray::cast(debug_info->break_points()));
16796 Handle<FixedArray> new_break_points = 16796 Handle<FixedArray> new_break_points =
16797 isolate->factory()->NewFixedArray( 16797 isolate->factory()->NewFixedArray(
16798 old_break_points->length() + 16798 old_break_points->length() +
16799 Debug::kEstimatedNofBreakPointsInFunction); 16799 DebugInfo::kEstimatedNofBreakPointsInFunction);
16800 16800
16801 debug_info->set_break_points(*new_break_points); 16801 debug_info->set_break_points(*new_break_points);
16802 for (int i = 0; i < old_break_points->length(); i++) { 16802 for (int i = 0; i < old_break_points->length(); i++) {
16803 new_break_points->set(i, old_break_points->get(i)); 16803 new_break_points->set(i, old_break_points->get(i));
16804 } 16804 }
16805 index = old_break_points->length(); 16805 index = old_break_points->length();
16806 } 16806 }
16807 ASSERT(index != kNoBreakPointInfo); 16807 ASSERT(index != kNoBreakPointInfo);
16808 16808
16809 // Allocate new BreakPointInfo object and set the break point. 16809 // Allocate new BreakPointInfo object and set the break point.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
17262 #define ERROR_MESSAGES_TEXTS(C, T) T, 17262 #define ERROR_MESSAGES_TEXTS(C, T) T,
17263 static const char* error_messages_[] = { 17263 static const char* error_messages_[] = {
17264 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 17264 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
17265 }; 17265 };
17266 #undef ERROR_MESSAGES_TEXTS 17266 #undef ERROR_MESSAGES_TEXTS
17267 return error_messages_[reason]; 17267 return error_messages_[reason];
17268 } 17268 }
17269 17269
17270 17270
17271 } } // namespace v8::internal 17271 } } // 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