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

Unified Diff: runtime/vm/disassembler_ia32.cc

Issue 11098009: Implement SmiToInt and DoubleToInt. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/disassembler_ia32.cc
===================================================================
--- runtime/vm/disassembler_ia32.cc (revision 13429)
+++ runtime/vm/disassembler_ia32.cc (working copy)
@@ -1595,6 +1595,7 @@
const char* mnem = "? 0xF2";
switch (b2) {
case 0x2A: mnem = "cvtsi2sd"; break;
+ case 0x2C: mnem = "cvttsd2si"; break;
case 0x2D: mnem = "cvtsd2i"; break;
case 0x51: mnem = "sqrtsd"; break;
case 0x58: mnem = "addsd"; break;
@@ -1602,6 +1603,7 @@
case 0x5A: mnem = "cvtsd2ss"; break;
case 0x5C: mnem = "subsd"; break;
case 0x5E: mnem = "divsd"; break;
+ default: UNIMPLEMENTED();
}
data += 3;
int mod, regop, rm;
@@ -1612,7 +1614,7 @@
PrintXmmRegister(regop);
Print(",");
data += PrintRightOperand(data);
- } else if (b2 == 0x2D) {
+ } else if ((b2 == 0x2D) || (b2 == 0x2C)) {
Print(mnem);
Print(" ");
PrintCPURegister(regop);
« 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