OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_HEAP_SYMBOLS_H_ | 5 #ifndef V8_HEAP_SYMBOLS_H_ |
6 #define V8_HEAP_SYMBOLS_H_ | 6 #define V8_HEAP_SYMBOLS_H_ |
7 | 7 |
8 #define INTERNALIZED_STRING_LIST(V) \ | 8 #define INTERNALIZED_STRING_LIST(V) \ |
9 V(anonymous_string, "anonymous") \ | 9 V(anonymous_string, "anonymous") \ |
10 V(apply_string, "apply") \ | 10 V(apply_string, "apply") \ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 V(promise_string, "promise") \ | 128 V(promise_string, "promise") \ |
129 V(proto_string, "__proto__") \ | 129 V(proto_string, "__proto__") \ |
130 V(prototype_string, "prototype") \ | 130 V(prototype_string, "prototype") \ |
131 V(Proxy_string, "Proxy") \ | 131 V(Proxy_string, "Proxy") \ |
132 V(query_colon_string, "(?:)") \ | 132 V(query_colon_string, "(?:)") \ |
133 V(RangeError_string, "RangeError") \ | 133 V(RangeError_string, "RangeError") \ |
134 V(ReferenceError_string, "ReferenceError") \ | 134 V(ReferenceError_string, "ReferenceError") \ |
135 V(RegExp_string, "RegExp") \ | 135 V(RegExp_string, "RegExp") \ |
136 V(reject_string, "reject") \ | 136 V(reject_string, "reject") \ |
137 V(resolve_string, "resolve") \ | 137 V(resolve_string, "resolve") \ |
| 138 V(return_string, "return") \ |
138 V(script_string, "script") \ | 139 V(script_string, "script") \ |
139 V(second_string, "second") \ | 140 V(second_string, "second") \ |
140 V(setPrototypeOf_string, "setPrototypeOf") \ | 141 V(setPrototypeOf_string, "setPrototypeOf") \ |
141 V(set_string, "set") \ | 142 V(set_string, "set") \ |
142 V(Set_string, "Set") \ | 143 V(Set_string, "Set") \ |
143 V(source_mapping_url_string, "source_mapping_url") \ | 144 V(source_mapping_url_string, "source_mapping_url") \ |
144 V(source_string, "source") \ | 145 V(source_string, "source") \ |
145 V(sourceText_string, "sourceText") \ | 146 V(sourceText_string, "sourceText") \ |
146 V(source_url_string, "source_url") \ | 147 V(source_url_string, "source_url") \ |
147 V(stack_string, "stack") \ | 148 V(stack_string, "stack") \ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 227 |
227 #define PUBLIC_SYMBOL_LIST(V) \ | 228 #define PUBLIC_SYMBOL_LIST(V) \ |
228 V(iterator_symbol, Symbol.iterator) \ | 229 V(iterator_symbol, Symbol.iterator) \ |
229 V(intl_fallback_symbol, IntlFallback) \ | 230 V(intl_fallback_symbol, IntlFallback) \ |
230 V(match_symbol, Symbol.match) \ | 231 V(match_symbol, Symbol.match) \ |
231 V(replace_symbol, Symbol.replace) \ | 232 V(replace_symbol, Symbol.replace) \ |
232 V(search_symbol, Symbol.search) \ | 233 V(search_symbol, Symbol.search) \ |
233 V(species_symbol, Symbol.species) \ | 234 V(species_symbol, Symbol.species) \ |
234 V(split_symbol, Symbol.split) \ | 235 V(split_symbol, Symbol.split) \ |
235 V(to_primitive_symbol, Symbol.toPrimitive) \ | 236 V(to_primitive_symbol, Symbol.toPrimitive) \ |
236 V(unscopables_symbol, Symbol.unscopables) | 237 V(unscopables_symbol, Symbol.unscopables) \ |
| 238 V(async_iterator_symbol, Symbol.asyncIterator) |
237 | 239 |
238 // Well-Known Symbols are "Public" symbols, which have a bit set which causes | 240 // Well-Known Symbols are "Public" symbols, which have a bit set which causes |
239 // them to produce an undefined value when a load results in a failed access | 241 // them to produce an undefined value when a load results in a failed access |
240 // check. Because this behaviour is not specified properly as of yet, it only | 242 // check. Because this behaviour is not specified properly as of yet, it only |
241 // applies to a subset of spec-defined Well-Known Symbols. | 243 // applies to a subset of spec-defined Well-Known Symbols. |
242 #define WELL_KNOWN_SYMBOL_LIST(V) \ | 244 #define WELL_KNOWN_SYMBOL_LIST(V) \ |
243 V(has_instance_symbol, Symbol.hasInstance) \ | 245 V(has_instance_symbol, Symbol.hasInstance) \ |
244 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ | 246 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ |
245 V(to_string_tag_symbol, Symbol.toStringTag) | 247 V(to_string_tag_symbol, Symbol.toStringTag) |
246 | 248 |
247 #endif // V8_HEAP_SYMBOLS_H_ | 249 #endif // V8_HEAP_SYMBOLS_H_ |
OLD | NEW |