OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_PROPERTY_DETAILS_H_ | 5 #ifndef V8_PROPERTY_DETAILS_H_ |
6 #define V8_PROPERTY_DETAILS_H_ | 6 #define V8_PROPERTY_DETAILS_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/utils.h" | 10 #include "src/utils.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 ALL_ATTRIBUTES_MASK = READ_ONLY | DONT_ENUM | DONT_DELETE, | 22 ALL_ATTRIBUTES_MASK = READ_ONLY | DONT_ENUM | DONT_DELETE, |
23 | 23 |
24 SEALED = DONT_DELETE, | 24 SEALED = DONT_DELETE, |
25 FROZEN = SEALED | READ_ONLY, | 25 FROZEN = SEALED | READ_ONLY, |
26 | 26 |
27 ABSENT = 64, // Used in runtime to indicate a property is absent. | 27 ABSENT = 64, // Used in runtime to indicate a property is absent. |
28 // ABSENT can never be stored in or returned from a descriptor's attributes | 28 // ABSENT can never be stored in or returned from a descriptor's attributes |
29 // bitfield. It is only used as a return value meaning the attributes of | 29 // bitfield. It is only used as a return value meaning the attributes of |
30 // a non-existent property. | 30 // a non-existent property. |
31 | |
32 // When creating a property, EVAL_DECLARED used to indicate that the property | |
33 // came from a sloppy-mode direct eval, and certain checks need to be done. | |
34 // Cannot be stored in or returned from a descriptor's attributes bitfield. | |
35 EVAL_DECLARED = 128 | |
36 }; | 31 }; |
37 | 32 |
38 | 33 |
39 enum PropertyFilter { | 34 enum PropertyFilter { |
40 ALL_PROPERTIES = 0, | 35 ALL_PROPERTIES = 0, |
41 ONLY_WRITABLE = 1, | 36 ONLY_WRITABLE = 1, |
42 ONLY_ENUMERABLE = 2, | 37 ONLY_ENUMERABLE = 2, |
43 ONLY_CONFIGURABLE = 4, | 38 ONLY_CONFIGURABLE = 4, |
44 SKIP_STRINGS = 8, | 39 SKIP_STRINGS = 8, |
45 SKIP_SYMBOLS = 16, | 40 SKIP_SYMBOLS = 16, |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 }; | 394 }; |
400 | 395 |
401 | 396 |
402 std::ostream& operator<<(std::ostream& os, | 397 std::ostream& operator<<(std::ostream& os, |
403 const PropertyAttributes& attributes); | 398 const PropertyAttributes& attributes); |
404 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); | 399 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); |
405 } // namespace internal | 400 } // namespace internal |
406 } // namespace v8 | 401 } // namespace v8 |
407 | 402 |
408 #endif // V8_PROPERTY_DETAILS_H_ | 403 #endif // V8_PROPERTY_DETAILS_H_ |
OLD | NEW |