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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Internalized value (empty before internalized). | 229 // Internalized value (empty before internalized). |
230 Handle<Object> value_; | 230 Handle<Object> value_; |
231 }; | 231 }; |
232 | 232 |
233 | 233 |
234 // For generating constants. | 234 // For generating constants. |
235 #define STRING_CONSTANTS(F) \ | 235 #define STRING_CONSTANTS(F) \ |
236 F(anonymous_function, "(anonymous function)") \ | 236 F(anonymous_function, "(anonymous function)") \ |
237 F(arguments, "arguments") \ | 237 F(arguments, "arguments") \ |
238 F(constructor, "constructor") \ | 238 F(constructor, "constructor") \ |
| 239 F(default, "default") \ |
239 F(done, "done") \ | 240 F(done, "done") \ |
240 F(dot, ".") \ | 241 F(dot, ".") \ |
241 F(dot_for, ".for") \ | 242 F(dot_for, ".for") \ |
242 F(dot_generator, ".generator") \ | 243 F(dot_generator, ".generator") \ |
243 F(dot_generator_object, ".generator_object") \ | 244 F(dot_generator_object, ".generator_object") \ |
244 F(dot_iterator, ".iterator") \ | 245 F(dot_iterator, ".iterator") \ |
245 F(dot_module, ".module") \ | 246 F(dot_module, ".module") \ |
246 F(dot_result, ".result") \ | 247 F(dot_result, ".result") \ |
247 F(empty, "") \ | 248 F(empty, "") \ |
248 F(eval, "eval") \ | 249 F(eval, "eval") \ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 362 |
362 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const { | 363 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const { |
363 return ast_value_factory->arguments_string() == this; | 364 return ast_value_factory->arguments_string() == this; |
364 } | 365 } |
365 } } // namespace v8::internal | 366 } } // namespace v8::internal |
366 | 367 |
367 #undef STRING_CONSTANTS | 368 #undef STRING_CONSTANTS |
368 #undef OTHER_CONSTANTS | 369 #undef OTHER_CONSTANTS |
369 | 370 |
370 #endif // V8_AST_VALUE_FACTORY_H_ | 371 #endif // V8_AST_VALUE_FACTORY_H_ |
OLD | NEW |