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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 BreakLocation::DebugBreakType | 226 BreakLocation::DebugBreakType |
227 BreakLocation::BytecodeArrayIterator::GetDebugBreakType() { | 227 BreakLocation::BytecodeArrayIterator::GetDebugBreakType() { |
228 BytecodeArray* bytecode_array = debug_info_->original_bytecode_array(); | 228 BytecodeArray* bytecode_array = debug_info_->original_bytecode_array(); |
229 interpreter::Bytecode bytecode = | 229 interpreter::Bytecode bytecode = |
230 interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset())); | 230 interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset())); |
231 | 231 |
232 if (bytecode == interpreter::Bytecode::kDebugger) { | 232 if (bytecode == interpreter::Bytecode::kDebugger) { |
233 return DEBUGGER_STATEMENT; | 233 return DEBUGGER_STATEMENT; |
234 } else if (bytecode == interpreter::Bytecode::kReturn) { | 234 } else if (bytecode == interpreter::Bytecode::kReturn) { |
235 return DEBUG_BREAK_SLOT_AT_RETURN; | 235 return DEBUG_BREAK_SLOT_AT_RETURN; |
236 } else if (bytecode == interpreter::Bytecode::kTailCall) { | 236 } else if (interpreter::Bytecodes::IsTailCall(bytecode)) { |
237 return isolate()->is_tail_call_elimination_enabled() | 237 return isolate()->is_tail_call_elimination_enabled() |
238 ? DEBUG_BREAK_SLOT_AT_TAIL_CALL | 238 ? DEBUG_BREAK_SLOT_AT_TAIL_CALL |
239 : DEBUG_BREAK_SLOT_AT_CALL; | 239 : DEBUG_BREAK_SLOT_AT_CALL; |
240 } else if (interpreter::Bytecodes::IsCallOrNew(bytecode)) { | 240 } else if (interpreter::Bytecodes::IsCallOrNew(bytecode)) { |
241 return DEBUG_BREAK_SLOT_AT_CALL; | 241 return DEBUG_BREAK_SLOT_AT_CALL; |
242 } else if (source_position_iterator_.is_statement()) { | 242 } else if (source_position_iterator_.is_statement()) { |
243 return DEBUG_BREAK_SLOT; | 243 return DEBUG_BREAK_SLOT; |
244 } else { | 244 } else { |
245 return NOT_DEBUG_BREAK; | 245 return NOT_DEBUG_BREAK; |
246 } | 246 } |
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2592 } | 2592 } |
2593 | 2593 |
2594 | 2594 |
2595 void LockingCommandMessageQueue::Clear() { | 2595 void LockingCommandMessageQueue::Clear() { |
2596 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2596 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
2597 queue_.Clear(); | 2597 queue_.Clear(); |
2598 } | 2598 } |
2599 | 2599 |
2600 } // namespace internal | 2600 } // namespace internal |
2601 } // namespace v8 | 2601 } // namespace v8 |
OLD | NEW |