| 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/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
| 10 | 10 |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 875 |
| 876 | 876 |
| 877 void Assembler::call(Address entry, RelocInfo::Mode rmode) { | 877 void Assembler::call(Address entry, RelocInfo::Mode rmode) { |
| 878 DCHECK(RelocInfo::IsRuntimeEntry(rmode)); | 878 DCHECK(RelocInfo::IsRuntimeEntry(rmode)); |
| 879 EnsureSpace ensure_space(this); | 879 EnsureSpace ensure_space(this); |
| 880 // 1110 1000 #32-bit disp. | 880 // 1110 1000 #32-bit disp. |
| 881 emit(0xE8); | 881 emit(0xE8); |
| 882 emit_runtime_entry(entry, rmode); | 882 emit_runtime_entry(entry, rmode); |
| 883 } | 883 } |
| 884 | 884 |
| 885 | 885 void Assembler::call(Handle<Code> target, RelocInfo::Mode rmode) { |
| 886 void Assembler::call(Handle<Code> target, | |
| 887 RelocInfo::Mode rmode, | |
| 888 TypeFeedbackId ast_id) { | |
| 889 EnsureSpace ensure_space(this); | 886 EnsureSpace ensure_space(this); |
| 890 // 1110 1000 #32-bit disp. | 887 // 1110 1000 #32-bit disp. |
| 891 emit(0xE8); | 888 emit(0xE8); |
| 892 emit_code_target(target, rmode, ast_id); | 889 emit_code_target(target, rmode); |
| 893 } | 890 } |
| 894 | 891 |
| 895 | 892 |
| 896 void Assembler::call(Register adr) { | 893 void Assembler::call(Register adr) { |
| 897 EnsureSpace ensure_space(this); | 894 EnsureSpace ensure_space(this); |
| 898 // Opcode: FF /2 r64. | 895 // Opcode: FF /2 r64. |
| 899 emit_optional_rex_32(adr); | 896 emit_optional_rex_32(adr); |
| 900 emit(0xFF); | 897 emit(0xFF); |
| 901 emit_modrm(0x2, adr); | 898 emit_modrm(0x2, adr); |
| 902 } | 899 } |
| (...skipping 3892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4795 | 4792 |
| 4796 bool RelocInfo::IsInConstantPool() { | 4793 bool RelocInfo::IsInConstantPool() { |
| 4797 return false; | 4794 return false; |
| 4798 } | 4795 } |
| 4799 | 4796 |
| 4800 | 4797 |
| 4801 } // namespace internal | 4798 } // namespace internal |
| 4802 } // namespace v8 | 4799 } // namespace v8 |
| 4803 | 4800 |
| 4804 #endif // V8_TARGET_ARCH_X64 | 4801 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |