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