| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 | 739 |
| 740 if (info()->ShouldTrapOnDeopt()) { | 740 if (info()->ShouldTrapOnDeopt()) { |
| 741 Label done; | 741 Label done; |
| 742 if (cc != no_condition) { | 742 if (cc != no_condition) { |
| 743 __ j(NegateCondition(cc), &done, Label::kNear); | 743 __ j(NegateCondition(cc), &done, Label::kNear); |
| 744 } | 744 } |
| 745 __ int3(); | 745 __ int3(); |
| 746 __ bind(&done); | 746 __ bind(&done); |
| 747 } | 747 } |
| 748 | 748 |
| 749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
| 750 | 750 |
| 751 DCHECK(info()->IsStub() || frame_is_built_); | 751 DCHECK(info()->IsStub() || frame_is_built_); |
| 752 // Go through jump table if we need to handle condition, build frame, or | 752 // Go through jump table if we need to handle condition, build frame, or |
| 753 // restore caller doubles. | 753 // restore caller doubles. |
| 754 if (cc == no_condition && frame_is_built_ && | 754 if (cc == no_condition && frame_is_built_ && |
| 755 !info()->saves_caller_doubles()) { | 755 !info()->saves_caller_doubles()) { |
| 756 DeoptComment(deopt_info); | 756 DeoptComment(deopt_info); |
| 757 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 757 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
| 758 } else { | 758 } else { |
| 759 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 759 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| (...skipping 4873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5633 __ bind(deferred->exit()); | 5633 __ bind(deferred->exit()); |
| 5634 __ bind(&done); | 5634 __ bind(&done); |
| 5635 } | 5635 } |
| 5636 | 5636 |
| 5637 #undef __ | 5637 #undef __ |
| 5638 | 5638 |
| 5639 } // namespace internal | 5639 } // namespace internal |
| 5640 } // namespace v8 | 5640 } // namespace v8 |
| 5641 | 5641 |
| 5642 #endif // V8_TARGET_ARCH_X64 | 5642 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |