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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm/codegen-arm.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 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 1411
1412 __ push(lr); 1412 __ push(lr);
1413 __ PrepareCallCFunction(0, 1, scratch); 1413 __ PrepareCallCFunction(0, 1, scratch);
1414 if (masm->use_eabi_hardfloat()) { 1414 if (masm->use_eabi_hardfloat()) {
1415 __ vmov(d0, d2); 1415 __ vmov(d0, d2);
1416 } else { 1416 } else {
1417 __ vmov(r0, r1, d2); 1417 __ vmov(r0, r1, d2);
1418 } 1418 }
1419 AllowExternalCallThatCantCauseGC scope(masm); 1419 AllowExternalCallThatCantCauseGC scope(masm);
1420 switch (type_) { 1420 switch (type_) {
1421 case TranscendentalCache::SIN:
1422 __ CallCFunction(ExternalReference::math_sin_double_function(isolate),
1423 0, 1);
1424 break;
1425 case TranscendentalCache::COS:
1426 __ CallCFunction(ExternalReference::math_cos_double_function(isolate),
1427 0, 1);
1428 break;
1429 case TranscendentalCache::TAN:
1430 __ CallCFunction(ExternalReference::math_tan_double_function(isolate),
1431 0, 1);
1432 break;
1433 case TranscendentalCache::LOG: 1421 case TranscendentalCache::LOG:
1434 __ CallCFunction(ExternalReference::math_log_double_function(isolate), 1422 __ CallCFunction(ExternalReference::math_log_double_function(isolate),
1435 0, 1); 1423 0, 1);
1436 break; 1424 break;
1437 default: 1425 default:
1438 UNIMPLEMENTED(); 1426 UNIMPLEMENTED();
1439 break; 1427 break;
1440 } 1428 }
1441 __ pop(lr); 1429 __ pop(lr);
1442 } 1430 }
1443 1431
1444 1432
1445 Runtime::FunctionId TranscendentalCacheStub::RuntimeFunction() { 1433 Runtime::FunctionId TranscendentalCacheStub::RuntimeFunction() {
1446 switch (type_) { 1434 switch (type_) {
1447 // Add more cases when necessary. 1435 // Add more cases when necessary.
1448 case TranscendentalCache::SIN: return Runtime::kMath_sin;
1449 case TranscendentalCache::COS: return Runtime::kMath_cos;
1450 case TranscendentalCache::TAN: return Runtime::kMath_tan;
1451 case TranscendentalCache::LOG: return Runtime::kMath_log; 1436 case TranscendentalCache::LOG: return Runtime::kMath_log;
1452 default: 1437 default:
1453 UNIMPLEMENTED(); 1438 UNIMPLEMENTED();
1454 return Runtime::kAbort; 1439 return Runtime::kAbort;
1455 } 1440 }
1456 } 1441 }
1457 1442
1458 1443
1459 void MathPowStub::Generate(MacroAssembler* masm) { 1444 void MathPowStub::Generate(MacroAssembler* masm) {
1460 const Register base = r1; 1445 const Register base = r1;
(...skipping 4569 matching lines...) Expand 10 before | Expand all | Expand 10 after
6030 __ bind(&fast_elements_case); 6015 __ bind(&fast_elements_case);
6031 GenerateCase(masm, FAST_ELEMENTS); 6016 GenerateCase(masm, FAST_ELEMENTS);
6032 } 6017 }
6033 6018
6034 6019
6035 #undef __ 6020 #undef __
6036 6021
6037 } } // namespace v8::internal 6022 } } // namespace v8::internal
6038 6023
6039 #endif // V8_TARGET_ARCH_ARM 6024 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698