| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // Since Smi and Failure are subclasses of Object no | 783 // Since Smi and Failure are subclasses of Object no |
| 784 // data members can be present in Object. | 784 // data members can be present in Object. |
| 785 class Object BASE_EMBEDDED { | 785 class Object BASE_EMBEDDED { |
| 786 public: | 786 public: |
| 787 // Type testing. | 787 // Type testing. |
| 788 inline bool IsSmi(); | 788 inline bool IsSmi(); |
| 789 inline bool IsHeapObject(); | 789 inline bool IsHeapObject(); |
| 790 inline bool IsHeapNumber(); | 790 inline bool IsHeapNumber(); |
| 791 inline bool IsString(); | 791 inline bool IsString(); |
| 792 inline bool IsSymbol(); | 792 inline bool IsSymbol(); |
| 793 #ifdef DEBUG | |
| 794 // See objects-inl.h for more details | 793 // See objects-inl.h for more details |
| 795 inline bool IsSeqString(); | 794 inline bool IsSeqString(); |
| 796 inline bool IsSlicedString(); | 795 inline bool IsSlicedString(); |
| 797 inline bool IsExternalString(); | 796 inline bool IsExternalString(); |
| 798 inline bool IsExternalTwoByteString(); | 797 inline bool IsExternalTwoByteString(); |
| 799 inline bool IsExternalAsciiString(); | 798 inline bool IsExternalAsciiString(); |
| 800 inline bool IsSeqTwoByteString(); | 799 inline bool IsSeqTwoByteString(); |
| 801 inline bool IsSeqAsciiString(); | 800 inline bool IsSeqAsciiString(); |
| 802 #endif // DEBUG | |
| 803 inline bool IsConsString(); | 801 inline bool IsConsString(); |
| 804 | 802 |
| 805 inline bool IsNumber(); | 803 inline bool IsNumber(); |
| 806 inline bool IsByteArray(); | 804 inline bool IsByteArray(); |
| 807 inline bool IsPixelArray(); | 805 inline bool IsPixelArray(); |
| 808 inline bool IsExternalArray(); | 806 inline bool IsExternalArray(); |
| 809 inline bool IsExternalByteArray(); | 807 inline bool IsExternalByteArray(); |
| 810 inline bool IsExternalUnsignedByteArray(); | 808 inline bool IsExternalUnsignedByteArray(); |
| 811 inline bool IsExternalShortArray(); | 809 inline bool IsExternalShortArray(); |
| 812 inline bool IsExternalUnsignedShortArray(); | 810 inline bool IsExternalUnsignedShortArray(); |
| (...skipping 4349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5162 } else { | 5160 } else { |
| 5163 value &= ~(1 << bit_position); | 5161 value &= ~(1 << bit_position); |
| 5164 } | 5162 } |
| 5165 return value; | 5163 return value; |
| 5166 } | 5164 } |
| 5167 }; | 5165 }; |
| 5168 | 5166 |
| 5169 } } // namespace v8::internal | 5167 } } // namespace v8::internal |
| 5170 | 5168 |
| 5171 #endif // V8_OBJECTS_H_ | 5169 #endif // V8_OBJECTS_H_ |
| OLD | NEW |