OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 NONE = v8::None, | 102 NONE = v8::None, |
103 READ_ONLY = v8::ReadOnly, | 103 READ_ONLY = v8::ReadOnly, |
104 DONT_ENUM = v8::DontEnum, | 104 DONT_ENUM = v8::DontEnum, |
105 DONT_DELETE = v8::DontDelete, | 105 DONT_DELETE = v8::DontDelete, |
106 ABSENT = 16 // Used in runtime to indicate a property is absent. | 106 ABSENT = 16 // Used in runtime to indicate a property is absent. |
107 // ABSENT can never be stored in or returned from a descriptor's attributes | 107 // ABSENT can never be stored in or returned from a descriptor's attributes |
108 // bitfield. It is only used as a return value meaning the attributes of | 108 // bitfield. It is only used as a return value meaning the attributes of |
109 // a non-existent property. | 109 // a non-existent property. |
110 }; | 110 }; |
111 | 111 |
112 namespace v8 { namespace internal { | 112 namespace v8 { |
| 113 namespace internal { |
113 | 114 |
114 | 115 |
115 // PropertyDetails captures type and attributes for a property. | 116 // PropertyDetails captures type and attributes for a property. |
116 // They are used both in property dictionaries and instance descriptors. | 117 // They are used both in property dictionaries and instance descriptors. |
117 class PropertyDetails BASE_EMBEDDED { | 118 class PropertyDetails BASE_EMBEDDED { |
118 public: | 119 public: |
119 | 120 |
120 PropertyDetails(PropertyAttributes attributes, | 121 PropertyDetails(PropertyAttributes attributes, |
121 PropertyType type, | 122 PropertyType type, |
122 int index = 0) { | 123 int index = 0) { |
(...skipping 4274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4397 } else { | 4398 } else { |
4398 value &= ~(1 << bit_position); | 4399 value &= ~(1 << bit_position); |
4399 } | 4400 } |
4400 return value; | 4401 return value; |
4401 } | 4402 } |
4402 }; | 4403 }; |
4403 | 4404 |
4404 } } // namespace v8::internal | 4405 } } // namespace v8::internal |
4405 | 4406 |
4406 #endif // V8_OBJECTS_H_ | 4407 #endif // V8_OBJECTS_H_ |
OLD | NEW |