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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 % JSFunctionResultCache::kEntrySize != 0) { | 567 % JSFunctionResultCache::kEntrySize != 0) { |
568 return false; | 568 return false; |
569 } | 569 } |
570 #ifdef DEBUG | 570 #ifdef DEBUG |
571 reinterpret_cast<JSFunctionResultCache*>(this)->JSFunctionResultCacheVerify(); | 571 reinterpret_cast<JSFunctionResultCache*>(this)->JSFunctionResultCacheVerify(); |
572 #endif | 572 #endif |
573 return true; | 573 return true; |
574 } | 574 } |
575 | 575 |
576 | 576 |
577 bool Object::IsNormalizedMapCache() { | |
578 if (!IsFixedArray()) return false; | |
579 if (FixedArray::cast(this)->length() != NormalizedMapCache::kEntries) { | |
580 return false; | |
581 } | |
582 #ifdef DEBUG | |
583 reinterpret_cast<NormalizedMapCache*>(this)->NormalizedMapCacheVerify(); | |
584 #endif | |
585 return true; | |
586 } | |
587 | |
588 | |
589 bool Object::IsCompilationCacheTable() { | 577 bool Object::IsCompilationCacheTable() { |
590 return IsHashTable(); | 578 return IsHashTable(); |
591 } | 579 } |
592 | 580 |
593 | 581 |
594 bool Object::IsCodeCacheHashTable() { | 582 bool Object::IsCodeCacheHashTable() { |
595 return IsHashTable(); | 583 return IsHashTable(); |
596 } | 584 } |
597 | 585 |
598 | 586 |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 | 1620 |
1633 | 1621 |
1634 // ------------------------------------ | 1622 // ------------------------------------ |
1635 // Cast operations | 1623 // Cast operations |
1636 | 1624 |
1637 | 1625 |
1638 CAST_ACCESSOR(FixedArray) | 1626 CAST_ACCESSOR(FixedArray) |
1639 CAST_ACCESSOR(DescriptorArray) | 1627 CAST_ACCESSOR(DescriptorArray) |
1640 CAST_ACCESSOR(SymbolTable) | 1628 CAST_ACCESSOR(SymbolTable) |
1641 CAST_ACCESSOR(JSFunctionResultCache) | 1629 CAST_ACCESSOR(JSFunctionResultCache) |
1642 CAST_ACCESSOR(NormalizedMapCache) | |
1643 CAST_ACCESSOR(CompilationCacheTable) | 1630 CAST_ACCESSOR(CompilationCacheTable) |
1644 CAST_ACCESSOR(CodeCacheHashTable) | 1631 CAST_ACCESSOR(CodeCacheHashTable) |
1645 CAST_ACCESSOR(MapCache) | 1632 CAST_ACCESSOR(MapCache) |
1646 CAST_ACCESSOR(String) | 1633 CAST_ACCESSOR(String) |
1647 CAST_ACCESSOR(SeqString) | 1634 CAST_ACCESSOR(SeqString) |
1648 CAST_ACCESSOR(SeqAsciiString) | 1635 CAST_ACCESSOR(SeqAsciiString) |
1649 CAST_ACCESSOR(SeqTwoByteString) | 1636 CAST_ACCESSOR(SeqTwoByteString) |
1650 CAST_ACCESSOR(ConsString) | 1637 CAST_ACCESSOR(ConsString) |
1651 CAST_ACCESSOR(ExternalString) | 1638 CAST_ACCESSOR(ExternalString) |
1652 CAST_ACCESSOR(ExternalAsciiString) | 1639 CAST_ACCESSOR(ExternalAsciiString) |
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3337 #undef WRITE_INT_FIELD | 3324 #undef WRITE_INT_FIELD |
3338 #undef READ_SHORT_FIELD | 3325 #undef READ_SHORT_FIELD |
3339 #undef WRITE_SHORT_FIELD | 3326 #undef WRITE_SHORT_FIELD |
3340 #undef READ_BYTE_FIELD | 3327 #undef READ_BYTE_FIELD |
3341 #undef WRITE_BYTE_FIELD | 3328 #undef WRITE_BYTE_FIELD |
3342 | 3329 |
3343 | 3330 |
3344 } } // namespace v8::internal | 3331 } } // namespace v8::internal |
3345 | 3332 |
3346 #endif // V8_OBJECTS_INL_H_ | 3333 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |