| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" // NOLINT | 84 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" // NOLINT |
| 85 #elif V8_TARGET_ARCH_S390 | 85 #elif V8_TARGET_ARCH_S390 |
| 86 #include "src/regexp/s390/regexp-macro-assembler-s390.h" // NOLINT | 86 #include "src/regexp/s390/regexp-macro-assembler-s390.h" // NOLINT |
| 87 #elif V8_TARGET_ARCH_X87 | 87 #elif V8_TARGET_ARCH_X87 |
| 88 #include "src/regexp/x87/regexp-macro-assembler-x87.h" // NOLINT | 88 #include "src/regexp/x87/regexp-macro-assembler-x87.h" // NOLINT |
| 89 #else // Unknown architecture. | 89 #else // Unknown architecture. |
| 90 #error "Unknown architecture." | 90 #error "Unknown architecture." |
| 91 #endif // Target architecture. | 91 #endif // Target architecture. |
| 92 #endif // V8_INTERPRETED_REGEXP | 92 #endif // V8_INTERPRETED_REGEXP |
| 93 | 93 |
| 94 #ifdef V8_INTL_SUPPORT |
| 95 #include "src/intl.h" |
| 96 #endif // V8_INTL_SUPPORT |
| 97 |
| 94 namespace v8 { | 98 namespace v8 { |
| 95 namespace internal { | 99 namespace internal { |
| 96 | 100 |
| 97 // ----------------------------------------------------------------------------- | 101 // ----------------------------------------------------------------------------- |
| 98 // Common double constants. | 102 // Common double constants. |
| 99 | 103 |
| 100 struct DoubleConstant BASE_EMBEDDED { | 104 struct DoubleConstant BASE_EMBEDDED { |
| 101 double min_int; | 105 double min_int; |
| 102 double one_half; | 106 double one_half; |
| 103 double minus_one_half; | 107 double minus_one_half; |
| (...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 auto f = SearchStringRaw<SubjectChar, PatternChar>; | 1569 auto f = SearchStringRaw<SubjectChar, PatternChar>; |
| 1566 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f))); | 1570 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f))); |
| 1567 } | 1571 } |
| 1568 | 1572 |
| 1569 ExternalReference ExternalReference::try_internalize_string_function( | 1573 ExternalReference ExternalReference::try_internalize_string_function( |
| 1570 Isolate* isolate) { | 1574 Isolate* isolate) { |
| 1571 return ExternalReference(Redirect( | 1575 return ExternalReference(Redirect( |
| 1572 isolate, FUNCTION_ADDR(StringTable::LookupStringIfExists_NoAllocate))); | 1576 isolate, FUNCTION_ADDR(StringTable::LookupStringIfExists_NoAllocate))); |
| 1573 } | 1577 } |
| 1574 | 1578 |
| 1579 #ifdef V8_INTL_SUPPORT |
| 1580 ExternalReference ExternalReference::intl_convert_one_byte_to_lower( |
| 1581 Isolate* isolate) { |
| 1582 return ExternalReference( |
| 1583 Redirect(isolate, FUNCTION_ADDR(ConvertOneByteToLower))); |
| 1584 } |
| 1585 |
| 1586 ExternalReference ExternalReference::intl_to_latin1_lower_table( |
| 1587 Isolate* isolate) { |
| 1588 uint8_t* ptr = const_cast<uint8_t*>(ToLatin1LowerTable()); |
| 1589 return ExternalReference(reinterpret_cast<Address>(ptr)); |
| 1590 } |
| 1591 #endif // V8_INTL_SUPPORT |
| 1592 |
| 1575 // Explicit instantiations for all combinations of 1- and 2-byte strings. | 1593 // Explicit instantiations for all combinations of 1- and 2-byte strings. |
| 1576 template ExternalReference | 1594 template ExternalReference |
| 1577 ExternalReference::search_string_raw<const uint8_t, const uint8_t>(Isolate*); | 1595 ExternalReference::search_string_raw<const uint8_t, const uint8_t>(Isolate*); |
| 1578 template ExternalReference | 1596 template ExternalReference |
| 1579 ExternalReference::search_string_raw<const uint8_t, const uc16>(Isolate*); | 1597 ExternalReference::search_string_raw<const uint8_t, const uc16>(Isolate*); |
| 1580 template ExternalReference | 1598 template ExternalReference |
| 1581 ExternalReference::search_string_raw<const uc16, const uint8_t>(Isolate*); | 1599 ExternalReference::search_string_raw<const uc16, const uint8_t>(Isolate*); |
| 1582 template ExternalReference | 1600 template ExternalReference |
| 1583 ExternalReference::search_string_raw<const uc16, const uc16>(Isolate*); | 1601 ExternalReference::search_string_raw<const uc16, const uc16>(Isolate*); |
| 1584 | 1602 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1962 | 1980 |
| 1963 | 1981 |
| 1964 void Assembler::DataAlign(int m) { | 1982 void Assembler::DataAlign(int m) { |
| 1965 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1983 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1966 while ((pc_offset() & (m - 1)) != 0) { | 1984 while ((pc_offset() & (m - 1)) != 0) { |
| 1967 db(0); | 1985 db(0); |
| 1968 } | 1986 } |
| 1969 } | 1987 } |
| 1970 } // namespace internal | 1988 } // namespace internal |
| 1971 } // namespace v8 | 1989 } // namespace v8 |
| OLD | NEW |