| 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 6809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6820 DECL_ACCESSORS(prototype_template, Object) | 6820 DECL_ACCESSORS(prototype_template, Object) |
| 6821 DECL_ACCESSORS(parent_template, Object) | 6821 DECL_ACCESSORS(parent_template, Object) |
| 6822 DECL_ACCESSORS(named_property_handler, Object) | 6822 DECL_ACCESSORS(named_property_handler, Object) |
| 6823 DECL_ACCESSORS(indexed_property_handler, Object) | 6823 DECL_ACCESSORS(indexed_property_handler, Object) |
| 6824 DECL_ACCESSORS(instance_template, Object) | 6824 DECL_ACCESSORS(instance_template, Object) |
| 6825 DECL_ACCESSORS(class_name, Object) | 6825 DECL_ACCESSORS(class_name, Object) |
| 6826 DECL_ACCESSORS(signature, Object) | 6826 DECL_ACCESSORS(signature, Object) |
| 6827 DECL_ACCESSORS(instance_call_handler, Object) | 6827 DECL_ACCESSORS(instance_call_handler, Object) |
| 6828 DECL_ACCESSORS(access_check_info, Object) | 6828 DECL_ACCESSORS(access_check_info, Object) |
| 6829 DECL_ACCESSORS(flag, Smi) | 6829 DECL_ACCESSORS(flag, Smi) |
| 6830 DECL_ACCESSORS(prototype_attributes, Smi) | |
| 6831 | 6830 |
| 6832 // Following properties use flag bits. | 6831 // Following properties use flag bits. |
| 6833 DECL_BOOLEAN_ACCESSORS(hidden_prototype) | 6832 DECL_BOOLEAN_ACCESSORS(hidden_prototype) |
| 6834 DECL_BOOLEAN_ACCESSORS(undetectable) | 6833 DECL_BOOLEAN_ACCESSORS(undetectable) |
| 6835 // If the bit is set, object instances created by this function | 6834 // If the bit is set, object instances created by this function |
| 6836 // requires access check. | 6835 // requires access check. |
| 6837 DECL_BOOLEAN_ACCESSORS(needs_access_check) | 6836 DECL_BOOLEAN_ACCESSORS(needs_access_check) |
| 6837 DECL_BOOLEAN_ACCESSORS(read_only_prototype) |
| 6838 | 6838 |
| 6839 static inline FunctionTemplateInfo* cast(Object* obj); | 6839 static inline FunctionTemplateInfo* cast(Object* obj); |
| 6840 | 6840 |
| 6841 #ifdef OBJECT_PRINT | 6841 #ifdef OBJECT_PRINT |
| 6842 inline void FunctionTemplateInfoPrint() { | 6842 inline void FunctionTemplateInfoPrint() { |
| 6843 FunctionTemplateInfoPrint(stdout); | 6843 FunctionTemplateInfoPrint(stdout); |
| 6844 } | 6844 } |
| 6845 void FunctionTemplateInfoPrint(FILE* out); | 6845 void FunctionTemplateInfoPrint(FILE* out); |
| 6846 #endif | 6846 #endif |
| 6847 #ifdef DEBUG | 6847 #ifdef DEBUG |
| (...skipping 12 matching lines...) Expand all Loading... |
| 6860 static const int kIndexedPropertyHandlerOffset = | 6860 static const int kIndexedPropertyHandlerOffset = |
| 6861 kNamedPropertyHandlerOffset + kPointerSize; | 6861 kNamedPropertyHandlerOffset + kPointerSize; |
| 6862 static const int kInstanceTemplateOffset = | 6862 static const int kInstanceTemplateOffset = |
| 6863 kIndexedPropertyHandlerOffset + kPointerSize; | 6863 kIndexedPropertyHandlerOffset + kPointerSize; |
| 6864 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; | 6864 static const int kClassNameOffset = kInstanceTemplateOffset + kPointerSize; |
| 6865 static const int kSignatureOffset = kClassNameOffset + kPointerSize; | 6865 static const int kSignatureOffset = kClassNameOffset + kPointerSize; |
| 6866 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; | 6866 static const int kInstanceCallHandlerOffset = kSignatureOffset + kPointerSize; |
| 6867 static const int kAccessCheckInfoOffset = | 6867 static const int kAccessCheckInfoOffset = |
| 6868 kInstanceCallHandlerOffset + kPointerSize; | 6868 kInstanceCallHandlerOffset + kPointerSize; |
| 6869 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; | 6869 static const int kFlagOffset = kAccessCheckInfoOffset + kPointerSize; |
| 6870 static const int kPrototypeAttributesOffset = kFlagOffset + kPointerSize; | 6870 static const int kSize = kFlagOffset + kPointerSize; |
| 6871 static const int kSize = kPrototypeAttributesOffset + kPointerSize; | |
| 6872 | 6871 |
| 6873 private: | 6872 private: |
| 6874 // Bit position in the flag, from least significant bit position. | 6873 // Bit position in the flag, from least significant bit position. |
| 6875 static const int kHiddenPrototypeBit = 0; | 6874 static const int kHiddenPrototypeBit = 0; |
| 6876 static const int kUndetectableBit = 1; | 6875 static const int kUndetectableBit = 1; |
| 6877 static const int kNeedsAccessCheckBit = 2; | 6876 static const int kNeedsAccessCheckBit = 2; |
| 6877 static const int kReadOnlyPrototypeBit = 3; |
| 6878 | 6878 |
| 6879 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo); | 6879 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo); |
| 6880 }; | 6880 }; |
| 6881 | 6881 |
| 6882 | 6882 |
| 6883 class ObjectTemplateInfo: public TemplateInfo { | 6883 class ObjectTemplateInfo: public TemplateInfo { |
| 6884 public: | 6884 public: |
| 6885 DECL_ACCESSORS(constructor, Object) | 6885 DECL_ACCESSORS(constructor, Object) |
| 6886 DECL_ACCESSORS(internal_field_count, Object) | 6886 DECL_ACCESSORS(internal_field_count, Object) |
| 6887 | 6887 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7164 } else { | 7164 } else { |
| 7165 value &= ~(1 << bit_position); | 7165 value &= ~(1 << bit_position); |
| 7166 } | 7166 } |
| 7167 return value; | 7167 return value; |
| 7168 } | 7168 } |
| 7169 }; | 7169 }; |
| 7170 | 7170 |
| 7171 } } // namespace v8::internal | 7171 } } // namespace v8::internal |
| 7172 | 7172 |
| 7173 #endif // V8_OBJECTS_H_ | 7173 #endif // V8_OBJECTS_H_ |
| OLD | NEW |