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

Side by Side Diff: src/debug.cc

Issue 8971002: Fix GCC 4.7 warnings: (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 1139
1140 PrepareForBreakPoints(); 1140 PrepareForBreakPoints();
1141 1141
1142 if (!EnsureDebugInfo(shared)) { 1142 if (!EnsureDebugInfo(shared)) {
1143 // Return if retrieving debug info failed. 1143 // Return if retrieving debug info failed.
1144 return; 1144 return;
1145 } 1145 }
1146 1146
1147 Handle<DebugInfo> debug_info = GetDebugInfo(shared); 1147 Handle<DebugInfo> debug_info = GetDebugInfo(shared);
1148 // Source positions starts with zero. 1148 // Source positions starts with zero.
1149 ASSERT(source_position >= 0); 1149 ASSERT(*source_position >= 0);
1150 1150
1151 // Find the break point and change it. 1151 // Find the break point and change it.
1152 BreakLocationIterator it(debug_info, SOURCE_BREAK_LOCATIONS); 1152 BreakLocationIterator it(debug_info, SOURCE_BREAK_LOCATIONS);
1153 it.FindBreakLocationFromPosition(*source_position); 1153 it.FindBreakLocationFromPosition(*source_position);
1154 it.SetBreakPoint(break_point_object); 1154 it.SetBreakPoint(break_point_object);
1155 1155
1156 *source_position = it.position(); 1156 *source_position = it.position();
1157 1157
1158 // At least one active break point now. 1158 // At least one active break point now.
1159 ASSERT(debug_info->GetBreakPointCount() > 0); 1159 ASSERT(debug_info->GetBreakPointCount() > 0);
(...skipping 2330 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 { 3490 {
3491 Locker locker; 3491 Locker locker;
3492 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3492 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3493 } 3493 }
3494 } 3494 }
3495 } 3495 }
3496 3496
3497 #endif // ENABLE_DEBUGGER_SUPPORT 3497 #endif // ENABLE_DEBUGGER_SUPPORT
3498 3498
3499 } } // namespace v8::internal 3499 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698