| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 __ popfd(); | 855 __ popfd(); |
| 856 } | 856 } |
| 857 | 857 |
| 858 if (info()->ShouldTrapOnDeopt()) { | 858 if (info()->ShouldTrapOnDeopt()) { |
| 859 Label done; | 859 Label done; |
| 860 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); | 860 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); |
| 861 __ int3(); | 861 __ int3(); |
| 862 __ bind(&done); | 862 __ bind(&done); |
| 863 } | 863 } |
| 864 | 864 |
| 865 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), | 865 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); |
| 866 instr->Mnemonic(), deopt_reason); | 866 |
| 867 DCHECK(info()->IsStub() || frame_is_built_); | 867 DCHECK(info()->IsStub() || frame_is_built_); |
| 868 if (cc == no_condition && frame_is_built_) { | 868 if (cc == no_condition && frame_is_built_) { |
| 869 DeoptComment(deopt_info); | 869 DeoptComment(deopt_info); |
| 870 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 870 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
| 871 } else { | 871 } else { |
| 872 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 872 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| 873 !frame_is_built_); | 873 !frame_is_built_); |
| 874 // We often have several deopts to the same entry, reuse the last | 874 // We often have several deopts to the same entry, reuse the last |
| 875 // jump entry if this is the case. | 875 // jump entry if this is the case. |
| 876 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || | 876 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || |
| (...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5781 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5781 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5782 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5782 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5783 } | 5783 } |
| 5784 | 5784 |
| 5785 | 5785 |
| 5786 #undef __ | 5786 #undef __ |
| 5787 | 5787 |
| 5788 } } // namespace v8::internal | 5788 } } // namespace v8::internal |
| 5789 | 5789 |
| 5790 #endif // V8_TARGET_ARCH_IA32 | 5790 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |