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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1572 Object* Debug::SetAfterBreakTarget(JavaScriptFrame* frame) { | 1572 Object* Debug::SetAfterBreakTarget(JavaScriptFrame* frame) { |
1573 if (frame->is_interpreted()) { | 1573 if (frame->is_interpreted()) { |
1574 // Find the handler from the original bytecode array. | 1574 // Find the handler from the original bytecode array. |
1575 InterpretedFrame* interpreted_frame = | 1575 InterpretedFrame* interpreted_frame = |
1576 reinterpret_cast<InterpretedFrame*>(frame); | 1576 reinterpret_cast<InterpretedFrame*>(frame); |
1577 SharedFunctionInfo* shared = interpreted_frame->function()->shared(); | 1577 SharedFunctionInfo* shared = interpreted_frame->function()->shared(); |
1578 BytecodeArray* bytecode_array = shared->bytecode_array(); | 1578 BytecodeArray* bytecode_array = shared->bytecode_array(); |
1579 int bytecode_offset = interpreted_frame->GetBytecodeOffset(); | 1579 int bytecode_offset = interpreted_frame->GetBytecodeOffset(); |
1580 interpreter::Bytecode bytecode = | 1580 interpreter::Bytecode bytecode = |
1581 interpreter::Bytecodes::FromByte(bytecode_array->get(bytecode_offset)); | 1581 interpreter::Bytecodes::FromByte(bytecode_array->get(bytecode_offset)); |
1582 return isolate_->interpreter()->GetBytecodeHandler(bytecode); | 1582 return isolate_->interpreter()->GetBytecodeHandler( |
1583 bytecode, interpreter::OperandScale::kSingle); | |
Yang
2016/03/21 09:36:13
Is the operand scale guaranteed to be single here?
oth
2016/03/21 09:52:14
If the bytecode has a scaling prefix, then the sca
| |
1583 } else { | 1584 } else { |
1584 after_break_target_ = NULL; | 1585 after_break_target_ = NULL; |
1585 if (!LiveEdit::SetAfterBreakTarget(this)) { | 1586 if (!LiveEdit::SetAfterBreakTarget(this)) { |
1586 // Continue just after the slot. | 1587 // Continue just after the slot. |
1587 after_break_target_ = frame->pc(); | 1588 after_break_target_ = frame->pc(); |
1588 } | 1589 } |
1589 return isolate_->heap()->undefined_value(); | 1590 return isolate_->heap()->undefined_value(); |
1590 } | 1591 } |
1591 } | 1592 } |
1592 | 1593 |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2620 } | 2621 } |
2621 | 2622 |
2622 | 2623 |
2623 void LockingCommandMessageQueue::Clear() { | 2624 void LockingCommandMessageQueue::Clear() { |
2624 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2625 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
2625 queue_.Clear(); | 2626 queue_.Clear(); |
2626 } | 2627 } |
2627 | 2628 |
2628 } // namespace internal | 2629 } // namespace internal |
2629 } // namespace v8 | 2630 } // namespace v8 |
OLD | NEW |