OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 6768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6779 DECL_ACCESSORS(prototype_template, Object) | 6779 DECL_ACCESSORS(prototype_template, Object) |
6780 DECL_ACCESSORS(parent_template, Object) | 6780 DECL_ACCESSORS(parent_template, Object) |
6781 DECL_ACCESSORS(named_property_handler, Object) | 6781 DECL_ACCESSORS(named_property_handler, Object) |
6782 DECL_ACCESSORS(indexed_property_handler, Object) | 6782 DECL_ACCESSORS(indexed_property_handler, Object) |
6783 DECL_ACCESSORS(instance_template, Object) | 6783 DECL_ACCESSORS(instance_template, Object) |
6784 DECL_ACCESSORS(class_name, Object) | 6784 DECL_ACCESSORS(class_name, Object) |
6785 DECL_ACCESSORS(signature, Object) | 6785 DECL_ACCESSORS(signature, Object) |
6786 DECL_ACCESSORS(instance_call_handler, Object) | 6786 DECL_ACCESSORS(instance_call_handler, Object) |
6787 DECL_ACCESSORS(access_check_info, Object) | 6787 DECL_ACCESSORS(access_check_info, Object) |
6788 DECL_ACCESSORS(flag, Smi) | 6788 DECL_ACCESSORS(flag, Smi) |
| 6789 DECL_ACCESSORS(prototype_properties, Smi) |
6789 | 6790 |
6790 // Following properties use flag bits. | 6791 // Following properties use flag bits. |
6791 DECL_BOOLEAN_ACCESSORS(hidden_prototype) | 6792 DECL_BOOLEAN_ACCESSORS(hidden_prototype) |
6792 DECL_BOOLEAN_ACCESSORS(undetectable) | 6793 DECL_BOOLEAN_ACCESSORS(undetectable) |
6793 // If the bit is set, object instances created by this function | 6794 // If the bit is set, object instances created by this function |
6794 // requires access check. | 6795 // requires access check. |
6795 DECL_BOOLEAN_ACCESSORS(needs_access_check) | 6796 DECL_BOOLEAN_ACCESSORS(needs_access_check) |
6796 | 6797 |
6797 static inline FunctionTemplateInfo* cast(Object* obj); | 6798 static inline FunctionTemplateInfo* cast(Object* obj); |
6798 | 6799 |
(...skipping 19 matching lines...) Expand all Loading... |
6818 static const int kIndexedPropertyHandlerOffset = | 6819 static const int kIndexedPropertyHandlerOffset = |
6819 kNamedPropertyHandlerOffset + kPointerSize; | 6820 kNamedPropertyHandlerOffset + kPointerSize; |
6820 static const int kInstanceTemplateOffset = | 6821 static const int kInstanceTemplateOffset = |
6821 kIndexedPropertyHandlerOffset + kPointerSize; | 6822 kIndexedPropertyHandlerOffset + kPointerSize; |
6822 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; | 6823 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; |
6823 static const int kSignatureOffset = kClassNameOffset + kPointerSize; | 6824 static const int kSignatureOffset = kClassNameOffset + kPointerSize; |
6824 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; | 6825 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; |
6825 static const int kAccessCheckInfoOffset = | 6826 static const int kAccessCheckInfoOffset = |
6826 kInstanceCallHandlerOffset + kPointerSize; | 6827 kInstanceCallHandlerOffset + kPointerSize; |
6827 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; | 6828 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; |
6828 static const int kSize = kFlagOffset + kPointerSize; | 6829 static const int kPrototypePropertiesOffset = kFlagOffset + kPointerSize; |
| 6830 static const int kSize = kPrototypePropertiesOffset + kPointerSize; |
6829 | 6831 |
6830 private: | 6832 private: |
6831 // Bit position in the flag, from least significant bit position. | 6833 // Bit position in the flag, from least significant bit position. |
6832 static const int kHiddenPrototypeBit = 0; | 6834 static const int kHiddenPrototypeBit = 0; |
6833 static const int kUndetectableBit = 1; | 6835 static const int kUndetectableBit = 1; |
6834 static const int kNeedsAccessCheckBit = 2; | 6836 static const int kNeedsAccessCheckBit = 2; |
6835 | 6837 |
6836 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo); | 6838 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo); |
6837 }; | 6839 }; |
6838 | 6840 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7121 } else { | 7123 } else { |
7122 value &= ~(1 << bit_position); | 7124 value &= ~(1 << bit_position); |
7123 } | 7125 } |
7124 return value; | 7126 return value; |
7125 } | 7127 } |
7126 }; | 7128 }; |
7127 | 7129 |
7128 } } // namespace v8::internal | 7130 } } // namespace v8::internal |
7129 | 7131 |
7130 #endif // V8_OBJECTS_H_ | 7132 #endif // V8_OBJECTS_H_ |
OLD | NEW |