OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 emitl(static_cast<int32_t>(displacement)); | 937 emitl(static_cast<int32_t>(displacement)); |
938 } | 938 } |
939 | 939 |
940 | 940 |
941 void Assembler::clc() { | 941 void Assembler::clc() { |
942 EnsureSpace ensure_space(this); | 942 EnsureSpace ensure_space(this); |
943 last_pc_ = pc_; | 943 last_pc_ = pc_; |
944 emit(0xF8); | 944 emit(0xF8); |
945 } | 945 } |
946 | 946 |
| 947 void Assembler::cld() { |
| 948 EnsureSpace ensure_space(this); |
| 949 last_pc_ = pc_; |
| 950 emit(0xFC); |
| 951 } |
| 952 |
947 void Assembler::cdq() { | 953 void Assembler::cdq() { |
948 EnsureSpace ensure_space(this); | 954 EnsureSpace ensure_space(this); |
949 last_pc_ = pc_; | 955 last_pc_ = pc_; |
950 emit(0x99); | 956 emit(0x99); |
951 } | 957 } |
952 | 958 |
953 | 959 |
954 void Assembler::cmovq(Condition cc, Register dst, Register src) { | 960 void Assembler::cmovq(Condition cc, Register dst, Register src) { |
955 if (cc == always) { | 961 if (cc == always) { |
956 movq(dst, src); | 962 movq(dst, src); |
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3158 // specially coded on x64 means that it is a relative 32 bit address, as used | 3164 // specially coded on x64 means that it is a relative 32 bit address, as used |
3159 // by branch instructions. | 3165 // by branch instructions. |
3160 return (1 << rmode_) & kApplyMask; | 3166 return (1 << rmode_) & kApplyMask; |
3161 } | 3167 } |
3162 | 3168 |
3163 | 3169 |
3164 | 3170 |
3165 } } // namespace v8::internal | 3171 } } // namespace v8::internal |
3166 | 3172 |
3167 #endif // V8_TARGET_ARCH_X64 | 3173 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |