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

Side by Side Diff: src/assembler.cc

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks 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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { 1571 ExternalReference ExternalReference::ieee754_atanh_function(Isolate* isolate) {
1572 return ExternalReference(Redirect( 1572 return ExternalReference(Redirect(
1573 isolate, FUNCTION_ADDR(base::ieee754::atanh), BUILTIN_FP_FP_CALL)); 1573 isolate, FUNCTION_ADDR(base::ieee754::atanh), BUILTIN_FP_FP_CALL));
1574 } 1574 }
1575 1575
1576 ExternalReference ExternalReference::ieee754_cos_function(Isolate* isolate) {
1577 return ExternalReference(
1578 Redirect(isolate, FUNCTION_ADDR(base::ieee754::cos), BUILTIN_FP_CALL));
1579 }
1580
1576 ExternalReference ExternalReference::ieee754_exp_function(Isolate* isolate) { 1581 ExternalReference ExternalReference::ieee754_exp_function(Isolate* isolate) {
1577 return ExternalReference( 1582 return ExternalReference(
1578 Redirect(isolate, FUNCTION_ADDR(base::ieee754::exp), BUILTIN_FP_CALL)); 1583 Redirect(isolate, FUNCTION_ADDR(base::ieee754::exp), BUILTIN_FP_CALL));
1579 } 1584 }
1580 1585
1581 ExternalReference ExternalReference::ieee754_log_function(Isolate* isolate) { 1586 ExternalReference ExternalReference::ieee754_log_function(Isolate* isolate) {
1582 return ExternalReference( 1587 return ExternalReference(
1583 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log), BUILTIN_FP_CALL)); 1588 Redirect(isolate, FUNCTION_ADDR(base::ieee754::log), BUILTIN_FP_CALL));
1584 } 1589 }
1585 1590
(...skipping 15 matching lines...) Expand all
1601 ExternalReference ExternalReference::ieee754_cbrt_function(Isolate* isolate) { 1606 ExternalReference ExternalReference::ieee754_cbrt_function(Isolate* isolate) {
1602 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(base::ieee754::cbrt), 1607 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(base::ieee754::cbrt),
1603 BUILTIN_FP_FP_CALL)); 1608 BUILTIN_FP_FP_CALL));
1604 } 1609 }
1605 1610
1606 ExternalReference ExternalReference::ieee754_expm1_function(Isolate* isolate) { 1611 ExternalReference ExternalReference::ieee754_expm1_function(Isolate* isolate) {
1607 return ExternalReference(Redirect( 1612 return ExternalReference(Redirect(
1608 isolate, FUNCTION_ADDR(base::ieee754::expm1), BUILTIN_FP_FP_CALL)); 1613 isolate, FUNCTION_ADDR(base::ieee754::expm1), BUILTIN_FP_FP_CALL));
1609 } 1614 }
1610 1615
1616 ExternalReference ExternalReference::ieee754_sin_function(Isolate* isolate) {
1617 return ExternalReference(
1618 Redirect(isolate, FUNCTION_ADDR(base::ieee754::sin), BUILTIN_FP_CALL));
1619 }
1620
1611 ExternalReference ExternalReference::page_flags(Page* page) { 1621 ExternalReference ExternalReference::page_flags(Page* page) {
1612 return ExternalReference(reinterpret_cast<Address>(page) + 1622 return ExternalReference(reinterpret_cast<Address>(page) +
1613 MemoryChunk::kFlagsOffset); 1623 MemoryChunk::kFlagsOffset);
1614 } 1624 }
1615 1625
1616 1626
1617 ExternalReference ExternalReference::ForDeoptEntry(Address entry) { 1627 ExternalReference ExternalReference::ForDeoptEntry(Address entry) {
1618 return ExternalReference(entry); 1628 return ExternalReference(entry);
1619 } 1629 }
1620 1630
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 2063
2054 2064
2055 void Assembler::DataAlign(int m) { 2065 void Assembler::DataAlign(int m) {
2056 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2066 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2057 while ((pc_offset() & (m - 1)) != 0) { 2067 while ((pc_offset() & (m - 1)) != 0) {
2058 db(0); 2068 db(0);
2059 } 2069 }
2060 } 2070 }
2061 } // namespace internal 2071 } // namespace internal
2062 } // namespace v8 2072 } // 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