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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 V(undefined_string, "undefined") \ | 151 V(undefined_string, "undefined") \ |
152 V(undefined_to_string, "[object Undefined]") \ | 152 V(undefined_to_string, "[object Undefined]") \ |
153 V(URIError_string, "URIError") \ | 153 V(URIError_string, "URIError") \ |
154 V(valueOf_string, "valueOf") \ | 154 V(valueOf_string, "valueOf") \ |
155 V(values_string, "values") \ | 155 V(values_string, "values") \ |
156 V(value_string, "value") \ | 156 V(value_string, "value") \ |
157 V(WeakMap_string, "WeakMap") \ | 157 V(WeakMap_string, "WeakMap") \ |
158 V(WeakSet_string, "WeakSet") \ | 158 V(WeakSet_string, "WeakSet") \ |
159 V(writable_string, "writable") | 159 V(writable_string, "writable") |
160 | 160 |
161 #define PRIVATE_SYMBOL_LIST(V) \ | 161 #define PRIVATE_SYMBOL_LIST(V) \ |
162 V(array_iteration_kind_symbol) \ | 162 V(array_iteration_kind_symbol) \ |
163 V(array_iterator_next_symbol) \ | 163 V(array_iterator_next_symbol) \ |
164 V(array_iterator_object_symbol) \ | 164 V(array_iterator_object_symbol) \ |
165 V(call_site_frame_array_symbol) \ | 165 V(call_site_frame_array_symbol) \ |
166 V(call_site_frame_index_symbol) \ | 166 V(call_site_frame_index_symbol) \ |
167 V(class_end_position_symbol) \ | 167 V(class_end_position_symbol) \ |
168 V(class_start_position_symbol) \ | 168 V(class_start_position_symbol) \ |
169 V(detailed_stack_trace_symbol) \ | 169 V(detailed_stack_trace_symbol) \ |
170 V(elements_transition_symbol) \ | 170 V(elements_transition_symbol) \ |
171 V(error_end_pos_symbol) \ | 171 V(error_end_pos_symbol) \ |
172 V(error_script_symbol) \ | 172 V(error_script_symbol) \ |
173 V(error_start_pos_symbol) \ | 173 V(error_start_pos_symbol) \ |
174 V(frozen_symbol) \ | 174 V(frozen_symbol) \ |
175 V(hash_code_symbol) \ | 175 V(hash_code_symbol) \ |
176 V(home_object_symbol) \ | 176 V(home_object_symbol) \ |
177 V(intl_impl_object_symbol) \ | 177 V(intl_impl_object_symbol) \ |
178 V(intl_initialized_marker_symbol) \ | 178 V(intl_initialized_marker_symbol) \ |
179 V(intl_pattern_symbol) \ | 179 V(intl_pattern_symbol) \ |
180 V(intl_resolved_symbol) \ | 180 V(intl_resolved_symbol) \ |
181 V(megamorphic_symbol) \ | 181 V(megamorphic_symbol) \ |
182 V(native_context_index_symbol) \ | 182 V(native_context_index_symbol) \ |
183 V(nonexistent_symbol) \ | 183 V(nonexistent_symbol) \ |
184 V(nonextensible_symbol) \ | 184 V(nonextensible_symbol) \ |
185 V(normal_ic_symbol) \ | 185 V(normal_ic_symbol) \ |
186 V(not_mapped_symbol) \ | 186 V(not_mapped_symbol) \ |
187 V(premonomorphic_symbol) \ | 187 V(premonomorphic_symbol) \ |
188 V(promise_combined_deferred_symbol) \ | 188 V(promise_combined_deferred_symbol) \ |
189 V(promise_debug_marker_symbol) \ | 189 V(promise_debug_marker_symbol) \ |
190 V(promise_deferred_reactions_symbol) \ | 190 V(promise_deferred_reactions_symbol) \ |
191 V(promise_fulfill_reactions_symbol) \ | 191 V(promise_fulfill_reactions_symbol) \ |
192 V(promise_has_handler_symbol) \ | 192 V(promise_has_handler_symbol) \ |
193 V(promise_raw_symbol) \ | 193 V(promise_raw_symbol) \ |
194 V(promise_reject_reactions_symbol) \ | 194 V(promise_reject_reactions_symbol) \ |
195 V(promise_result_symbol) \ | 195 V(promise_result_symbol) \ |
196 V(promise_state_symbol) \ | 196 V(promise_state_symbol) \ |
197 V(sealed_symbol) \ | 197 V(promise_resolving_function_called_symbol) \ |
Dan Ehrenberg
2016/08/30 22:29:28
Naming suggestion: promise_already_resolved_symbol
| |
198 V(stack_trace_symbol) \ | 198 V(sealed_symbol) \ |
199 V(strict_function_transition_symbol) \ | 199 V(stack_trace_symbol) \ |
200 V(string_iterator_iterated_string_symbol) \ | 200 V(strict_function_transition_symbol) \ |
201 V(string_iterator_next_index_symbol) \ | 201 V(string_iterator_iterated_string_symbol) \ |
202 V(string_iterator_next_index_symbol) \ | |
202 V(uninitialized_symbol) | 203 V(uninitialized_symbol) |
203 | 204 |
204 #define PUBLIC_SYMBOL_LIST(V) \ | 205 #define PUBLIC_SYMBOL_LIST(V) \ |
205 V(iterator_symbol, Symbol.iterator) \ | 206 V(iterator_symbol, Symbol.iterator) \ |
206 V(match_symbol, Symbol.match) \ | 207 V(match_symbol, Symbol.match) \ |
207 V(replace_symbol, Symbol.replace) \ | 208 V(replace_symbol, Symbol.replace) \ |
208 V(search_symbol, Symbol.search) \ | 209 V(search_symbol, Symbol.search) \ |
209 V(species_symbol, Symbol.species) \ | 210 V(species_symbol, Symbol.species) \ |
210 V(split_symbol, Symbol.split) \ | 211 V(split_symbol, Symbol.split) \ |
211 V(to_primitive_symbol, Symbol.toPrimitive) \ | 212 V(to_primitive_symbol, Symbol.toPrimitive) \ |
212 V(unscopables_symbol, Symbol.unscopables) | 213 V(unscopables_symbol, Symbol.unscopables) |
213 | 214 |
214 // Well-Known Symbols are "Public" symbols, which have a bit set which causes | 215 // Well-Known Symbols are "Public" symbols, which have a bit set which causes |
215 // them to produce an undefined value when a load results in a failed access | 216 // them to produce an undefined value when a load results in a failed access |
216 // check. Because this behaviour is not specified properly as of yet, it only | 217 // check. Because this behaviour is not specified properly as of yet, it only |
217 // applies to a subset of spec-defined Well-Known Symbols. | 218 // applies to a subset of spec-defined Well-Known Symbols. |
218 #define WELL_KNOWN_SYMBOL_LIST(V) \ | 219 #define WELL_KNOWN_SYMBOL_LIST(V) \ |
219 V(has_instance_symbol, Symbol.hasInstance) \ | 220 V(has_instance_symbol, Symbol.hasInstance) \ |
220 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ | 221 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ |
221 V(to_string_tag_symbol, Symbol.toStringTag) | 222 V(to_string_tag_symbol, Symbol.toStringTag) |
222 | 223 |
223 #endif // V8_HEAP_SYMBOLS_H_ | 224 #endif // V8_HEAP_SYMBOLS_H_ |
OLD | NEW |