Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: runtime/vm/assembler_ia32.cc

Issue 9909024: Fix trigonometric intrinsics: if allocation fails remember to release the loaded value on FPU stack. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_ia32_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698