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

Side by Side Diff: src/arm/disasm-arm.cc

Issue 15085026: ARM: Smi refactoring and improvements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 } 1095 }
1096 return Instruction::kInstrSize; 1096 return Instruction::kInstrSize;
1097 } 1097 }
1098 1098
1099 1099
1100 // void Decoder::DecodeTypeVFP(Instruction* instr) 1100 // void Decoder::DecodeTypeVFP(Instruction* instr)
1101 // vmov: Sn = Rt 1101 // vmov: Sn = Rt
1102 // vmov: Rt = Sn 1102 // vmov: Rt = Sn
1103 // vcvt: Dd = Sm 1103 // vcvt: Dd = Sm
1104 // vcvt: Sd = Dm 1104 // vcvt: Sd = Dm
1105 // vcvt.f64.s32 Dd, Dd, #<fbits>
1105 // Dd = vabs(Dm) 1106 // Dd = vabs(Dm)
1106 // Dd = vneg(Dm) 1107 // Dd = vneg(Dm)
1107 // Dd = vadd(Dn, Dm) 1108 // Dd = vadd(Dn, Dm)
1108 // Dd = vsub(Dn, Dm) 1109 // Dd = vsub(Dn, Dm)
1109 // Dd = vmul(Dn, Dm) 1110 // Dd = vmul(Dn, Dm)
1110 // Dd = vmla(Dn, Dm) 1111 // Dd = vmla(Dn, Dm)
1111 // Dd = vmls(Dn, Dm) 1112 // Dd = vmls(Dn, Dm)
1112 // Dd = vdiv(Dn, Dm) 1113 // Dd = vdiv(Dn, Dm)
1113 // vcmp(Dd, Dm) 1114 // vcmp(Dd, Dm)
1114 // vmrs 1115 // vmrs
(...skipping 16 matching lines...) Expand all
1131 } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) { 1132 } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) {
1132 // vabs 1133 // vabs
1133 Format(instr, "vabs'cond.f64 'Dd, 'Dm"); 1134 Format(instr, "vabs'cond.f64 'Dd, 'Dm");
1134 } else if ((instr->Opc2Value() == 0x1) && (instr->Opc3Value() == 0x1)) { 1135 } else if ((instr->Opc2Value() == 0x1) && (instr->Opc3Value() == 0x1)) {
1135 // vneg 1136 // vneg
1136 Format(instr, "vneg'cond.f64 'Dd, 'Dm"); 1137 Format(instr, "vneg'cond.f64 'Dd, 'Dm");
1137 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) { 1138 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) {
1138 DecodeVCVTBetweenDoubleAndSingle(instr); 1139 DecodeVCVTBetweenDoubleAndSingle(instr);
1139 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) { 1140 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) {
1140 DecodeVCVTBetweenFloatingPointAndInteger(instr); 1141 DecodeVCVTBetweenFloatingPointAndInteger(instr);
1142 } else if ((instr->Opc2Value() == 0xA) && (instr->Opc3Value() == 0x3) &&
1143 (instr->Bit(8) == 1)) {
1144 // vcvt.f64.s32 Dd, Dd, #<fbits>
1145 int fraction_bits = 32 - ((instr->Bit(5) << 4) | instr->Bits(3, 0));
1146 Format(instr, "vcvt'cond.f64.s32 'Dd, 'Dd");
1147 out_buffer_pos_ += OS::SNPrintF(out_buffer_ + out_buffer_pos_,
1148 ", #%d", fraction_bits);
1141 } else if (((instr->Opc2Value() >> 1) == 0x6) && 1149 } else if (((instr->Opc2Value() >> 1) == 0x6) &&
1142 (instr->Opc3Value() & 0x1)) { 1150 (instr->Opc3Value() & 0x1)) {
1143 DecodeVCVTBetweenFloatingPointAndInteger(instr); 1151 DecodeVCVTBetweenFloatingPointAndInteger(instr);
1144 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) && 1152 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) &&
1145 (instr->Opc3Value() & 0x1)) { 1153 (instr->Opc3Value() & 0x1)) {
1146 DecodeVCMP(instr); 1154 DecodeVCMP(instr);
1147 } else if (((instr->Opc2Value() == 0x1)) && (instr->Opc3Value() == 0x3)) { 1155 } else if (((instr->Opc2Value() == 0x1)) && (instr->Opc3Value() == 0x3)) {
1148 Format(instr, "vsqrt'cond.f64 'Dd, 'Dm"); 1156 Format(instr, "vsqrt'cond.f64 'Dd, 'Dm");
1149 } else if (instr->Opc3Value() == 0x0) { 1157 } else if (instr->Opc3Value() == 0x0) {
1150 if (instr->SzValue() == 0x1) { 1158 if (instr->SzValue() == 0x1) {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 v8::internal::PrintF( 1572 v8::internal::PrintF(
1565 f, "%p %08x %s\n", 1573 f, "%p %08x %s\n",
1566 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1574 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1567 } 1575 }
1568 } 1576 }
1569 1577
1570 1578
1571 } // namespace disasm 1579 } // namespace disasm
1572 1580
1573 #endif // V8_TARGET_ARCH_ARM 1581 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/debug-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | src/arm/macro-assembler-arm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698