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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 104203003: Remove unused trigonometric code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment 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/ia32/lithium-ia32.h ('k') | src/mips/code-stubs-mips.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 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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1265 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1266 } 1266 }
1267 1267
1268 1268
1269 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1269 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1270 switch (instr->op()) { 1270 switch (instr->op()) {
1271 case kMathFloor: return DoMathFloor(instr); 1271 case kMathFloor: return DoMathFloor(instr);
1272 case kMathRound: return DoMathRound(instr); 1272 case kMathRound: return DoMathRound(instr);
1273 case kMathAbs: return DoMathAbs(instr); 1273 case kMathAbs: return DoMathAbs(instr);
1274 case kMathLog: return DoMathLog(instr); 1274 case kMathLog: return DoMathLog(instr);
1275 case kMathSin: return DoMathSin(instr);
1276 case kMathCos: return DoMathCos(instr);
1277 case kMathTan: return DoMathTan(instr);
1278 case kMathExp: return DoMathExp(instr); 1275 case kMathExp: return DoMathExp(instr);
1279 case kMathSqrt: return DoMathSqrt(instr); 1276 case kMathSqrt: return DoMathSqrt(instr);
1280 case kMathPowHalf: return DoMathPowHalf(instr); 1277 case kMathPowHalf: return DoMathPowHalf(instr);
1281 default: 1278 default:
1282 UNREACHABLE(); 1279 UNREACHABLE();
1283 return NULL; 1280 return NULL;
1284 } 1281 }
1285 } 1282 }
1286 1283
1287 1284
(...skipping 22 matching lines...) Expand all
1310 1307
1311 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { 1308 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) {
1312 ASSERT(instr->representation().IsDouble()); 1309 ASSERT(instr->representation().IsDouble());
1313 ASSERT(instr->value()->representation().IsDouble()); 1310 ASSERT(instr->value()->representation().IsDouble());
1314 LOperand* input = UseRegisterAtStart(instr->value()); 1311 LOperand* input = UseRegisterAtStart(instr->value());
1315 LMathLog* result = new(zone()) LMathLog(input); 1312 LMathLog* result = new(zone()) LMathLog(input);
1316 return DefineSameAsFirst(result); 1313 return DefineSameAsFirst(result);
1317 } 1314 }
1318 1315
1319 1316
1320 LInstruction* LChunkBuilder::DoMathSin(HUnaryMathOperation* instr) {
1321 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1322 LMathSin* result = new(zone()) LMathSin(input);
1323 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1324 }
1325
1326
1327 LInstruction* LChunkBuilder::DoMathCos(HUnaryMathOperation* instr) {
1328 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1329 LMathCos* result = new(zone()) LMathCos(input);
1330 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1331 }
1332
1333
1334 LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) {
1335 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1336 LMathTan* result = new(zone()) LMathTan(input);
1337 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1338 }
1339
1340
1341 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1317 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1342 ASSERT(instr->representation().IsDouble()); 1318 ASSERT(instr->representation().IsDouble());
1343 ASSERT(instr->value()->representation().IsDouble()); 1319 ASSERT(instr->value()->representation().IsDouble());
1344 LOperand* value = UseTempRegister(instr->value()); 1320 LOperand* value = UseTempRegister(instr->value());
1345 LOperand* temp1 = TempRegister(); 1321 LOperand* temp1 = TempRegister();
1346 LOperand* temp2 = TempRegister(); 1322 LOperand* temp2 = TempRegister();
1347 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); 1323 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2);
1348 return DefineAsRegister(result); 1324 return DefineAsRegister(result);
1349 } 1325 }
1350 1326
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2790 LOperand* object = UseRegister(instr->object()); 2766 LOperand* object = UseRegister(instr->object());
2791 LOperand* index = UseTempRegister(instr->index()); 2767 LOperand* index = UseTempRegister(instr->index());
2792 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2793 } 2769 }
2794 2770
2795 2771
2796 } } // namespace v8::internal 2772 } } // namespace v8::internal
2797 2773
2798 #endif // V8_TARGET_ARCH_IA32 2774 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698