| 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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 __ popfd(); | 716 __ popfd(); |
| 717 } | 717 } |
| 718 | 718 |
| 719 if (info()->ShouldTrapOnDeopt()) { | 719 if (info()->ShouldTrapOnDeopt()) { |
| 720 Label done; | 720 Label done; |
| 721 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); | 721 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); |
| 722 __ int3(); | 722 __ int3(); |
| 723 __ bind(&done); | 723 __ bind(&done); |
| 724 } | 724 } |
| 725 | 725 |
| 726 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 726 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
| 727 | 727 |
| 728 DCHECK(info()->IsStub() || frame_is_built_); | 728 DCHECK(info()->IsStub() || frame_is_built_); |
| 729 if (cc == no_condition && frame_is_built_) { | 729 if (cc == no_condition && frame_is_built_) { |
| 730 DeoptComment(deopt_info); | 730 DeoptComment(deopt_info); |
| 731 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 731 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
| 732 } else { | 732 } else { |
| 733 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 733 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| 734 !frame_is_built_); | 734 !frame_is_built_); |
| 735 // We often have several deopts to the same entry, reuse the last | 735 // We often have several deopts to the same entry, reuse the last |
| 736 // jump entry if this is the case. | 736 // jump entry if this is the case. |
| (...skipping 4591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5328 __ bind(deferred->exit()); | 5328 __ bind(deferred->exit()); |
| 5329 __ bind(&done); | 5329 __ bind(&done); |
| 5330 } | 5330 } |
| 5331 | 5331 |
| 5332 #undef __ | 5332 #undef __ |
| 5333 | 5333 |
| 5334 } // namespace internal | 5334 } // namespace internal |
| 5335 } // namespace v8 | 5335 } // namespace v8 |
| 5336 | 5336 |
| 5337 #endif // V8_TARGET_ARCH_IA32 | 5337 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |