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

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

Issue 939113003: - Fix sin-cos merge, add a flag to turn it on/off. Using fsincos is much slower than calling out to… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | « no previous file | runtime/vm/flow_graph_optimizer.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
8 #if defined(TARGET_ARCH_IA32) 8 #if defined(TARGET_ARCH_IA32)
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 switch (b2) { 1017 switch (b2) {
1018 case 0xE0: mnem = "fchs"; break; 1018 case 0xE0: mnem = "fchs"; break;
1019 case 0xE1: mnem = "fabs"; break; 1019 case 0xE1: mnem = "fabs"; break;
1020 case 0xE4: mnem = "ftst"; break; 1020 case 0xE4: mnem = "ftst"; break;
1021 case 0xE8: mnem = "fld1"; break; 1021 case 0xE8: mnem = "fld1"; break;
1022 case 0xEE: mnem = "fldz"; break; 1022 case 0xEE: mnem = "fldz"; break;
1023 case 0xF2: mnem = "fptan"; break; 1023 case 0xF2: mnem = "fptan"; break;
1024 case 0xF5: mnem = "fprem1"; break; 1024 case 0xF5: mnem = "fprem1"; break;
1025 case 0xF8: mnem = "fprem"; break; 1025 case 0xF8: mnem = "fprem"; break;
1026 case 0xF7: mnem = "fincstp"; break; 1026 case 0xF7: mnem = "fincstp"; break;
1027 case 0xFB: mnem = "fsincos"; break;
1027 case 0xFE: mnem = "fsin"; break; 1028 case 0xFE: mnem = "fsin"; break;
1028 case 0xFF: mnem = "fcos"; break; 1029 case 0xFF: mnem = "fcos"; break;
1029 } 1030 }
1030 if (mnem != NULL) { 1031 if (mnem != NULL) {
1031 Print(mnem); 1032 Print(mnem);
1032 return 2; 1033 return 2;
1033 } else if ((b2 & 0xF8) == 0xC8) { 1034 } else if ((b2 & 0xF8) == 0xC8) {
1034 Print("fxch st"); 1035 Print("fxch st");
1035 PrintInt(b2 & 0x7); 1036 PrintInt(b2 & 0x7);
1036 return 2; 1037 return 2;
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 } 1848 }
1848 hex_buffer[hex_index] = '\0'; 1849 hex_buffer[hex_index] = '\0';
1849 if (out_instr_len) { 1850 if (out_instr_len) {
1850 *out_instr_len = instruction_length; 1851 *out_instr_len = instruction_length;
1851 } 1852 }
1852 } 1853 }
1853 1854
1854 } // namespace dart 1855 } // namespace dart
1855 1856
1856 #endif // defined TARGET_ARCH_IA32 1857 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698