OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 % JSFunctionResultCache::kEntrySize != 0) { | 568 % JSFunctionResultCache::kEntrySize != 0) { |
569 return false; | 569 return false; |
570 } | 570 } |
571 #ifdef DEBUG | 571 #ifdef DEBUG |
572 reinterpret_cast<JSFunctionResultCache*>(this)->JSFunctionResultCacheVerify(); | 572 reinterpret_cast<JSFunctionResultCache*>(this)->JSFunctionResultCacheVerify(); |
573 #endif | 573 #endif |
574 return true; | 574 return true; |
575 } | 575 } |
576 | 576 |
577 | 577 |
| 578 bool Object::IsNormalizedMapCache() { |
| 579 if (!IsFixedArray()) return false; |
| 580 if (FixedArray::cast(this)->length() != NormalizedMapCache::kEntries) { |
| 581 return false; |
| 582 } |
| 583 #ifdef DEBUG |
| 584 reinterpret_cast<NormalizedMapCache*>(this)->NormalizedMapCacheVerify(); |
| 585 #endif |
| 586 return true; |
| 587 } |
| 588 |
| 589 |
578 bool Object::IsCompilationCacheTable() { | 590 bool Object::IsCompilationCacheTable() { |
579 return IsHashTable(); | 591 return IsHashTable(); |
580 } | 592 } |
581 | 593 |
582 | 594 |
583 bool Object::IsCodeCacheHashTable() { | 595 bool Object::IsCodeCacheHashTable() { |
584 return IsHashTable(); | 596 return IsHashTable(); |
585 } | 597 } |
586 | 598 |
587 | 599 |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 | 1665 |
1654 | 1666 |
1655 // ------------------------------------ | 1667 // ------------------------------------ |
1656 // Cast operations | 1668 // Cast operations |
1657 | 1669 |
1658 | 1670 |
1659 CAST_ACCESSOR(FixedArray) | 1671 CAST_ACCESSOR(FixedArray) |
1660 CAST_ACCESSOR(DescriptorArray) | 1672 CAST_ACCESSOR(DescriptorArray) |
1661 CAST_ACCESSOR(SymbolTable) | 1673 CAST_ACCESSOR(SymbolTable) |
1662 CAST_ACCESSOR(JSFunctionResultCache) | 1674 CAST_ACCESSOR(JSFunctionResultCache) |
| 1675 CAST_ACCESSOR(NormalizedMapCache) |
1663 CAST_ACCESSOR(CompilationCacheTable) | 1676 CAST_ACCESSOR(CompilationCacheTable) |
1664 CAST_ACCESSOR(CodeCacheHashTable) | 1677 CAST_ACCESSOR(CodeCacheHashTable) |
1665 CAST_ACCESSOR(MapCache) | 1678 CAST_ACCESSOR(MapCache) |
1666 CAST_ACCESSOR(String) | 1679 CAST_ACCESSOR(String) |
1667 CAST_ACCESSOR(SeqString) | 1680 CAST_ACCESSOR(SeqString) |
1668 CAST_ACCESSOR(SeqAsciiString) | 1681 CAST_ACCESSOR(SeqAsciiString) |
1669 CAST_ACCESSOR(SeqTwoByteString) | 1682 CAST_ACCESSOR(SeqTwoByteString) |
1670 CAST_ACCESSOR(ConsString) | 1683 CAST_ACCESSOR(ConsString) |
1671 CAST_ACCESSOR(ExternalString) | 1684 CAST_ACCESSOR(ExternalString) |
1672 CAST_ACCESSOR(ExternalAsciiString) | 1685 CAST_ACCESSOR(ExternalAsciiString) |
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3466 #undef WRITE_INT_FIELD | 3479 #undef WRITE_INT_FIELD |
3467 #undef READ_SHORT_FIELD | 3480 #undef READ_SHORT_FIELD |
3468 #undef WRITE_SHORT_FIELD | 3481 #undef WRITE_SHORT_FIELD |
3469 #undef READ_BYTE_FIELD | 3482 #undef READ_BYTE_FIELD |
3470 #undef WRITE_BYTE_FIELD | 3483 #undef WRITE_BYTE_FIELD |
3471 | 3484 |
3472 | 3485 |
3473 } } // namespace v8::internal | 3486 } } // namespace v8::internal |
3474 | 3487 |
3475 #endif // V8_OBJECTS_INL_H_ | 3488 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |