OLD | NEW |
---|---|
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/interpreter-assembler.h" | 5 #include "src/interpreter/interpreter-assembler.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
613 } | 613 } |
614 | 614 |
615 Node* InterpreterAssembler::StackCheckTriggeredInterrupt() { | 615 Node* InterpreterAssembler::StackCheckTriggeredInterrupt() { |
616 Node* sp = LoadStackPointer(); | 616 Node* sp = LoadStackPointer(); |
617 Node* stack_limit = Load( | 617 Node* stack_limit = Load( |
618 MachineType::Pointer(), | 618 MachineType::Pointer(), |
619 ExternalConstant(ExternalReference::address_of_stack_limit(isolate()))); | 619 ExternalConstant(ExternalReference::address_of_stack_limit(isolate()))); |
620 return UintPtrLessThan(sp, stack_limit); | 620 return UintPtrLessThan(sp, stack_limit); |
621 } | 621 } |
622 | 622 |
623 Node* InterpreterAssembler::DebuggerIsActive() { | |
624 return Load( | |
625 MachineType::Pointer(), | |
Benedikt Meurer
2016/06/14 03:45:36
This doesn't look quite right here. The is_active_
rmcilroy
2016/06/14 06:23:11
Yes, it's implementation defined. It's probably al
Yang
2016/06/14 09:17:02
I changed this. We now don't load is_active_ anymo
| |
626 ExternalConstant(ExternalReference::debug_is_active_address(isolate()))); | |
627 } | |
628 | |
623 void InterpreterAssembler::Abort(BailoutReason bailout_reason) { | 629 void InterpreterAssembler::Abort(BailoutReason bailout_reason) { |
624 disable_stack_check_across_call_ = true; | 630 disable_stack_check_across_call_ = true; |
625 Node* abort_id = SmiTag(Int32Constant(bailout_reason)); | 631 Node* abort_id = SmiTag(Int32Constant(bailout_reason)); |
626 CallRuntime(Runtime::kAbort, GetContext(), abort_id); | 632 CallRuntime(Runtime::kAbort, GetContext(), abort_id); |
627 disable_stack_check_across_call_ = false; | 633 disable_stack_check_across_call_ = false; |
628 } | 634 } |
629 | 635 |
630 void InterpreterAssembler::AbortIfWordNotEqual(Node* lhs, Node* rhs, | 636 void InterpreterAssembler::AbortIfWordNotEqual(Node* lhs, Node* rhs, |
631 BailoutReason bailout_reason) { | 637 BailoutReason bailout_reason) { |
632 Label ok(this), abort(this, Label::kDeferred); | 638 Label ok(this), abort(this, Label::kDeferred); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
761 Goto(&loop); | 767 Goto(&loop); |
762 } | 768 } |
763 Bind(&done_loop); | 769 Bind(&done_loop); |
764 | 770 |
765 return array; | 771 return array; |
766 } | 772 } |
767 | 773 |
768 } // namespace interpreter | 774 } // namespace interpreter |
769 } // namespace internal | 775 } // namespace internal |
770 } // namespace v8 | 776 } // namespace v8 |
OLD | NEW |