OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 // Since Smi and Failure are subclasses of Object no | 744 // Since Smi and Failure are subclasses of Object no |
745 // data members can be present in Object. | 745 // data members can be present in Object. |
746 class Object BASE_EMBEDDED { | 746 class Object BASE_EMBEDDED { |
747 public: | 747 public: |
748 // Type testing. | 748 // Type testing. |
749 inline bool IsSmi(); | 749 inline bool IsSmi(); |
750 inline bool IsHeapObject(); | 750 inline bool IsHeapObject(); |
751 inline bool IsHeapNumber(); | 751 inline bool IsHeapNumber(); |
752 inline bool IsString(); | 752 inline bool IsString(); |
753 inline bool IsSymbol(); | 753 inline bool IsSymbol(); |
| 754 #ifdef DEBUG |
| 755 // See objects-inl.h for more details |
754 inline bool IsSeqString(); | 756 inline bool IsSeqString(); |
755 inline bool IsSlicedString(); | 757 inline bool IsSlicedString(); |
756 inline bool IsExternalString(); | 758 inline bool IsExternalString(); |
757 inline bool IsConsString(); | |
758 inline bool IsExternalTwoByteString(); | 759 inline bool IsExternalTwoByteString(); |
759 inline bool IsExternalAsciiString(); | 760 inline bool IsExternalAsciiString(); |
760 inline bool IsSeqTwoByteString(); | 761 inline bool IsSeqTwoByteString(); |
761 inline bool IsSeqAsciiString(); | 762 inline bool IsSeqAsciiString(); |
| 763 #endif // DEBUG |
| 764 inline bool IsConsString(); |
762 | 765 |
763 inline bool IsNumber(); | 766 inline bool IsNumber(); |
764 inline bool IsByteArray(); | 767 inline bool IsByteArray(); |
765 inline bool IsPixelArray(); | 768 inline bool IsPixelArray(); |
766 inline bool IsFailure(); | 769 inline bool IsFailure(); |
767 inline bool IsRetryAfterGC(); | 770 inline bool IsRetryAfterGC(); |
768 inline bool IsOutOfMemoryFailure(); | 771 inline bool IsOutOfMemoryFailure(); |
769 inline bool IsException(); | 772 inline bool IsException(); |
770 inline bool IsJSObject(); | 773 inline bool IsJSObject(); |
771 inline bool IsJSContextExtensionObject(); | 774 inline bool IsJSContextExtensionObject(); |
(...skipping 4072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4844 } else { | 4847 } else { |
4845 value &= ~(1 << bit_position); | 4848 value &= ~(1 << bit_position); |
4846 } | 4849 } |
4847 return value; | 4850 return value; |
4848 } | 4851 } |
4849 }; | 4852 }; |
4850 | 4853 |
4851 } } // namespace v8::internal | 4854 } } // namespace v8::internal |
4852 | 4855 |
4853 #endif // V8_OBJECTS_H_ | 4856 #endif // V8_OBJECTS_H_ |
OLD | NEW |