OLD | NEW |
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 Loading... |
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_(debug_info->abstract_code() | 173 source_position_iterator_( |
174 ->GetBytecodeArray() | 174 debug_info->abstract_code()->GetBytecodeArray()), |
175 ->source_position_table()), | |
176 break_locator_type_(type), | 175 break_locator_type_(type), |
177 start_position_(debug_info->shared()->start_position()) { | 176 start_position_(debug_info->shared()->start_position()) { |
178 if (!Done()) Next(); | 177 if (!Done()) Next(); |
179 } | 178 } |
180 | 179 |
181 void BreakLocation::BytecodeArrayIterator::Next() { | 180 void BreakLocation::BytecodeArrayIterator::Next() { |
182 DisallowHeapAllocation no_gc; | 181 DisallowHeapAllocation no_gc; |
183 DCHECK(!Done()); | 182 DCHECK(!Done()); |
184 bool first = break_index_ == -1; | 183 bool first = break_index_ == -1; |
185 while (!Done()) { | 184 while (!Done()) { |
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 } | 2569 } |
2571 | 2570 |
2572 | 2571 |
2573 void LockingCommandMessageQueue::Clear() { | 2572 void LockingCommandMessageQueue::Clear() { |
2574 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2573 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
2575 queue_.Clear(); | 2574 queue_.Clear(); |
2576 } | 2575 } |
2577 | 2576 |
2578 } // namespace internal | 2577 } // namespace internal |
2579 } // namespace v8 | 2578 } // namespace v8 |
OLD | NEW |