OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 // Internalized value (empty before internalized). | 238 // Internalized value (empty before internalized). |
239 Handle<Object> value_; | 239 Handle<Object> value_; |
240 }; | 240 }; |
241 | 241 |
242 | 242 |
243 // For generating constants. | 243 // For generating constants. |
244 #define STRING_CONSTANTS(F) \ | 244 #define STRING_CONSTANTS(F) \ |
245 F(anonymous_function, "(anonymous function)") \ | 245 F(anonymous_function, "(anonymous function)") \ |
246 F(arguments, "arguments") \ | 246 F(arguments, "arguments") \ |
247 F(concat_iterable_to_array, "$concatIterableToArray") \ | |
248 F(constructor, "constructor") \ | 247 F(constructor, "constructor") \ |
249 F(default, "default") \ | 248 F(default, "default") \ |
250 F(done, "done") \ | 249 F(done, "done") \ |
251 F(dot, ".") \ | 250 F(dot, ".") \ |
252 F(dot_for, ".for") \ | 251 F(dot_for, ".for") \ |
253 F(dot_generator, ".generator") \ | 252 F(dot_generator, ".generator") \ |
254 F(dot_generator_object, ".generator_object") \ | 253 F(dot_generator_object, ".generator_object") \ |
255 F(dot_iterator, ".iterator") \ | 254 F(dot_iterator, ".iterator") \ |
256 F(dot_module, ".module") \ | 255 F(dot_module, ".module") \ |
257 F(dot_result, ".result") \ | 256 F(dot_result, ".result") \ |
258 F(dot_switch_tag, ".switch_tag") \ | 257 F(dot_switch_tag, ".switch_tag") \ |
259 F(empty, "") \ | 258 F(empty, "") \ |
260 F(eval, "eval") \ | 259 F(eval, "eval") \ |
261 F(get_template_callsite, "$getTemplateCallSite") \ | |
262 F(initialize_const_global, "initializeConstGlobal") \ | |
263 F(initialize_var_global, "initializeVarGlobal") \ | |
264 F(is_construct_call, "_IsConstructCall") \ | |
265 F(is_spec_object, "_IsSpecObject") \ | |
266 F(let, "let") \ | 260 F(let, "let") \ |
267 F(native, "native") \ | 261 F(native, "native") \ |
268 F(new_target, ".new.target") \ | 262 F(new_target, ".new.target") \ |
269 F(next, "next") \ | 263 F(next, "next") \ |
270 F(proto, "__proto__") \ | 264 F(proto, "__proto__") \ |
271 F(prototype, "prototype") \ | 265 F(prototype, "prototype") \ |
272 F(reflect_apply, "$reflectApply") \ | |
273 F(reflect_construct, "$reflectConstruct") \ | |
274 F(spread_arguments, "$spreadArguments") \ | |
275 F(spread_iterable, "$spreadIterable") \ | |
276 F(this, "this") \ | 266 F(this, "this") \ |
277 F(this_function, ".this_function") \ | 267 F(this_function, ".this_function") \ |
278 F(throw_iterator_result_not_an_object, "ThrowIteratorResultNotAnObject") \ | |
279 F(to_string, "$toString") \ | |
280 F(undefined, "undefined") \ | 268 F(undefined, "undefined") \ |
281 F(use_asm, "use asm") \ | 269 F(use_asm, "use asm") \ |
282 F(use_strong, "use strong") \ | 270 F(use_strong, "use strong") \ |
283 F(use_strict, "use strict") \ | 271 F(use_strict, "use strict") \ |
284 F(value, "value") | 272 F(value, "value") |
285 | 273 |
286 #define OTHER_CONSTANTS(F) \ | 274 #define OTHER_CONSTANTS(F) \ |
287 F(true_value) \ | 275 F(true_value) \ |
288 F(false_value) \ | 276 F(false_value) \ |
289 F(null_value) \ | 277 F(null_value) \ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 #define F(name) AstValue* name##_; | 364 #define F(name) AstValue* name##_; |
377 OTHER_CONSTANTS(F) | 365 OTHER_CONSTANTS(F) |
378 #undef F | 366 #undef F |
379 }; | 367 }; |
380 } } // namespace v8::internal | 368 } } // namespace v8::internal |
381 | 369 |
382 #undef STRING_CONSTANTS | 370 #undef STRING_CONSTANTS |
383 #undef OTHER_CONSTANTS | 371 #undef OTHER_CONSTANTS |
384 | 372 |
385 #endif // V8_AST_VALUE_FACTORY_H_ | 373 #endif // V8_AST_VALUE_FACTORY_H_ |
OLD | NEW |