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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 105313008: Delete unused TypeInfo class (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: xmas present for Sven 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 | « src/ic.cc ('k') | src/property-details.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 1221
1222 if (bd == PROTECT) { 1222 if (bd == PROTECT) {
1223 nop(); 1223 nop();
1224 } 1224 }
1225 } 1225 }
1226 1226
1227 1227
1228 void MacroAssembler::Move(FPURegister dst, double imm) { 1228 void MacroAssembler::Move(FPURegister dst, double imm) {
1229 static const DoubleRepresentation minus_zero(-0.0); 1229 static const DoubleRepresentation minus_zero(-0.0);
1230 static const DoubleRepresentation zero(0.0); 1230 static const DoubleRepresentation zero(0.0);
1231 DoubleRepresentation value(imm); 1231 DoubleRepresentation value_rep(imm);
1232 // Handle special values first. 1232 // Handle special values first.
1233 bool force_load = dst.is(kDoubleRegZero); 1233 bool force_load = dst.is(kDoubleRegZero);
1234 if (value.bits == zero.bits && !force_load) { 1234 if (value_rep == zero && !force_load) {
1235 mov_d(dst, kDoubleRegZero); 1235 mov_d(dst, kDoubleRegZero);
1236 } else if (value.bits == minus_zero.bits && !force_load) { 1236 } else if (value_rep == minus_zero && !force_load) {
1237 neg_d(dst, kDoubleRegZero); 1237 neg_d(dst, kDoubleRegZero);
1238 } else { 1238 } else {
1239 uint32_t lo, hi; 1239 uint32_t lo, hi;
1240 DoubleAsTwoUInt32(imm, &lo, &hi); 1240 DoubleAsTwoUInt32(imm, &lo, &hi);
1241 // Move the low part of the double into the lower of the corresponding FPU 1241 // Move the low part of the double into the lower of the corresponding FPU
1242 // register of FPU register pair. 1242 // register of FPU register pair.
1243 if (lo != 0) { 1243 if (lo != 0) {
1244 li(at, Operand(lo)); 1244 li(at, Operand(lo));
1245 mtc1(at, dst); 1245 mtc1(at, dst);
1246 } else { 1246 } else {
(...skipping 4538 matching lines...) Expand 10 before | Expand all | Expand 10 after
5785 opcode == BGTZL); 5785 opcode == BGTZL);
5786 opcode = (cond == eq) ? BEQ : BNE; 5786 opcode = (cond == eq) ? BEQ : BNE;
5787 instr = (instr & ~kOpcodeMask) | opcode; 5787 instr = (instr & ~kOpcodeMask) | opcode;
5788 masm_.emit(instr); 5788 masm_.emit(instr);
5789 } 5789 }
5790 5790
5791 5791
5792 } } // namespace v8::internal 5792 } } // namespace v8::internal
5793 5793
5794 #endif // V8_TARGET_ARCH_MIPS 5794 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698