| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 V(megamorphic_symbol) \ | 159 V(megamorphic_symbol) \ |
| 160 V(native_context_index_symbol) \ | 160 V(native_context_index_symbol) \ |
| 161 V(nonexistent_symbol) \ | 161 V(nonexistent_symbol) \ |
| 162 V(nonextensible_symbol) \ | 162 V(nonextensible_symbol) \ |
| 163 V(normal_ic_symbol) \ | 163 V(normal_ic_symbol) \ |
| 164 V(not_mapped_symbol) \ | 164 V(not_mapped_symbol) \ |
| 165 V(premonomorphic_symbol) \ | 165 V(premonomorphic_symbol) \ |
| 166 V(promise_combined_deferred_symbol) \ | 166 V(promise_combined_deferred_symbol) \ |
| 167 V(promise_debug_marker_symbol) \ | 167 V(promise_debug_marker_symbol) \ |
| 168 V(promise_has_handler_symbol) \ | 168 V(promise_has_handler_symbol) \ |
| 169 V(promise_on_resolve_symbol) \ | 169 V(promise_fulfill_reactions_symbol) \ |
| 170 V(promise_on_reject_symbol) \ | 170 V(promise_reject_reactions_symbol) \ |
| 171 V(promise_raw_symbol) \ | 171 V(promise_raw_symbol) \ |
| 172 V(promise_status_symbol) \ | 172 V(promise_state_symbol) \ |
| 173 V(promise_value_symbol) \ | 173 V(promise_result_symbol) \ |
| 174 V(sealed_symbol) \ | 174 V(sealed_symbol) \ |
| 175 V(stack_trace_symbol) \ | 175 V(stack_trace_symbol) \ |
| 176 V(strict_function_transition_symbol) \ | 176 V(strict_function_transition_symbol) \ |
| 177 V(string_iterator_iterated_string_symbol) \ | 177 V(string_iterator_iterated_string_symbol) \ |
| 178 V(string_iterator_next_index_symbol) \ | 178 V(string_iterator_next_index_symbol) \ |
| 179 V(uninitialized_symbol) | 179 V(uninitialized_symbol) |
| 180 | 180 |
| 181 #define PUBLIC_SYMBOL_LIST(V) \ | 181 #define PUBLIC_SYMBOL_LIST(V) \ |
| 182 V(iterator_symbol, Symbol.iterator) \ | 182 V(iterator_symbol, Symbol.iterator) \ |
| 183 V(match_symbol, Symbol.match) \ | 183 V(match_symbol, Symbol.match) \ |
| 184 V(replace_symbol, Symbol.replace) \ | 184 V(replace_symbol, Symbol.replace) \ |
| 185 V(search_symbol, Symbol.search) \ | 185 V(search_symbol, Symbol.search) \ |
| 186 V(species_symbol, Symbol.species) \ | 186 V(species_symbol, Symbol.species) \ |
| 187 V(split_symbol, Symbol.split) \ | 187 V(split_symbol, Symbol.split) \ |
| 188 V(to_primitive_symbol, Symbol.toPrimitive) \ | 188 V(to_primitive_symbol, Symbol.toPrimitive) \ |
| 189 V(unscopables_symbol, Symbol.unscopables) | 189 V(unscopables_symbol, Symbol.unscopables) |
| 190 | 190 |
| 191 // Well-Known Symbols are "Public" symbols, which have a bit set which causes | 191 // Well-Known Symbols are "Public" symbols, which have a bit set which causes |
| 192 // them to produce an undefined value when a load results in a failed access | 192 // them to produce an undefined value when a load results in a failed access |
| 193 // check. Because this behaviour is not specified properly as of yet, it only | 193 // check. Because this behaviour is not specified properly as of yet, it only |
| 194 // applies to a subset of spec-defined Well-Known Symbols. | 194 // applies to a subset of spec-defined Well-Known Symbols. |
| 195 #define WELL_KNOWN_SYMBOL_LIST(V) \ | 195 #define WELL_KNOWN_SYMBOL_LIST(V) \ |
| 196 V(has_instance_symbol, Symbol.hasInstance) \ | 196 V(has_instance_symbol, Symbol.hasInstance) \ |
| 197 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ | 197 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ |
| 198 V(to_string_tag_symbol, Symbol.toStringTag) | 198 V(to_string_tag_symbol, Symbol.toStringTag) |
| 199 | 199 |
| 200 #endif // V8_HEAP_SYMBOLS_H_ | 200 #endif // V8_HEAP_SYMBOLS_H_ |
| OLD | NEW |