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

Side by Side Diff: src/assembler.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/assembler.h ('k') | src/heap.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 static double div_two_doubles(double x, double y) { 1411 static double div_two_doubles(double x, double y) {
1412 return x / y; 1412 return x / y;
1413 } 1413 }
1414 1414
1415 1415
1416 static double mod_two_doubles(double x, double y) { 1416 static double mod_two_doubles(double x, double y) {
1417 return modulo(x, y); 1417 return modulo(x, y);
1418 } 1418 }
1419 1419
1420 1420
1421 static double math_sin_double(double x) {
1422 return sin(x);
1423 }
1424
1425
1426 static double math_cos_double(double x) {
1427 return cos(x);
1428 }
1429
1430
1431 static double math_tan_double(double x) {
1432 return tan(x);
1433 }
1434
1435
1436 static double math_log_double(double x) { 1421 static double math_log_double(double x) {
1437 return log(x); 1422 return log(x);
1438 } 1423 }
1439 1424
1440 1425
1441 ExternalReference ExternalReference::math_sin_double_function(
1442 Isolate* isolate) {
1443 return ExternalReference(Redirect(isolate,
1444 FUNCTION_ADDR(math_sin_double),
1445 BUILTIN_FP_CALL));
1446 }
1447
1448
1449 ExternalReference ExternalReference::math_cos_double_function(
1450 Isolate* isolate) {
1451 return ExternalReference(Redirect(isolate,
1452 FUNCTION_ADDR(math_cos_double),
1453 BUILTIN_FP_CALL));
1454 }
1455
1456
1457 ExternalReference ExternalReference::math_tan_double_function(
1458 Isolate* isolate) {
1459 return ExternalReference(Redirect(isolate,
1460 FUNCTION_ADDR(math_tan_double),
1461 BUILTIN_FP_CALL));
1462 }
1463
1464
1465 ExternalReference ExternalReference::math_log_double_function( 1426 ExternalReference ExternalReference::math_log_double_function(
1466 Isolate* isolate) { 1427 Isolate* isolate) {
1467 return ExternalReference(Redirect(isolate, 1428 return ExternalReference(Redirect(isolate,
1468 FUNCTION_ADDR(math_log_double), 1429 FUNCTION_ADDR(math_log_double),
1469 BUILTIN_FP_CALL)); 1430 BUILTIN_FP_CALL));
1470 } 1431 }
1471 1432
1472 1433
1473 ExternalReference ExternalReference::math_exp_constants(int constant_index) { 1434 ExternalReference ExternalReference::math_exp_constants(int constant_index) {
1474 ASSERT(math_exp_data_initialized); 1435 ASSERT(math_exp_data_initialized);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1657 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1697 state_.written_position = state_.current_position; 1658 state_.written_position = state_.current_position;
1698 written = true; 1659 written = true;
1699 } 1660 }
1700 1661
1701 // Return whether something was written. 1662 // Return whether something was written.
1702 return written; 1663 return written;
1703 } 1664 }
1704 1665
1705 } } // namespace v8::internal 1666 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698