OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 | 762 |
763 if (info()->ShouldTrapOnDeopt()) { | 763 if (info()->ShouldTrapOnDeopt()) { |
764 Label done; | 764 Label done; |
765 if (cc != no_condition) { | 765 if (cc != no_condition) { |
766 __ j(NegateCondition(cc), &done, Label::kNear); | 766 __ j(NegateCondition(cc), &done, Label::kNear); |
767 } | 767 } |
768 __ int3(); | 768 __ int3(); |
769 __ bind(&done); | 769 __ bind(&done); |
770 } | 770 } |
771 | 771 |
772 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 772 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
773 instr->Mnemonic(), deopt_reason); | 773 instr->Mnemonic(), deopt_reason); |
774 DCHECK(info()->IsStub() || frame_is_built_); | 774 DCHECK(info()->IsStub() || frame_is_built_); |
775 // Go through jump table if we need to handle condition, build frame, or | 775 // Go through jump table if we need to handle condition, build frame, or |
776 // restore caller doubles. | 776 // restore caller doubles. |
777 if (cc == no_condition && frame_is_built_ && | 777 if (cc == no_condition && frame_is_built_ && |
778 !info()->saves_caller_doubles()) { | 778 !info()->saves_caller_doubles()) { |
779 DeoptComment(deopt_info); | 779 DeoptComment(deopt_info); |
780 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 780 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
781 } else { | 781 } else { |
782 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 782 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
(...skipping 5156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5939 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5939 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5940 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5940 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5941 } | 5941 } |
5942 | 5942 |
5943 | 5943 |
5944 #undef __ | 5944 #undef __ |
5945 | 5945 |
5946 } } // namespace v8::internal | 5946 } } // namespace v8::internal |
5947 | 5947 |
5948 #endif // V8_TARGET_ARCH_X64 | 5948 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |