OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 } else { | 822 } else { |
823 ASSERT(L->is_unused()); | 823 ASSERT(L->is_unused()); |
824 int32_t current = pc_offset(); | 824 int32_t current = pc_offset(); |
825 emitl(current); | 825 emitl(current); |
826 L->link_to(current); | 826 L->link_to(current); |
827 } | 827 } |
828 } | 828 } |
829 | 829 |
830 | 830 |
831 void Assembler::call(Handle<Code> target, RelocInfo::Mode rmode) { | 831 void Assembler::call(Handle<Code> target, RelocInfo::Mode rmode) { |
| 832 WriteRecordedPositions(); |
832 EnsureSpace ensure_space(this); | 833 EnsureSpace ensure_space(this); |
833 last_pc_ = pc_; | 834 last_pc_ = pc_; |
834 // 1110 1000 #32-bit disp. | 835 // 1110 1000 #32-bit disp. |
835 emit(0xE8); | 836 emit(0xE8); |
836 emit_code_target(target, rmode); | 837 emit_code_target(target, rmode); |
837 } | 838 } |
838 | 839 |
839 | 840 |
840 void Assembler::call(Register adr) { | 841 void Assembler::call(Register adr) { |
841 EnsureSpace ensure_space(this); | 842 EnsureSpace ensure_space(this); |
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2949 // specially coded on x64 means that it is a relative 32 bit address, as used | 2950 // specially coded on x64 means that it is a relative 32 bit address, as used |
2950 // by branch instructions. | 2951 // by branch instructions. |
2951 return (1 << rmode_) & kApplyMask; | 2952 return (1 << rmode_) & kApplyMask; |
2952 } | 2953 } |
2953 | 2954 |
2954 | 2955 |
2955 | 2956 |
2956 } } // namespace v8::internal | 2957 } } // namespace v8::internal |
2957 | 2958 |
2958 #endif // V8_TARGET_ARCH_X64 | 2959 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |