Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: src/heap-symbols.h

Issue 2630343002: [Parser] Introduce AstStringConstants to share constants across AstValueFactory (Closed)
Patch Set: Fix test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast/ast-value-factory.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_function_string, "(anonymous function)") \
9 V(anonymous_string, "anonymous") \ 10 V(anonymous_string, "anonymous") \
10 V(apply_string, "apply") \ 11 V(apply_string, "apply") \
11 V(arguments_string, "arguments") \ 12 V(arguments_string, "arguments") \
12 V(Arguments_string, "Arguments") \ 13 V(Arguments_string, "Arguments") \
13 V(arguments_to_string, "[object Arguments]") \ 14 V(arguments_to_string, "[object Arguments]") \
14 V(Array_string, "Array") \ 15 V(Array_string, "Array") \
15 V(ArrayIterator_string, "Array Iterator") \ 16 V(ArrayIterator_string, "Array Iterator") \
16 V(assign_string, "assign") \ 17 V(assign_string, "assign") \
18 V(async_string, "async") \
19 V(await_string, "await") \
17 V(array_to_string, "[object Array]") \ 20 V(array_to_string, "[object Array]") \
18 V(boolean_to_string, "[object Boolean]") \ 21 V(boolean_to_string, "[object Boolean]") \
19 V(date_to_string, "[object Date]") \ 22 V(date_to_string, "[object Date]") \
20 V(error_to_string, "[object Error]") \ 23 V(error_to_string, "[object Error]") \
21 V(function_to_string, "[object Function]") \ 24 V(function_to_string, "[object Function]") \
22 V(number_to_string, "[object Number]") \ 25 V(number_to_string, "[object Number]") \
23 V(object_to_string, "[object Object]") \ 26 V(object_to_string, "[object Object]") \
24 V(regexp_to_string, "[object RegExp]") \ 27 V(regexp_to_string, "[object RegExp]") \
25 V(string_to_string, "[object String]") \ 28 V(string_to_string, "[object String]") \
26 V(bind_string, "bind") \ 29 V(bind_string, "bind") \
(...skipping 23 matching lines...) Expand all
50 V(create_string, "create") \ 53 V(create_string, "create") \
51 V(Date_string, "Date") \ 54 V(Date_string, "Date") \
52 V(dayperiod_string, "dayperiod") \ 55 V(dayperiod_string, "dayperiod") \
53 V(day_string, "day") \ 56 V(day_string, "day") \
54 V(default_string, "default") \ 57 V(default_string, "default") \
55 V(defineProperty_string, "defineProperty") \ 58 V(defineProperty_string, "defineProperty") \
56 V(deleteProperty_string, "deleteProperty") \ 59 V(deleteProperty_string, "deleteProperty") \
57 V(did_handle_string, "didHandle") \ 60 V(did_handle_string, "didHandle") \
58 V(display_name_string, "displayName") \ 61 V(display_name_string, "displayName") \
59 V(done_string, "done") \ 62 V(done_string, "done") \
63 V(dot_catch_string, ".catch") \
64 V(dot_for_string, ".for") \
65 V(dot_generator_object_string, ".generator_object") \
66 V(dot_iterator_string, ".iterator") \
60 V(dot_result_string, ".result") \ 67 V(dot_result_string, ".result") \
68 V(dot_switch_tag_string, ".switch_tag") \
61 V(dot_string, ".") \ 69 V(dot_string, ".") \
62 V(exec_string, "exec") \ 70 V(exec_string, "exec") \
63 V(entries_string, "entries") \ 71 V(entries_string, "entries") \
64 V(enqueue_string, "enqueue") \ 72 V(enqueue_string, "enqueue") \
65 V(enumerable_string, "enumerable") \ 73 V(enumerable_string, "enumerable") \
66 V(era_string, "era") \ 74 V(era_string, "era") \
67 V(Error_string, "Error") \ 75 V(Error_string, "Error") \
68 V(eval_string, "eval") \ 76 V(eval_string, "eval") \
69 V(EvalError_string, "EvalError") \ 77 V(EvalError_string, "EvalError") \
70 V(false_string, "false") \ 78 V(false_string, "false") \
71 V(flags_string, "flags") \ 79 V(flags_string, "flags") \
72 V(float32x4_string, "float32x4") \ 80 V(float32x4_string, "float32x4") \
73 V(Float32x4_string, "Float32x4") \ 81 V(Float32x4_string, "Float32x4") \
74 V(function_string, "function") \ 82 V(function_string, "function") \
75 V(Function_string, "Function") \ 83 V(Function_string, "Function") \
76 V(Generator_string, "Generator") \ 84 V(Generator_string, "Generator") \
77 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \ 85 V(getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor") \
78 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \ 86 V(getOwnPropertyDescriptors_string, "getOwnPropertyDescriptors") \
79 V(getPrototypeOf_string, "getPrototypeOf") \ 87 V(getPrototypeOf_string, "getPrototypeOf") \
80 V(get_string, "get") \ 88 V(get_string, "get") \
89 V(get_space_string, "get ") \
81 V(global_string, "global") \ 90 V(global_string, "global") \
82 V(has_string, "has") \ 91 V(has_string, "has") \
83 V(hour_string, "hour") \ 92 V(hour_string, "hour") \
84 V(ignoreCase_string, "ignoreCase") \ 93 V(ignoreCase_string, "ignoreCase") \
85 V(illegal_access_string, "illegal access") \ 94 V(illegal_access_string, "illegal access") \
86 V(illegal_argument_string, "illegal argument") \ 95 V(illegal_argument_string, "illegal argument") \
87 V(index_string, "index") \ 96 V(index_string, "index") \
88 V(infinity_string, "Infinity") \ 97 V(infinity_string, "Infinity") \
89 V(input_string, "input") \ 98 V(input_string, "input") \
90 V(int16x8_string, "int16x8") \ 99 V(int16x8_string, "int16x8") \
91 V(Int16x8_string, "Int16x8") \ 100 V(Int16x8_string, "Int16x8") \
92 V(int32x4_string, "int32x4") \ 101 V(int32x4_string, "int32x4") \
93 V(Int32x4_string, "Int32x4") \ 102 V(Int32x4_string, "Int32x4") \
94 V(int8x16_string, "int8x16") \ 103 V(int8x16_string, "int8x16") \
95 V(Int8x16_string, "Int8x16") \ 104 V(Int8x16_string, "Int8x16") \
96 V(isExtensible_string, "isExtensible") \ 105 V(isExtensible_string, "isExtensible") \
97 V(isView_string, "isView") \ 106 V(isView_string, "isView") \
98 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ 107 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \
99 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ 108 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \
100 V(keys_string, "keys") \ 109 V(keys_string, "keys") \
101 V(lastIndex_string, "lastIndex") \ 110 V(lastIndex_string, "lastIndex") \
102 V(length_string, "length") \ 111 V(length_string, "length") \
112 V(let_string, "let") \
103 V(line_string, "line") \ 113 V(line_string, "line") \
104 V(literal_string, "literal") \ 114 V(literal_string, "literal") \
105 V(Map_string, "Map") \ 115 V(Map_string, "Map") \
106 V(message_string, "message") \ 116 V(message_string, "message") \
107 V(minus_infinity_string, "-Infinity") \ 117 V(minus_infinity_string, "-Infinity") \
108 V(minus_zero_string, "-0") \ 118 V(minus_zero_string, "-0") \
109 V(minute_string, "minute") \ 119 V(minute_string, "minute") \
110 V(month_string, "month") \ 120 V(month_string, "month") \
111 V(multiline_string, "multiline") \ 121 V(multiline_string, "multiline") \
112 V(name_string, "name") \ 122 V(name_string, "name") \
123 V(native_string, "native") \
113 V(nan_string, "NaN") \ 124 V(nan_string, "NaN") \
125 V(new_target_string, ".new.target") \
114 V(next_string, "next") \ 126 V(next_string, "next") \
115 V(not_equal, "not-equal") \ 127 V(not_equal, "not-equal") \
116 V(null_string, "null") \ 128 V(null_string, "null") \
117 V(null_to_string, "[object Null]") \ 129 V(null_to_string, "[object Null]") \
118 V(number_string, "number") \ 130 V(number_string, "number") \
119 V(Number_string, "Number") \ 131 V(Number_string, "Number") \
120 V(object_string, "object") \ 132 V(object_string, "object") \
121 V(Object_string, "Object") \ 133 V(Object_string, "Object") \
122 V(ok, "ok") \ 134 V(ok, "ok") \
123 V(ownKeys_string, "ownKeys") \ 135 V(ownKeys_string, "ownKeys") \
124 V(position_string, "position") \ 136 V(position_string, "position") \
125 V(preventExtensions_string, "preventExtensions") \ 137 V(preventExtensions_string, "preventExtensions") \
126 V(Promise_string, "Promise") \ 138 V(Promise_string, "Promise") \
127 V(PromiseResolveThenableJob_string, "PromiseResolveThenableJob") \ 139 V(PromiseResolveThenableJob_string, "PromiseResolveThenableJob") \
128 V(promise_string, "promise") \ 140 V(promise_string, "promise") \
129 V(proto_string, "__proto__") \ 141 V(proto_string, "__proto__") \
130 V(prototype_string, "prototype") \ 142 V(prototype_string, "prototype") \
131 V(Proxy_string, "Proxy") \ 143 V(Proxy_string, "Proxy") \
132 V(query_colon_string, "(?:)") \ 144 V(query_colon_string, "(?:)") \
133 V(RangeError_string, "RangeError") \ 145 V(RangeError_string, "RangeError") \
134 V(ReferenceError_string, "ReferenceError") \ 146 V(ReferenceError_string, "ReferenceError") \
135 V(RegExp_string, "RegExp") \ 147 V(RegExp_string, "RegExp") \
136 V(reject_string, "reject") \ 148 V(reject_string, "reject") \
137 V(resolve_string, "resolve") \ 149 V(resolve_string, "resolve") \
150 V(return_string, "return") \
138 V(script_string, "script") \ 151 V(script_string, "script") \
139 V(second_string, "second") \ 152 V(second_string, "second") \
140 V(setPrototypeOf_string, "setPrototypeOf") \ 153 V(setPrototypeOf_string, "setPrototypeOf") \
154 V(set_space_string, "set ") \
141 V(set_string, "set") \ 155 V(set_string, "set") \
142 V(Set_string, "Set") \ 156 V(Set_string, "Set") \
143 V(source_mapping_url_string, "source_mapping_url") \ 157 V(source_mapping_url_string, "source_mapping_url") \
144 V(source_string, "source") \ 158 V(source_string, "source") \
145 V(sourceText_string, "sourceText") \ 159 V(sourceText_string, "sourceText") \
146 V(source_url_string, "source_url") \ 160 V(source_url_string, "source_url") \
147 V(stack_string, "stack") \ 161 V(stack_string, "stack") \
148 V(stackTraceLimit_string, "stackTraceLimit") \ 162 V(stackTraceLimit_string, "stackTraceLimit") \
163 V(star_default_star_string, "*default*") \
149 V(sticky_string, "sticky") \ 164 V(sticky_string, "sticky") \
150 V(strict_compare_ic_string, "===") \ 165 V(strict_compare_ic_string, "===") \
151 V(string_string, "string") \ 166 V(string_string, "string") \
152 V(String_string, "String") \ 167 V(String_string, "String") \
153 V(symbol_string, "symbol") \ 168 V(symbol_string, "symbol") \
154 V(Symbol_string, "Symbol") \ 169 V(Symbol_string, "Symbol") \
155 V(symbol_species_string, "[Symbol.species]") \ 170 V(symbol_species_string, "[Symbol.species]") \
156 V(SyntaxError_string, "SyntaxError") \ 171 V(SyntaxError_string, "SyntaxError") \
157 V(then_string, "then") \ 172 V(then_string, "then") \
173 V(this_function_string, ".this_function") \
158 V(this_string, "this") \ 174 V(this_string, "this") \
159 V(throw_string, "throw") \ 175 V(throw_string, "throw") \
160 V(timed_out, "timed-out") \ 176 V(timed_out, "timed-out") \
161 V(timeZoneName_string, "timeZoneName") \ 177 V(timeZoneName_string, "timeZoneName") \
162 V(toJSON_string, "toJSON") \ 178 V(toJSON_string, "toJSON") \
163 V(toString_string, "toString") \ 179 V(toString_string, "toString") \
164 V(true_string, "true") \ 180 V(true_string, "true") \
165 V(TypeError_string, "TypeError") \ 181 V(TypeError_string, "TypeError") \
166 V(type_string, "type") \ 182 V(type_string, "type") \
167 V(CompileError_string, "CompileError") \ 183 V(CompileError_string, "CompileError") \
168 V(LinkError_string, "LinkError") \ 184 V(LinkError_string, "LinkError") \
169 V(RuntimeError_string, "RuntimeError") \ 185 V(RuntimeError_string, "RuntimeError") \
170 V(uint16x8_string, "uint16x8") \ 186 V(uint16x8_string, "uint16x8") \
171 V(Uint16x8_string, "Uint16x8") \ 187 V(Uint16x8_string, "Uint16x8") \
172 V(uint32x4_string, "uint32x4") \ 188 V(uint32x4_string, "uint32x4") \
173 V(Uint32x4_string, "Uint32x4") \ 189 V(Uint32x4_string, "Uint32x4") \
174 V(uint8x16_string, "uint8x16") \ 190 V(uint8x16_string, "uint8x16") \
175 V(Uint8x16_string, "Uint8x16") \ 191 V(Uint8x16_string, "Uint8x16") \
176 V(undefined_string, "undefined") \ 192 V(undefined_string, "undefined") \
177 V(undefined_to_string, "[object Undefined]") \ 193 V(undefined_to_string, "[object Undefined]") \
178 V(unicode_string, "unicode") \ 194 V(unicode_string, "unicode") \
195 V(use_asm_string, "use asm") \
196 V(use_strict_string, "use strict") \
179 V(URIError_string, "URIError") \ 197 V(URIError_string, "URIError") \
180 V(valueOf_string, "valueOf") \ 198 V(valueOf_string, "valueOf") \
181 V(values_string, "values") \ 199 V(values_string, "values") \
182 V(value_string, "value") \ 200 V(value_string, "value") \
183 V(WeakMap_string, "WeakMap") \ 201 V(WeakMap_string, "WeakMap") \
184 V(WeakSet_string, "WeakSet") \ 202 V(WeakSet_string, "WeakSet") \
185 V(weekday_string, "weekday") \ 203 V(weekday_string, "weekday") \
186 V(will_handle_string, "willHandle") \ 204 V(will_handle_string, "willHandle") \
187 V(writable_string, "writable") \ 205 V(writable_string, "writable") \
188 V(year_string, "year") 206 V(year_string, "year")
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Well-Known Symbols are "Public" symbols, which have a bit set which causes 255 // Well-Known Symbols are "Public" symbols, which have a bit set which causes
238 // them to produce an undefined value when a load results in a failed access 256 // them to produce an undefined value when a load results in a failed access
239 // check. Because this behaviour is not specified properly as of yet, it only 257 // check. Because this behaviour is not specified properly as of yet, it only
240 // applies to a subset of spec-defined Well-Known Symbols. 258 // applies to a subset of spec-defined Well-Known Symbols.
241 #define WELL_KNOWN_SYMBOL_LIST(V) \ 259 #define WELL_KNOWN_SYMBOL_LIST(V) \
242 V(has_instance_symbol, Symbol.hasInstance) \ 260 V(has_instance_symbol, Symbol.hasInstance) \
243 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ 261 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \
244 V(to_string_tag_symbol, Symbol.toStringTag) 262 V(to_string_tag_symbol, Symbol.toStringTag)
245 263
246 #endif // V8_HEAP_SYMBOLS_H_ 264 #endif // V8_HEAP_SYMBOLS_H_
OLDNEW
« no previous file with comments | « src/ast/ast-value-factory.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698