| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 } | 708 } |
| 709 | 709 |
| 710 | 710 |
| 711 void Assembler::fincstp() { | 711 void Assembler::fincstp() { |
| 712 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 712 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 713 EmitUint8(0xD9); | 713 EmitUint8(0xD9); |
| 714 EmitUint8(0xF7); | 714 EmitUint8(0xF7); |
| 715 } | 715 } |
| 716 | 716 |
| 717 | 717 |
| 718 void Assembler::ffree(const Immediate& index) { | 718 void Assembler::ffree(intptr_t value) { |
| 719 ASSERT(index.value() < 7); | 719 ASSERT(value < 7); |
| 720 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 720 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 721 EmitUint8(0xDD); | 721 EmitUint8(0xDD); |
| 722 EmitUint8(0xC0 + index.value()); | 722 EmitUint8(0xC0 + value); |
| 723 } | 723 } |
| 724 | 724 |
| 725 | 725 |
| 726 void Assembler::fsin() { | 726 void Assembler::fsin() { |
| 727 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 727 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 728 EmitUint8(0xD9); | 728 EmitUint8(0xD9); |
| 729 EmitUint8(0xFE); | 729 EmitUint8(0xFE); |
| 730 } | 730 } |
| 731 | 731 |
| 732 | 732 |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 Register shifter) { | 1560 Register shifter) { |
| 1561 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 1561 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1562 ASSERT(shifter == ECX); | 1562 ASSERT(shifter == ECX); |
| 1563 EmitUint8(0xD3); | 1563 EmitUint8(0xD3); |
| 1564 EmitOperand(rm, Operand(operand)); | 1564 EmitOperand(rm, Operand(operand)); |
| 1565 } | 1565 } |
| 1566 | 1566 |
| 1567 } // namespace dart | 1567 } // namespace dart |
| 1568 | 1568 |
| 1569 #endif // defined TARGET_ARCH_IA32 | 1569 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |