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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 | 1555 |
1556 void* libc_memset(void* dest, int byte, size_t n) { | 1556 void* libc_memset(void* dest, int byte, size_t n) { |
1557 DCHECK_EQ(static_cast<char>(byte), byte); | 1557 DCHECK_EQ(static_cast<char>(byte), byte); |
1558 return memset(dest, byte, n); | 1558 return memset(dest, byte, n); |
1559 } | 1559 } |
1560 | 1560 |
1561 ExternalReference ExternalReference::libc_memset_function(Isolate* isolate) { | 1561 ExternalReference ExternalReference::libc_memset_function(Isolate* isolate) { |
1562 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(libc_memset))); | 1562 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(libc_memset))); |
1563 } | 1563 } |
1564 | 1564 |
| 1565 ExternalReference ExternalReference::try_internalize_string_function( |
| 1566 Isolate* isolate) { |
| 1567 return ExternalReference(Redirect( |
| 1568 isolate, FUNCTION_ADDR(StringTable::LookupStringIfExists_NoAllocate))); |
| 1569 } |
| 1570 |
1565 ExternalReference ExternalReference::page_flags(Page* page) { | 1571 ExternalReference ExternalReference::page_flags(Page* page) { |
1566 return ExternalReference(reinterpret_cast<Address>(page) + | 1572 return ExternalReference(reinterpret_cast<Address>(page) + |
1567 MemoryChunk::kFlagsOffset); | 1573 MemoryChunk::kFlagsOffset); |
1568 } | 1574 } |
1569 | 1575 |
1570 | 1576 |
1571 ExternalReference ExternalReference::ForDeoptEntry(Address entry) { | 1577 ExternalReference ExternalReference::ForDeoptEntry(Address entry) { |
1572 return ExternalReference(entry); | 1578 return ExternalReference(entry); |
1573 } | 1579 } |
1574 | 1580 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1942 | 1948 |
1943 | 1949 |
1944 void Assembler::DataAlign(int m) { | 1950 void Assembler::DataAlign(int m) { |
1945 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1951 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1946 while ((pc_offset() & (m - 1)) != 0) { | 1952 while ((pc_offset() & (m - 1)) != 0) { |
1947 db(0); | 1953 db(0); |
1948 } | 1954 } |
1949 } | 1955 } |
1950 } // namespace internal | 1956 } // namespace internal |
1951 } // namespace v8 | 1957 } // namespace v8 |
OLD | NEW |