OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 ASSERT(L->is_unused()); | 871 ASSERT(L->is_unused()); |
872 int32_t current = pc_offset(); | 872 int32_t current = pc_offset(); |
873 emitl(current); | 873 emitl(current); |
874 L->link_to(current); | 874 L->link_to(current); |
875 } | 875 } |
876 } | 876 } |
877 | 877 |
878 | 878 |
879 void Assembler::call(Handle<Code> target, | 879 void Assembler::call(Handle<Code> target, |
880 RelocInfo::Mode rmode, | 880 RelocInfo::Mode rmode, |
881 unsigned ast_id) { | 881 TypeFeedbackId ast_id) { |
882 positions_recorder()->WriteRecordedPositions(); | 882 positions_recorder()->WriteRecordedPositions(); |
883 EnsureSpace ensure_space(this); | 883 EnsureSpace ensure_space(this); |
884 // 1110 1000 #32-bit disp. | 884 // 1110 1000 #32-bit disp. |
885 emit(0xE8); | 885 emit(0xE8); |
886 emit_code_target(target, rmode, ast_id); | 886 emit_code_target(target, rmode, ast_id); |
887 } | 887 } |
888 | 888 |
889 | 889 |
890 void Assembler::call(Register adr) { | 890 void Assembler::call(Register adr) { |
891 positions_recorder()->WriteRecordedPositions(); | 891 positions_recorder()->WriteRecordedPositions(); |
(...skipping 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3053 bool RelocInfo::IsCodedSpecially() { | 3053 bool RelocInfo::IsCodedSpecially() { |
3054 // The deserializer needs to know whether a pointer is specially coded. Being | 3054 // The deserializer needs to know whether a pointer is specially coded. Being |
3055 // specially coded on x64 means that it is a relative 32 bit address, as used | 3055 // specially coded on x64 means that it is a relative 32 bit address, as used |
3056 // by branch instructions. | 3056 // by branch instructions. |
3057 return (1 << rmode_) & kApplyMask; | 3057 return (1 << rmode_) & kApplyMask; |
3058 } | 3058 } |
3059 | 3059 |
3060 } } // namespace v8::internal | 3060 } } // namespace v8::internal |
3061 | 3061 |
3062 #endif // V8_TARGET_ARCH_X64 | 3062 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |