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

Side by Side Diff: src/assembler.cc

Issue 2068743002: [builtins] Unify Atanh, Cbrt and Expm1 as exports from flibm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed type warning. Created 4 years, 6 months 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
« no previous file with comments | « src/assembler.h ('k') | src/base/ieee754.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 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 ExternalReference ExternalReference::ieee754_atan_function(Isolate* isolate) { 1561 ExternalReference ExternalReference::ieee754_atan_function(Isolate* isolate) {
1562 return ExternalReference( 1562 return ExternalReference(
1563 Redirect(isolate, FUNCTION_ADDR(base::ieee754::atan), BUILTIN_FP_CALL)); 1563 Redirect(isolate, FUNCTION_ADDR(base::ieee754::atan), BUILTIN_FP_CALL));
1564 } 1564 }
1565 1565
1566 ExternalReference ExternalReference::ieee754_atan2_function(Isolate* isolate) { 1566 ExternalReference ExternalReference::ieee754_atan2_function(Isolate* isolate) {
1567 return ExternalReference(Redirect( 1567 return ExternalReference(Redirect(
1568 isolate, FUNCTION_ADDR(base::ieee754::atan2), BUILTIN_FP_FP_CALL)); 1568 isolate, FUNCTION_ADDR(base::ieee754::atan2), BUILTIN_FP_FP_CALL));
1569 } 1569 }
1570 1570
1571 ExternalReference ExternalReference::ieee754_atanh_function(Isolate* isolate) {
1572 return ExternalReference(Redirect(
1573 isolate, FUNCTION_ADDR(base::ieee754::atanh), BUILTIN_FP_FP_CALL));
1574 }
1575
1571 ExternalReference ExternalReference::ieee754_exp_function(Isolate* isolate) { 1576 ExternalReference ExternalReference::ieee754_exp_function(Isolate* isolate) {
1572 return ExternalReference( 1577 return ExternalReference(
1573 Redirect(isolate, FUNCTION_ADDR(base::ieee754::exp), BUILTIN_FP_CALL)); 1578 Redirect(isolate, FUNCTION_ADDR(base::ieee754::exp), BUILTIN_FP_CALL));
1574 } 1579 }
1575 1580
1576 ExternalReference ExternalReference::ieee754_log_function(Isolate* isolate) { 1581 ExternalReference ExternalReference::ieee754_log_function(Isolate* isolate) {
1577 return ExternalReference( 1582 return ExternalReference(
1578 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log), BUILTIN_FP_CALL)); 1583 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log), BUILTIN_FP_CALL));
1579 } 1584 }
1580 1585
1581 ExternalReference ExternalReference::ieee754_log1p_function(Isolate* isolate) { 1586 ExternalReference ExternalReference::ieee754_log1p_function(Isolate* isolate) {
1582 return ExternalReference( 1587 return ExternalReference(
1583 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log1p), BUILTIN_FP_CALL)); 1588 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log1p), BUILTIN_FP_CALL));
1584 } 1589 }
1585 1590
1586 ExternalReference ExternalReference::ieee754_log2_function(Isolate* isolate) { 1591 ExternalReference ExternalReference::ieee754_log2_function(Isolate* isolate) {
1587 return ExternalReference( 1592 return ExternalReference(
1588 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log2), BUILTIN_FP_CALL)); 1593 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log2), BUILTIN_FP_CALL));
1589 } 1594 }
1590 1595
1591 ExternalReference ExternalReference::ieee754_log10_function(Isolate* isolate) { 1596 ExternalReference ExternalReference::ieee754_log10_function(Isolate* isolate) {
1592 return ExternalReference( 1597 return ExternalReference(
1593 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log10), BUILTIN_FP_CALL)); 1598 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log10), BUILTIN_FP_CALL));
1594 } 1599 }
1595 1600
1601 ExternalReference ExternalReference::ieee754_cbrt_function(Isolate* isolate) {
1602 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(base::ieee754::cbrt),
1603 BUILTIN_FP_FP_CALL));
1604 }
1605
1606 ExternalReference ExternalReference::ieee754_expm1_function(Isolate* isolate) {
1607 return ExternalReference(Redirect(
1608 isolate, FUNCTION_ADDR(base::ieee754::expm1), BUILTIN_FP_FP_CALL));
1609 }
1610
1596 ExternalReference ExternalReference::page_flags(Page* page) { 1611 ExternalReference ExternalReference::page_flags(Page* page) {
1597 return ExternalReference(reinterpret_cast<Address>(page) + 1612 return ExternalReference(reinterpret_cast<Address>(page) +
1598 MemoryChunk::kFlagsOffset); 1613 MemoryChunk::kFlagsOffset);
1599 } 1614 }
1600 1615
1601 1616
1602 ExternalReference ExternalReference::ForDeoptEntry(Address entry) { 1617 ExternalReference ExternalReference::ForDeoptEntry(Address entry) {
1603 return ExternalReference(entry); 1618 return ExternalReference(entry);
1604 } 1619 }
1605 1620
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2053
2039 2054
2040 void Assembler::DataAlign(int m) { 2055 void Assembler::DataAlign(int m) {
2041 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2056 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2042 while ((pc_offset() & (m - 1)) != 0) { 2057 while ((pc_offset() & (m - 1)) != 0) {
2043 db(0); 2058 db(0);
2044 } 2059 }
2045 } 2060 }
2046 } // namespace internal 2061 } // namespace internal
2047 } // namespace v8 2062 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/base/ieee754.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698