| 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 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2210 | 2210 |
| 2211 | 2211 |
| 2212 void Assembler::fldpi() { | 2212 void Assembler::fldpi() { |
| 2213 EnsureSpace ensure_space(this); | 2213 EnsureSpace ensure_space(this); |
| 2214 last_pc_ = pc_; | 2214 last_pc_ = pc_; |
| 2215 emit(0xD9); | 2215 emit(0xD9); |
| 2216 emit(0xEB); | 2216 emit(0xEB); |
| 2217 } | 2217 } |
| 2218 | 2218 |
| 2219 | 2219 |
| 2220 void Assembler::fldln2() { |
| 2221 EnsureSpace ensure_space(this); |
| 2222 last_pc_ = pc_; |
| 2223 emit(0xD9); |
| 2224 emit(0xED); |
| 2225 } |
| 2226 |
| 2227 |
| 2220 void Assembler::fld_s(const Operand& adr) { | 2228 void Assembler::fld_s(const Operand& adr) { |
| 2221 EnsureSpace ensure_space(this); | 2229 EnsureSpace ensure_space(this); |
| 2222 last_pc_ = pc_; | 2230 last_pc_ = pc_; |
| 2223 emit_optional_rex_32(adr); | 2231 emit_optional_rex_32(adr); |
| 2224 emit(0xD9); | 2232 emit(0xD9); |
| 2225 emit_operand(0, adr); | 2233 emit_operand(0, adr); |
| 2226 } | 2234 } |
| 2227 | 2235 |
| 2228 | 2236 |
| 2229 void Assembler::fld_d(const Operand& adr) { | 2237 void Assembler::fld_d(const Operand& adr) { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2351 | 2359 |
| 2352 | 2360 |
| 2353 void Assembler::fsin() { | 2361 void Assembler::fsin() { |
| 2354 EnsureSpace ensure_space(this); | 2362 EnsureSpace ensure_space(this); |
| 2355 last_pc_ = pc_; | 2363 last_pc_ = pc_; |
| 2356 emit(0xD9); | 2364 emit(0xD9); |
| 2357 emit(0xFE); | 2365 emit(0xFE); |
| 2358 } | 2366 } |
| 2359 | 2367 |
| 2360 | 2368 |
| 2369 void Assembler::fyl2x() { |
| 2370 EnsureSpace ensure_space(this); |
| 2371 last_pc_ = pc_; |
| 2372 emit(0xD9); |
| 2373 emit(0xF1); |
| 2374 } |
| 2375 |
| 2376 |
| 2361 void Assembler::fadd(int i) { | 2377 void Assembler::fadd(int i) { |
| 2362 EnsureSpace ensure_space(this); | 2378 EnsureSpace ensure_space(this); |
| 2363 last_pc_ = pc_; | 2379 last_pc_ = pc_; |
| 2364 emit_farith(0xDC, 0xC0, i); | 2380 emit_farith(0xDC, 0xC0, i); |
| 2365 } | 2381 } |
| 2366 | 2382 |
| 2367 | 2383 |
| 2368 void Assembler::fsub(int i) { | 2384 void Assembler::fsub(int i) { |
| 2369 EnsureSpace ensure_space(this); | 2385 EnsureSpace ensure_space(this); |
| 2370 last_pc_ = pc_; | 2386 last_pc_ = pc_; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2962 // specially coded on x64 means that it is a relative 32 bit address, as used | 2978 // specially coded on x64 means that it is a relative 32 bit address, as used |
| 2963 // by branch instructions. | 2979 // by branch instructions. |
| 2964 return (1 << rmode_) & kApplyMask; | 2980 return (1 << rmode_) & kApplyMask; |
| 2965 } | 2981 } |
| 2966 | 2982 |
| 2967 | 2983 |
| 2968 | 2984 |
| 2969 } } // namespace v8::internal | 2985 } } // namespace v8::internal |
| 2970 | 2986 |
| 2971 #endif // V8_TARGET_ARCH_X64 | 2987 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |