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") \ |
11 V(assign_string, "assign") \ | |
12 V(arguments_string, "arguments") \ | 11 V(arguments_string, "arguments") \ |
13 V(Arguments_string, "Arguments") \ | 12 V(Arguments_string, "Arguments") \ |
| 13 V(arguments_to_string, "[object Arguments]") \ |
14 V(Array_string, "Array") \ | 14 V(Array_string, "Array") \ |
15 V(arguments_to_string, "[object Arguments]") \ | |
16 V(array_to_string, "[object Array]") \ | 15 V(array_to_string, "[object Array]") \ |
17 V(boolean_to_string, "[object Boolean]") \ | 16 V(assign_string, "assign") \ |
18 V(date_to_string, "[object Date]") \ | |
19 V(error_to_string, "[object Error]") \ | |
20 V(function_to_string, "[object Function]") \ | |
21 V(number_to_string, "[object Number]") \ | |
22 V(object_to_string, "[object Object]") \ | |
23 V(regexp_to_string, "[object RegExp]") \ | |
24 V(string_to_string, "[object String]") \ | |
25 V(bind_string, "bind") \ | 17 V(bind_string, "bind") \ |
26 V(bool16x8_string, "bool16x8") \ | 18 V(bool16x8_string, "bool16x8") \ |
27 V(Bool16x8_string, "Bool16x8") \ | 19 V(Bool16x8_string, "Bool16x8") \ |
28 V(bool32x4_string, "bool32x4") \ | 20 V(bool32x4_string, "bool32x4") \ |
29 V(Bool32x4_string, "Bool32x4") \ | 21 V(Bool32x4_string, "Bool32x4") \ |
30 V(bool8x16_string, "bool8x16") \ | 22 V(bool8x16_string, "bool8x16") \ |
31 V(Bool8x16_string, "Bool8x16") \ | 23 V(Bool8x16_string, "Bool8x16") \ |
32 V(boolean_string, "boolean") \ | 24 V(boolean_string, "boolean") \ |
33 V(Boolean_string, "Boolean") \ | 25 V(Boolean_string, "Boolean") \ |
| 26 V(boolean_to_string, "[object Boolean]") \ |
34 V(bound__string, "bound ") \ | 27 V(bound__string, "bound ") \ |
35 V(buffer_string, "buffer") \ | 28 V(buffer_string, "buffer") \ |
36 V(byte_length_string, "byteLength") \ | 29 V(byte_length_string, "byteLength") \ |
37 V(byte_offset_string, "byteOffset") \ | 30 V(byte_offset_string, "byteOffset") \ |
38 V(call_string, "call") \ | |
39 V(callee_string, "callee") \ | 31 V(callee_string, "callee") \ |
40 V(caller_string, "caller") \ | 32 V(caller_string, "caller") \ |
| 33 V(call_string, "call") \ |
41 V(cell_value_string, "%cell_value") \ | 34 V(cell_value_string, "%cell_value") \ |
42 V(char_at_string, "CharAt") \ | 35 V(char_at_string, "CharAt") \ |
43 V(closure_string, "(closure)") \ | 36 V(closure_string, "(closure)") \ |
44 V(column_string, "column") \ | 37 V(column_string, "column") \ |
45 V(compare_ic_string, "==") \ | 38 V(compare_ic_string, "==") \ |
46 V(configurable_string, "configurable") \ | 39 V(configurable_string, "configurable") \ |
47 V(constructor_string, "constructor") \ | 40 V(constructor_string, "constructor") \ |
48 V(construct_string, "construct") \ | 41 V(construct_string, "construct") \ |
49 V(create_string, "create") \ | 42 V(create_string, "create") \ |
50 V(Date_string, "Date") \ | 43 V(Date_string, "Date") \ |
| 44 V(date_to_string, "[object Date]") \ |
| 45 V(dayperiod_string, "dayperiod") \ |
| 46 V(day_string, "day") \ |
51 V(default_string, "default") \ | 47 V(default_string, "default") \ |
52 V(defineProperty_string, "defineProperty") \ | 48 V(defineProperty_string, "defineProperty") \ |
53 V(deleteProperty_string, "deleteProperty") \ | 49 V(deleteProperty_string, "deleteProperty") \ |
54 V(display_name_string, "displayName") \ | 50 V(display_name_string, "displayName") \ |
55 V(done_string, "done") \ | 51 V(done_string, "done") \ |
56 V(dot_result_string, ".result") \ | 52 V(dot_result_string, ".result") \ |
57 V(dot_string, ".") \ | 53 V(dot_string, ".") \ |
58 V(entries_string, "entries") \ | 54 V(entries_string, "entries") \ |
59 V(enumerable_string, "enumerable") \ | 55 V(enumerable_string, "enumerable") \ |
| 56 V(era_string, "era") \ |
60 V(Error_string, "Error") \ | 57 V(Error_string, "Error") \ |
| 58 V(error_to_string, "[object Error]") \ |
| 59 V(EvalError_string, "EvalError") \ |
61 V(eval_string, "eval") \ | 60 V(eval_string, "eval") \ |
62 V(EvalError_string, "EvalError") \ | |
63 V(false_string, "false") \ | 61 V(false_string, "false") \ |
64 V(float32x4_string, "float32x4") \ | 62 V(float32x4_string, "float32x4") \ |
65 V(Float32x4_string, "Float32x4") \ | 63 V(Float32x4_string, "Float32x4") \ |
66 V(for_api_string, "for_api") \ | 64 V(for_api_string, "for_api") \ |
67 V(for_string, "for") \ | 65 V(for_string, "for") \ |
68 V(function_string, "function") \ | 66 V(function_string, "function") \ |
69 V(Function_string, "Function") \ | 67 V(Function_string, "Function") \ |
| 68 V(function_to_string, "[object Function]") \ |
70 V(Generator_string, "Generator") \ | 69 V(Generator_string, "Generator") \ |
| 70 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \ |
71 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \ | 71 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \ |
72 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \ | |
73 V(getPrototypeOf_string, "getPrototypeOf") \ | 72 V(getPrototypeOf_string, "getPrototypeOf") \ |
74 V(get_string, "get") \ | 73 V(get_string, "get") \ |
75 V(global_string, "global") \ | 74 V(global_string, "global") \ |
76 V(has_string, "has") \ | 75 V(has_string, "has") \ |
| 76 V(hour_string, "hour") \ |
77 V(illegal_access_string, "illegal access") \ | 77 V(illegal_access_string, "illegal access") \ |
78 V(illegal_argument_string, "illegal argument") \ | 78 V(illegal_argument_string, "illegal argument") \ |
79 V(index_string, "index") \ | 79 V(index_string, "index") \ |
80 V(infinity_string, "Infinity") \ | 80 V(infinity_string, "Infinity") \ |
81 V(input_string, "input") \ | 81 V(input_string, "input") \ |
82 V(int16x8_string, "int16x8") \ | 82 V(int16x8_string, "int16x8") \ |
83 V(Int16x8_string, "Int16x8") \ | 83 V(Int16x8_string, "Int16x8") \ |
84 V(int32x4_string, "int32x4") \ | 84 V(int32x4_string, "int32x4") \ |
85 V(Int32x4_string, "Int32x4") \ | 85 V(Int32x4_string, "Int32x4") \ |
86 V(int8x16_string, "int8x16") \ | 86 V(int8x16_string, "int8x16") \ |
87 V(Int8x16_string, "Int8x16") \ | 87 V(Int8x16_string, "Int8x16") \ |
88 V(isExtensible_string, "isExtensible") \ | 88 V(isExtensible_string, "isExtensible") \ |
89 V(isView_string, "isView") \ | 89 V(isView_string, "isView") \ |
90 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 90 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
91 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 91 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
92 V(last_index_string, "lastIndex") \ | 92 V(last_index_string, "lastIndex") \ |
93 V(length_string, "length") \ | 93 V(length_string, "length") \ |
94 V(line_string, "line") \ | 94 V(line_string, "line") \ |
| 95 V(literal_string, "literal") \ |
95 V(Map_string, "Map") \ | 96 V(Map_string, "Map") \ |
96 V(message_string, "message") \ | 97 V(message_string, "message") \ |
97 V(minus_infinity_string, "-Infinity") \ | 98 V(minus_infinity_string, "-Infinity") \ |
98 V(minus_zero_string, "-0") \ | 99 V(minus_zero_string, "-0") \ |
| 100 V(minute_string, "minute") \ |
| 101 V(month_string, "month") \ |
99 V(name_string, "name") \ | 102 V(name_string, "name") \ |
100 V(nan_string, "NaN") \ | 103 V(nan_string, "NaN") \ |
101 V(next_string, "next") \ | 104 V(next_string, "next") \ |
102 V(not_equal, "not-equal") \ | 105 V(not_equal, "not-equal") \ |
103 V(null_string, "null") \ | 106 V(null_string, "null") \ |
104 V(null_to_string, "[object Null]") \ | 107 V(null_to_string, "[object Null]") \ |
105 V(number_string, "number") \ | 108 V(number_string, "number") \ |
106 V(Number_string, "Number") \ | 109 V(Number_string, "Number") \ |
| 110 V(number_to_string, "[object Number]") \ |
107 V(object_string, "object") \ | 111 V(object_string, "object") \ |
108 V(Object_string, "Object") \ | 112 V(Object_string, "Object") \ |
| 113 V(object_to_string, "[object Object]") \ |
109 V(ok, "ok") \ | 114 V(ok, "ok") \ |
110 V(ownKeys_string, "ownKeys") \ | 115 V(ownKeys_string, "ownKeys") \ |
111 V(position_string, "position") \ | 116 V(position_string, "position") \ |
112 V(preventExtensions_string, "preventExtensions") \ | 117 V(preventExtensions_string, "preventExtensions") \ |
113 V(private_api_string, "private_api") \ | 118 V(private_api_string, "private_api") \ |
114 V(Promise_string, "Promise") \ | 119 V(Promise_string, "Promise") \ |
115 V(proto_string, "__proto__") \ | 120 V(proto_string, "__proto__") \ |
116 V(prototype_string, "prototype") \ | 121 V(prototype_string, "prototype") \ |
117 V(Proxy_string, "Proxy") \ | 122 V(Proxy_string, "Proxy") \ |
118 V(query_colon_string, "(?:)") \ | 123 V(query_colon_string, "(?:)") \ |
119 V(RangeError_string, "RangeError") \ | 124 V(RangeError_string, "RangeError") \ |
120 V(ReferenceError_string, "ReferenceError") \ | 125 V(ReferenceError_string, "ReferenceError") \ |
121 V(RegExp_string, "RegExp") \ | 126 V(RegExp_string, "RegExp") \ |
| 127 V(regexp_to_string, "[object RegExp]") \ |
122 V(script_string, "script") \ | 128 V(script_string, "script") \ |
| 129 V(second_string, "second") \ |
123 V(setPrototypeOf_string, "setPrototypeOf") \ | 130 V(setPrototypeOf_string, "setPrototypeOf") \ |
124 V(set_string, "set") \ | 131 V(set_string, "set") \ |
125 V(Set_string, "Set") \ | 132 V(Set_string, "Set") \ |
126 V(source_mapping_url_string, "source_mapping_url") \ | 133 V(source_mapping_url_string, "source_mapping_url") \ |
127 V(source_string, "source") \ | 134 V(source_string, "source") \ |
128 V(sourceText_string, "sourceText") \ | 135 V(sourceText_string, "sourceText") \ |
129 V(source_url_string, "source_url") \ | 136 V(source_url_string, "source_url") \ |
130 V(stack_string, "stack") \ | 137 V(stack_string, "stack") \ |
131 V(strict_compare_ic_string, "===") \ | 138 V(strict_compare_ic_string, "===") \ |
132 V(string_string, "string") \ | 139 V(string_string, "string") \ |
133 V(String_string, "String") \ | 140 V(String_string, "String") \ |
| 141 V(string_to_string, "[object String]") \ |
134 V(symbol_string, "symbol") \ | 142 V(symbol_string, "symbol") \ |
135 V(Symbol_string, "Symbol") \ | 143 V(Symbol_string, "Symbol") \ |
136 V(SyntaxError_string, "SyntaxError") \ | 144 V(SyntaxError_string, "SyntaxError") \ |
137 V(this_string, "this") \ | 145 V(this_string, "this") \ |
138 V(throw_string, "throw") \ | 146 V(throw_string, "throw") \ |
139 V(timed_out, "timed-out") \ | 147 V(timed_out, "timed-out") \ |
| 148 V(timeZoneName_string, "timeZoneName") \ |
140 V(toJSON_string, "toJSON") \ | 149 V(toJSON_string, "toJSON") \ |
141 V(toString_string, "toString") \ | 150 V(toString_string, "toString") \ |
142 V(true_string, "true") \ | 151 V(true_string, "true") \ |
143 V(TypeError_string, "TypeError") \ | 152 V(TypeError_string, "TypeError") \ |
| 153 V(type_string, "type") \ |
144 V(uint16x8_string, "uint16x8") \ | 154 V(uint16x8_string, "uint16x8") \ |
145 V(Uint16x8_string, "Uint16x8") \ | 155 V(Uint16x8_string, "Uint16x8") \ |
146 V(uint32x4_string, "uint32x4") \ | 156 V(uint32x4_string, "uint32x4") \ |
147 V(Uint32x4_string, "Uint32x4") \ | 157 V(Uint32x4_string, "Uint32x4") \ |
148 V(uint8x16_string, "uint8x16") \ | 158 V(uint8x16_string, "uint8x16") \ |
149 V(Uint8x16_string, "Uint8x16") \ | 159 V(Uint8x16_string, "Uint8x16") \ |
150 V(undefined_string, "undefined") \ | 160 V(undefined_string, "undefined") \ |
151 V(undefined_to_string, "[object Undefined]") \ | 161 V(undefined_to_string, "[object Undefined]") \ |
152 V(URIError_string, "URIError") \ | 162 V(URIError_string, "URIError") \ |
153 V(valueOf_string, "valueOf") \ | 163 V(valueOf_string, "valueOf") \ |
154 V(values_string, "values") \ | 164 V(values_string, "values") \ |
155 V(value_string, "value") \ | 165 V(value_string, "value") \ |
156 V(WeakMap_string, "WeakMap") \ | 166 V(WeakMap_string, "WeakMap") \ |
157 V(WeakSet_string, "WeakSet") \ | 167 V(WeakSet_string, "WeakSet") \ |
158 V(writable_string, "writable") | 168 V(weekday_string, "weekday") \ |
| 169 V(writable_string, "writable") \ |
| 170 V(year_string, "year") |
159 | 171 |
160 #define PRIVATE_SYMBOL_LIST(V) \ | 172 #define PRIVATE_SYMBOL_LIST(V) \ |
161 V(array_iteration_kind_symbol) \ | 173 V(array_iteration_kind_symbol) \ |
162 V(array_iterator_next_symbol) \ | 174 V(array_iterator_next_symbol) \ |
163 V(array_iterator_object_symbol) \ | 175 V(array_iterator_object_symbol) \ |
164 V(call_site_constructor_symbol) \ | 176 V(call_site_constructor_symbol) \ |
165 V(call_site_function_symbol) \ | 177 V(call_site_function_symbol) \ |
166 V(call_site_position_symbol) \ | 178 V(call_site_position_symbol) \ |
167 V(call_site_receiver_symbol) \ | 179 V(call_site_receiver_symbol) \ |
168 V(call_site_strict_symbol) \ | 180 V(call_site_strict_symbol) \ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Well-Known Symbols are "Public" symbols, which have a bit set which causes | 230 // Well-Known Symbols are "Public" symbols, which have a bit set which causes |
219 // them to produce an undefined value when a load results in a failed access | 231 // them to produce an undefined value when a load results in a failed access |
220 // check. Because this behaviour is not specified properly as of yet, it only | 232 // check. Because this behaviour is not specified properly as of yet, it only |
221 // applies to a subset of spec-defined Well-Known Symbols. | 233 // applies to a subset of spec-defined Well-Known Symbols. |
222 #define WELL_KNOWN_SYMBOL_LIST(V) \ | 234 #define WELL_KNOWN_SYMBOL_LIST(V) \ |
223 V(has_instance_symbol, Symbol.hasInstance) \ | 235 V(has_instance_symbol, Symbol.hasInstance) \ |
224 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ | 236 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ |
225 V(to_string_tag_symbol, Symbol.toStringTag) | 237 V(to_string_tag_symbol, Symbol.toStringTag) |
226 | 238 |
227 #endif // V8_HEAP_SYMBOLS_H_ | 239 #endif // V8_HEAP_SYMBOLS_H_ |
OLD | NEW |