OLD | NEW |
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 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 isolate->debug()->restarter_frame_function_pointer_address()); | 1438 isolate->debug()->restarter_frame_function_pointer_address()); |
1439 } | 1439 } |
1440 | 1440 |
1441 | 1441 |
1442 ExternalReference ExternalReference::vector_store_virtual_register( | 1442 ExternalReference ExternalReference::vector_store_virtual_register( |
1443 Isolate* isolate) { | 1443 Isolate* isolate) { |
1444 return ExternalReference(isolate->vector_store_virtual_register_address()); | 1444 return ExternalReference(isolate->vector_store_virtual_register_address()); |
1445 } | 1445 } |
1446 | 1446 |
1447 | 1447 |
| 1448 ExternalReference ExternalReference::runtime_function_table_address( |
| 1449 Isolate* isolate) { |
| 1450 return ExternalReference( |
| 1451 const_cast<Runtime::Function*>(Runtime::RuntimeFunctionTable(isolate))); |
| 1452 } |
| 1453 |
| 1454 |
1448 double power_helper(double x, double y) { | 1455 double power_helper(double x, double y) { |
1449 int y_int = static_cast<int>(y); | 1456 int y_int = static_cast<int>(y); |
1450 if (y == y_int) { | 1457 if (y == y_int) { |
1451 return power_double_int(x, y_int); // Returns 1 if exponent is 0. | 1458 return power_double_int(x, y_int); // Returns 1 if exponent is 0. |
1452 } | 1459 } |
1453 if (y == 0.5) { | 1460 if (y == 0.5) { |
1454 return (std::isinf(x)) ? V8_INFINITY | 1461 return (std::isinf(x)) ? V8_INFINITY |
1455 : fast_sqrt(x + 0.0); // Convert -0 to +0. | 1462 : fast_sqrt(x + 0.0); // Convert -0 to +0. |
1456 } | 1463 } |
1457 if (y == -0.5) { | 1464 if (y == -0.5) { |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 | 1885 |
1879 | 1886 |
1880 void Assembler::DataAlign(int m) { | 1887 void Assembler::DataAlign(int m) { |
1881 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1888 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1882 while ((pc_offset() & (m - 1)) != 0) { | 1889 while ((pc_offset() & (m - 1)) != 0) { |
1883 db(0); | 1890 db(0); |
1884 } | 1891 } |
1885 } | 1892 } |
1886 } // namespace internal | 1893 } // namespace internal |
1887 } // namespace v8 | 1894 } // namespace v8 |
OLD | NEW |