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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 F(dot_generator, ".generator") \ | 242 F(dot_generator, ".generator") \ |
243 F(dot_generator_object, ".generator_object") \ | 243 F(dot_generator_object, ".generator_object") \ |
244 F(dot_iterator, ".iterator") \ | 244 F(dot_iterator, ".iterator") \ |
245 F(dot_module, ".module") \ | 245 F(dot_module, ".module") \ |
246 F(dot_result, ".result") \ | 246 F(dot_result, ".result") \ |
247 F(empty, "") \ | 247 F(empty, "") \ |
248 F(eval, "eval") \ | 248 F(eval, "eval") \ |
249 F(get_template_callsite, "GetTemplateCallSite") \ | 249 F(get_template_callsite, "GetTemplateCallSite") \ |
250 F(initialize_const_global, "initializeConstGlobal") \ | 250 F(initialize_const_global, "initializeConstGlobal") \ |
251 F(initialize_var_global, "initializeVarGlobal") \ | 251 F(initialize_var_global, "initializeVarGlobal") \ |
| 252 F(is_construct_call, "_IsConstructCall") \ |
252 F(let, "let") \ | 253 F(let, "let") \ |
253 F(make_reference_error, "MakeReferenceErrorEmbedded") \ | 254 F(make_reference_error, "MakeReferenceErrorEmbedded") \ |
254 F(make_syntax_error, "MakeSyntaxErrorEmbedded") \ | 255 F(make_syntax_error, "MakeSyntaxErrorEmbedded") \ |
255 F(make_type_error, "MakeTypeErrorEmbedded") \ | 256 F(make_type_error, "MakeTypeErrorEmbedded") \ |
256 F(native, "native") \ | 257 F(native, "native") \ |
| 258 F(new_target, "new.target") \ |
257 F(next, "next") \ | 259 F(next, "next") \ |
258 F(proto, "__proto__") \ | 260 F(proto, "__proto__") \ |
259 F(prototype, "prototype") \ | 261 F(prototype, "prototype") \ |
260 F(this, "this") \ | 262 F(this, "this") \ |
261 F(use_asm, "use asm") \ | 263 F(use_asm, "use asm") \ |
262 F(use_strong, "use strong") \ | 264 F(use_strong, "use strong") \ |
263 F(use_strict, "use strict") \ | 265 F(use_strict, "use strict") \ |
264 F(value, "value") \ | 266 F(value, "value") |
265 F(is_construct_call, "_IsConstructCall") | |
266 | 267 |
267 #define OTHER_CONSTANTS(F) \ | 268 #define OTHER_CONSTANTS(F) \ |
268 F(true_value) \ | 269 F(true_value) \ |
269 F(false_value) \ | 270 F(false_value) \ |
270 F(null_value) \ | 271 F(null_value) \ |
271 F(undefined_value) \ | 272 F(undefined_value) \ |
272 F(the_hole_value) | 273 F(the_hole_value) |
273 | 274 |
274 class AstValueFactory { | 275 class AstValueFactory { |
275 public: | 276 public: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 361 |
361 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const { | 362 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const { |
362 return ast_value_factory->arguments_string() == this; | 363 return ast_value_factory->arguments_string() == this; |
363 } | 364 } |
364 } } // namespace v8::internal | 365 } } // namespace v8::internal |
365 | 366 |
366 #undef STRING_CONSTANTS | 367 #undef STRING_CONSTANTS |
367 #undef OTHER_CONSTANTS | 368 #undef OTHER_CONSTANTS |
368 | 369 |
369 #endif // V8_AST_VALUE_FACTORY_H_ | 370 #endif // V8_AST_VALUE_FACTORY_H_ |
OLD | NEW |