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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 inline bool IsGlobalObject(); | 794 inline bool IsGlobalObject(); |
795 inline bool IsJSGlobalObject(); | 795 inline bool IsJSGlobalObject(); |
796 inline bool IsJSBuiltinsObject(); | 796 inline bool IsJSBuiltinsObject(); |
797 inline bool IsJSGlobalProxy(); | 797 inline bool IsJSGlobalProxy(); |
798 inline bool IsUndetectableObject(); | 798 inline bool IsUndetectableObject(); |
799 inline bool IsAccessCheckNeeded(); | 799 inline bool IsAccessCheckNeeded(); |
800 inline bool IsJSGlobalPropertyCell(); | 800 inline bool IsJSGlobalPropertyCell(); |
801 | 801 |
802 // Returns true if this object is an instance of the specified | 802 // Returns true if this object is an instance of the specified |
803 // function template. | 803 // function template. |
804 bool IsInstanceOf(FunctionTemplateInfo* type); | 804 inline bool IsInstanceOf(FunctionTemplateInfo* type); |
805 | 805 |
806 inline bool IsStruct(); | 806 inline bool IsStruct(); |
807 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); | 807 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); |
808 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) | 808 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) |
809 #undef DECLARE_STRUCT_PREDICATE | 809 #undef DECLARE_STRUCT_PREDICATE |
810 | 810 |
811 // Oddball testing. | 811 // Oddball testing. |
812 INLINE(bool IsUndefined()); | 812 INLINE(bool IsUndefined()); |
813 INLINE(bool IsTheHole()); | 813 INLINE(bool IsTheHole()); |
814 INLINE(bool IsNull()); | 814 INLINE(bool IsNull()); |
(...skipping 3974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4789 } else { | 4789 } else { |
4790 value &= ~(1 << bit_position); | 4790 value &= ~(1 << bit_position); |
4791 } | 4791 } |
4792 return value; | 4792 return value; |
4793 } | 4793 } |
4794 }; | 4794 }; |
4795 | 4795 |
4796 } } // namespace v8::internal | 4796 } } // namespace v8::internal |
4797 | 4797 |
4798 #endif // V8_OBJECTS_H_ | 4798 #endif // V8_OBJECTS_H_ |
OLD | NEW |