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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 // restore caller doubles. | 775 // restore caller doubles. |
776 if (cc == no_condition && frame_is_built_ && | 776 if (cc == no_condition && frame_is_built_ && |
777 !info()->saves_caller_doubles()) { | 777 !info()->saves_caller_doubles()) { |
778 DeoptComment(deopt_info); | 778 DeoptComment(deopt_info); |
779 __ call(entry, RelocInfo::RUNTIME_ENTRY); | 779 __ call(entry, RelocInfo::RUNTIME_ENTRY); |
780 } else { | 780 } else { |
781 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 781 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
782 !frame_is_built_); | 782 !frame_is_built_); |
783 // We often have several deopts to the same entry, reuse the last | 783 // We often have several deopts to the same entry, reuse the last |
784 // jump entry if this is the case. | 784 // jump entry if this is the case. |
785 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || | 785 if (jump_table_.is_empty() || |
786 jump_table_.is_empty() || | |
787 !table_entry.IsEquivalentTo(jump_table_.last())) { | 786 !table_entry.IsEquivalentTo(jump_table_.last())) { |
788 jump_table_.Add(table_entry, zone()); | 787 jump_table_.Add(table_entry, zone()); |
789 } | 788 } |
790 if (cc == no_condition) { | 789 if (cc == no_condition) { |
791 __ jmp(&jump_table_.last().label); | 790 __ jmp(&jump_table_.last().label); |
792 } else { | 791 } else { |
793 __ j(cc, &jump_table_.last().label); | 792 __ j(cc, &jump_table_.last().label); |
794 } | 793 } |
795 } | 794 } |
796 } | 795 } |
(...skipping 5134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5931 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5930 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5932 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5931 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5933 } | 5932 } |
5934 | 5933 |
5935 | 5934 |
5936 #undef __ | 5935 #undef __ |
5937 | 5936 |
5938 } } // namespace v8::internal | 5937 } } // namespace v8::internal |
5939 | 5938 |
5940 #endif // V8_TARGET_ARCH_X64 | 5939 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |