OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 20 matching lines...) Expand all Loading... |
31 #include "../include/v8.h" | 31 #include "../include/v8.h" |
32 #include "allocation.h" | 32 #include "allocation.h" |
33 #include "utils.h" | 33 #include "utils.h" |
34 | 34 |
35 // Ecma-262 3rd 8.6.1 | 35 // Ecma-262 3rd 8.6.1 |
36 enum PropertyAttributes { | 36 enum PropertyAttributes { |
37 NONE = v8::None, | 37 NONE = v8::None, |
38 READ_ONLY = v8::ReadOnly, | 38 READ_ONLY = v8::ReadOnly, |
39 DONT_ENUM = v8::DontEnum, | 39 DONT_ENUM = v8::DontEnum, |
40 DONT_DELETE = v8::DontDelete, | 40 DONT_DELETE = v8::DontDelete, |
| 41 |
| 42 SEALED = DONT_ENUM | DONT_DELETE, |
| 43 FROZEN = SEALED | READ_ONLY, |
| 44 |
41 ABSENT = 16 // Used in runtime to indicate a property is absent. | 45 ABSENT = 16 // Used in runtime to indicate a property is absent. |
42 // ABSENT can never be stored in or returned from a descriptor's attributes | 46 // ABSENT can never be stored in or returned from a descriptor's attributes |
43 // bitfield. It is only used as a return value meaning the attributes of | 47 // bitfield. It is only used as a return value meaning the attributes of |
44 // a non-existent property. | 48 // a non-existent property. |
45 }; | 49 }; |
46 | 50 |
47 | 51 |
48 namespace v8 { | 52 namespace v8 { |
49 namespace internal { | 53 namespace internal { |
50 | 54 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 PropertyDetails(int value, int pointer) { | 138 PropertyDetails(int value, int pointer) { |
135 value_ = DescriptorPointer::update(value, pointer); | 139 value_ = DescriptorPointer::update(value, pointer); |
136 } | 140 } |
137 | 141 |
138 uint32_t value_; | 142 uint32_t value_; |
139 }; | 143 }; |
140 | 144 |
141 } } // namespace v8::internal | 145 } } // namespace v8::internal |
142 | 146 |
143 #endif // V8_PROPERTY_DETAILS_H_ | 147 #endif // V8_PROPERTY_DETAILS_H_ |
OLD | NEW |