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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 V(for_string, "for") \ | 68 V(for_string, "for") \ |
69 V(function_string, "function") \ | 69 V(function_string, "function") \ |
70 V(Function_string, "Function") \ | 70 V(Function_string, "Function") \ |
71 V(Generator_string, "Generator") \ | 71 V(Generator_string, "Generator") \ |
72 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \ | 72 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \ |
73 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \ | 73 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \ |
74 V(getPrototypeOf_string, "getPrototypeOf") \ | 74 V(getPrototypeOf_string, "getPrototypeOf") \ |
75 V(get_string, "get") \ | 75 V(get_string, "get") \ |
76 V(global_string, "global") \ | 76 V(global_string, "global") \ |
77 V(has_string, "has") \ | 77 V(has_string, "has") \ |
78 V(ignoreCase_string, "ignoreCase") \ | |
79 V(illegal_access_string, "illegal access") \ | 78 V(illegal_access_string, "illegal access") \ |
80 V(illegal_argument_string, "illegal argument") \ | 79 V(illegal_argument_string, "illegal argument") \ |
81 V(index_string, "index") \ | 80 V(index_string, "index") \ |
82 V(infinity_string, "Infinity") \ | 81 V(infinity_string, "Infinity") \ |
83 V(input_string, "input") \ | 82 V(input_string, "input") \ |
84 V(int16x8_string, "int16x8") \ | 83 V(int16x8_string, "int16x8") \ |
85 V(Int16x8_string, "Int16x8") \ | 84 V(Int16x8_string, "Int16x8") \ |
86 V(int32x4_string, "int32x4") \ | 85 V(int32x4_string, "int32x4") \ |
87 V(Int32x4_string, "Int32x4") \ | 86 V(Int32x4_string, "Int32x4") \ |
88 V(int8x16_string, "int8x16") \ | 87 V(int8x16_string, "int8x16") \ |
89 V(Int8x16_string, "Int8x16") \ | 88 V(Int8x16_string, "Int8x16") \ |
90 V(isExtensible_string, "isExtensible") \ | 89 V(isExtensible_string, "isExtensible") \ |
91 V(isView_string, "isView") \ | 90 V(isView_string, "isView") \ |
92 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 91 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
93 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 92 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
94 V(last_index_string, "lastIndex") \ | 93 V(last_index_string, "lastIndex") \ |
95 V(length_string, "length") \ | 94 V(length_string, "length") \ |
96 V(line_string, "line") \ | 95 V(line_string, "line") \ |
97 V(Map_string, "Map") \ | 96 V(Map_string, "Map") \ |
98 V(message_string, "message") \ | 97 V(message_string, "message") \ |
99 V(minus_infinity_string, "-Infinity") \ | 98 V(minus_infinity_string, "-Infinity") \ |
100 V(minus_zero_string, "-0") \ | 99 V(minus_zero_string, "-0") \ |
101 V(multiline_string, "multiline") \ | |
102 V(name_string, "name") \ | 100 V(name_string, "name") \ |
103 V(nan_string, "NaN") \ | 101 V(nan_string, "NaN") \ |
104 V(next_string, "next") \ | 102 V(next_string, "next") \ |
105 V(not_equal, "not-equal") \ | 103 V(not_equal, "not-equal") \ |
106 V(null_string, "null") \ | 104 V(null_string, "null") \ |
107 V(null_to_string, "[object Null]") \ | 105 V(null_to_string, "[object Null]") \ |
108 V(number_string, "number") \ | 106 V(number_string, "number") \ |
109 V(Number_string, "Number") \ | 107 V(Number_string, "Number") \ |
110 V(object_string, "object") \ | 108 V(object_string, "object") \ |
111 V(Object_string, "Object") \ | 109 V(Object_string, "Object") \ |
(...skipping 13 matching lines...) Expand all Loading... |
125 V(script_string, "script") \ | 123 V(script_string, "script") \ |
126 V(setPrototypeOf_string, "setPrototypeOf") \ | 124 V(setPrototypeOf_string, "setPrototypeOf") \ |
127 V(set_string, "set") \ | 125 V(set_string, "set") \ |
128 V(Set_string, "Set") \ | 126 V(Set_string, "Set") \ |
129 V(source_mapping_url_string, "source_mapping_url") \ | 127 V(source_mapping_url_string, "source_mapping_url") \ |
130 V(source_string, "source") \ | 128 V(source_string, "source") \ |
131 V(sourceText_string, "sourceText") \ | 129 V(sourceText_string, "sourceText") \ |
132 V(source_url_string, "source_url") \ | 130 V(source_url_string, "source_url") \ |
133 V(stack_string, "stack") \ | 131 V(stack_string, "stack") \ |
134 V(stackTraceLimit_string, "stackTraceLimit") \ | 132 V(stackTraceLimit_string, "stackTraceLimit") \ |
135 V(sticky_string, "sticky") \ | |
136 V(strict_compare_ic_string, "===") \ | 133 V(strict_compare_ic_string, "===") \ |
137 V(string_string, "string") \ | 134 V(string_string, "string") \ |
138 V(String_string, "String") \ | 135 V(String_string, "String") \ |
139 V(symbol_string, "symbol") \ | 136 V(symbol_string, "symbol") \ |
140 V(Symbol_string, "Symbol") \ | 137 V(Symbol_string, "Symbol") \ |
141 V(SyntaxError_string, "SyntaxError") \ | 138 V(SyntaxError_string, "SyntaxError") \ |
142 V(this_string, "this") \ | 139 V(this_string, "this") \ |
143 V(throw_string, "throw") \ | 140 V(throw_string, "throw") \ |
144 V(timed_out, "timed-out") \ | 141 V(timed_out, "timed-out") \ |
145 V(toJSON_string, "toJSON") \ | 142 V(toJSON_string, "toJSON") \ |
146 V(toString_string, "toString") \ | 143 V(toString_string, "toString") \ |
147 V(true_string, "true") \ | 144 V(true_string, "true") \ |
148 V(TypeError_string, "TypeError") \ | 145 V(TypeError_string, "TypeError") \ |
149 V(uint16x8_string, "uint16x8") \ | 146 V(uint16x8_string, "uint16x8") \ |
150 V(Uint16x8_string, "Uint16x8") \ | 147 V(Uint16x8_string, "Uint16x8") \ |
151 V(uint32x4_string, "uint32x4") \ | 148 V(uint32x4_string, "uint32x4") \ |
152 V(Uint32x4_string, "Uint32x4") \ | 149 V(Uint32x4_string, "Uint32x4") \ |
153 V(uint8x16_string, "uint8x16") \ | 150 V(uint8x16_string, "uint8x16") \ |
154 V(Uint8x16_string, "Uint8x16") \ | 151 V(Uint8x16_string, "Uint8x16") \ |
155 V(undefined_string, "undefined") \ | 152 V(undefined_string, "undefined") \ |
156 V(undefined_to_string, "[object Undefined]") \ | 153 V(undefined_to_string, "[object Undefined]") \ |
157 V(unicode_string, "unicode") \ | |
158 V(URIError_string, "URIError") \ | 154 V(URIError_string, "URIError") \ |
159 V(valueOf_string, "valueOf") \ | 155 V(valueOf_string, "valueOf") \ |
160 V(values_string, "values") \ | 156 V(values_string, "values") \ |
161 V(value_string, "value") \ | 157 V(value_string, "value") \ |
162 V(WeakMap_string, "WeakMap") \ | 158 V(WeakMap_string, "WeakMap") \ |
163 V(WeakSet_string, "WeakSet") \ | 159 V(WeakSet_string, "WeakSet") \ |
164 V(writable_string, "writable") | 160 V(writable_string, "writable") |
165 | 161 |
166 #define PRIVATE_SYMBOL_LIST(V) \ | 162 #define PRIVATE_SYMBOL_LIST(V) \ |
167 V(array_iteration_kind_symbol) \ | 163 V(array_iteration_kind_symbol) \ |
(...skipping 24 matching lines...) Expand all Loading... |
192 V(premonomorphic_symbol) \ | 188 V(premonomorphic_symbol) \ |
193 V(promise_combined_deferred_symbol) \ | 189 V(promise_combined_deferred_symbol) \ |
194 V(promise_debug_marker_symbol) \ | 190 V(promise_debug_marker_symbol) \ |
195 V(promise_deferred_reactions_symbol) \ | 191 V(promise_deferred_reactions_symbol) \ |
196 V(promise_fulfill_reactions_symbol) \ | 192 V(promise_fulfill_reactions_symbol) \ |
197 V(promise_has_handler_symbol) \ | 193 V(promise_has_handler_symbol) \ |
198 V(promise_raw_symbol) \ | 194 V(promise_raw_symbol) \ |
199 V(promise_reject_reactions_symbol) \ | 195 V(promise_reject_reactions_symbol) \ |
200 V(promise_result_symbol) \ | 196 V(promise_result_symbol) \ |
201 V(promise_state_symbol) \ | 197 V(promise_state_symbol) \ |
202 V(regexp_last_match_info_symbol) \ | |
203 V(sealed_symbol) \ | 198 V(sealed_symbol) \ |
204 V(stack_trace_symbol) \ | 199 V(stack_trace_symbol) \ |
205 V(strict_function_transition_symbol) \ | 200 V(strict_function_transition_symbol) \ |
206 V(string_iterator_iterated_string_symbol) \ | 201 V(string_iterator_iterated_string_symbol) \ |
207 V(string_iterator_next_index_symbol) \ | 202 V(string_iterator_next_index_symbol) \ |
208 V(uninitialized_symbol) | 203 V(uninitialized_symbol) |
209 | 204 |
210 #define PUBLIC_SYMBOL_LIST(V) \ | 205 #define PUBLIC_SYMBOL_LIST(V) \ |
211 V(iterator_symbol, Symbol.iterator) \ | 206 V(iterator_symbol, Symbol.iterator) \ |
212 V(match_symbol, Symbol.match) \ | 207 V(match_symbol, Symbol.match) \ |
213 V(replace_symbol, Symbol.replace) \ | 208 V(replace_symbol, Symbol.replace) \ |
214 V(search_symbol, Symbol.search) \ | 209 V(search_symbol, Symbol.search) \ |
215 V(species_symbol, Symbol.species) \ | 210 V(species_symbol, Symbol.species) \ |
216 V(split_symbol, Symbol.split) \ | 211 V(split_symbol, Symbol.split) \ |
217 V(to_primitive_symbol, Symbol.toPrimitive) \ | 212 V(to_primitive_symbol, Symbol.toPrimitive) \ |
218 V(unscopables_symbol, Symbol.unscopables) | 213 V(unscopables_symbol, Symbol.unscopables) |
219 | 214 |
220 // 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 |
221 // 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 |
222 // 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 |
223 // applies to a subset of spec-defined Well-Known Symbols. | 218 // applies to a subset of spec-defined Well-Known Symbols. |
224 #define WELL_KNOWN_SYMBOL_LIST(V) \ | 219 #define WELL_KNOWN_SYMBOL_LIST(V) \ |
225 V(has_instance_symbol, Symbol.hasInstance) \ | 220 V(has_instance_symbol, Symbol.hasInstance) \ |
226 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ | 221 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ |
227 V(to_string_tag_symbol, Symbol.toStringTag) | 222 V(to_string_tag_symbol, Symbol.toStringTag) |
228 | 223 |
229 #endif // V8_HEAP_SYMBOLS_H_ | 224 #endif // V8_HEAP_SYMBOLS_H_ |
OLD | NEW |