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

Side by Side Diff: src/debug/debug.cc

Issue 1704943002: Encode interpreter::SourcePositionTable as variable-length ints. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More review feedback. Created 4 years, 9 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
« no previous file with comments | « no previous file | src/heap/heap.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 "src/debug/debug.h" 5 #include "src/debug/debug.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } else { 163 } else {
164 type = NOT_DEBUG_BREAK; 164 type = NOT_DEBUG_BREAK;
165 } 165 }
166 return BreakLocation(debug_info_, type, code_offset(), position(), 166 return BreakLocation(debug_info_, type, code_offset(), position(),
167 statement_position()); 167 statement_position());
168 } 168 }
169 169
170 BreakLocation::BytecodeArrayIterator::BytecodeArrayIterator( 170 BreakLocation::BytecodeArrayIterator::BytecodeArrayIterator(
171 Handle<DebugInfo> debug_info, BreakLocatorType type) 171 Handle<DebugInfo> debug_info, BreakLocatorType type)
172 : Iterator(debug_info), 172 : Iterator(debug_info),
173 source_position_iterator_( 173 source_position_iterator_(debug_info->abstract_code()
174 debug_info->abstract_code()->GetBytecodeArray()), 174 ->GetBytecodeArray()
175 ->source_position_table()),
175 break_locator_type_(type), 176 break_locator_type_(type),
176 start_position_(debug_info->shared()->start_position()) { 177 start_position_(debug_info->shared()->start_position()) {
177 if (!Done()) Next(); 178 if (!Done()) Next();
178 } 179 }
179 180
180 void BreakLocation::BytecodeArrayIterator::Next() { 181 void BreakLocation::BytecodeArrayIterator::Next() {
181 DisallowHeapAllocation no_gc; 182 DisallowHeapAllocation no_gc;
182 DCHECK(!Done()); 183 DCHECK(!Done());
183 bool first = break_index_ == -1; 184 bool first = break_index_ == -1;
184 while (!Done()) { 185 while (!Done()) {
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2569 } 2570 }
2570 2571
2571 2572
2572 void LockingCommandMessageQueue::Clear() { 2573 void LockingCommandMessageQueue::Clear() {
2573 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2574 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2574 queue_.Clear(); 2575 queue_.Clear();
2575 } 2576 }
2576 2577
2577 } // namespace internal 2578 } // namespace internal
2578 } // namespace v8 2579 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698