| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 | 1254 |
| 1255 void Assembler::fcos() { | 1255 void Assembler::fcos() { |
| 1256 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 1256 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1257 EmitUint8(0xD9); | 1257 EmitUint8(0xD9); |
| 1258 EmitUint8(0xFF); | 1258 EmitUint8(0xFF); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 | 1261 |
| 1262 void Assembler::fsincos() { |
| 1263 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1264 EmitUint8(0xD9); |
| 1265 EmitUint8(0xFB); |
| 1266 } |
| 1267 |
| 1268 |
| 1262 void Assembler::fptan() { | 1269 void Assembler::fptan() { |
| 1263 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 1270 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1264 EmitUint8(0xD9); | 1271 EmitUint8(0xD9); |
| 1265 EmitUint8(0xF2); | 1272 EmitUint8(0xF2); |
| 1266 } | 1273 } |
| 1267 | 1274 |
| 1268 | 1275 |
| 1269 void Assembler::xchgl(Register dst, Register src) { | 1276 void Assembler::xchgl(Register dst, Register src) { |
| 1270 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 1277 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1271 EmitUint8(0x87); | 1278 EmitUint8(0x87); |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 | 2523 |
| 2517 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2524 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2518 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2525 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2519 return xmm_reg_names[reg]; | 2526 return xmm_reg_names[reg]; |
| 2520 } | 2527 } |
| 2521 | 2528 |
| 2522 | 2529 |
| 2523 } // namespace dart | 2530 } // namespace dart |
| 2524 | 2531 |
| 2525 #endif // defined TARGET_ARCH_IA32 | 2532 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |