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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 __ bind(&done); | 1007 __ bind(&done); |
1008 } | 1008 } |
1009 | 1009 |
1010 if (info()->ShouldTrapOnDeopt()) { | 1010 if (info()->ShouldTrapOnDeopt()) { |
1011 Label done; | 1011 Label done; |
1012 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); | 1012 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); |
1013 __ int3(); | 1013 __ int3(); |
1014 __ bind(&done); | 1014 __ bind(&done); |
1015 } | 1015 } |
1016 | 1016 |
1017 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 1017 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
1018 | 1018 |
1019 DCHECK(info()->IsStub() || frame_is_built_); | 1019 DCHECK(info()->IsStub() || frame_is_built_); |
1020 if (cc == no_condition && frame_is_built_) { | 1020 if (cc == no_condition && frame_is_built_) { |
1021 DeoptComment(deopt_info); | 1021 DeoptComment(deopt_info); |
1022 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 1022 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
1023 } else { | 1023 } else { |
1024 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 1024 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
1025 !frame_is_built_); | 1025 !frame_is_built_); |
1026 // We often have several deopts to the same entry, reuse the last | 1026 // We often have several deopts to the same entry, reuse the last |
1027 // jump entry if this is the case. | 1027 // jump entry if this is the case. |
(...skipping 4853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5881 __ bind(deferred->exit()); | 5881 __ bind(deferred->exit()); |
5882 __ bind(&done); | 5882 __ bind(&done); |
5883 } | 5883 } |
5884 | 5884 |
5885 #undef __ | 5885 #undef __ |
5886 | 5886 |
5887 } // namespace internal | 5887 } // namespace internal |
5888 } // namespace v8 | 5888 } // namespace v8 |
5889 | 5889 |
5890 #endif // V8_TARGET_ARCH_X87 | 5890 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |