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

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

Issue 92433002: Merge sin(a), cos(a) into one instruction. TODO: Implement for ARM and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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) 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
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
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
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