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

Side by Side Diff: src/ast-value-factory.h

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Oops. Created 5 years, 3 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
OLDNEW
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 ZoneList<const AstRawString*>* strings_; 234 ZoneList<const AstRawString*>* strings_;
235 const char* symbol_name_; 235 const char* symbol_name_;
236 }; 236 };
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(constructor, "constructor") \ 247 F(constructor, "constructor") \
248 F(default, "default") \ 248 F(default, "default") \
249 F(done, "done") \ 249 F(done, "done") \
250 F(dot, ".") \ 250 F(dot, ".") \
251 F(dot_for, ".for") \ 251 F(dot_for, ".for") \
252 F(dot_generator, ".generator") \ 252 F(dot_generator, ".generator") \
253 F(dot_generator_object, ".generator_object") \ 253 F(dot_generator_object, ".generator_object") \
254 F(dot_iterator, ".iterator") \ 254 F(dot_iterator, ".iterator") \
255 F(dot_module, ".module") \ 255 F(dot_module, ".module") \
256 F(dot_result, ".result") \ 256 F(dot_result, ".result") \
257 F(dot_switch_tag, ".switch_tag") \ 257 F(dot_switch_tag, ".switch_tag") \
258 F(empty, "") \ 258 F(empty, "") \
259 F(eval, "eval") \ 259 F(eval, "eval") \
260 F(let, "let") \ 260 F(let, "let") \
261 F(native, "native") \ 261 F(native, "native") \
262 F(new_target, ".new.target") \ 262 F(new_target, ".new.target") \
263 F(next, "next") \ 263 F(next, "next") \
264 F(proto, "__proto__") \ 264 F(proto, "__proto__") \
265 F(prototype, "prototype") \ 265 F(prototype, "prototype") \
266 F(this, "this") \ 266 F(rest_parameter, ".rest_parameter") \
267 F(this_function, ".this_function") \ 267 F(this, "this") \
268 F(undefined, "undefined") \ 268 F(this_function, ".this_function") \
269 F(use_asm, "use asm") \ 269 F(undefined, "undefined") \
270 F(use_strong, "use strong") \ 270 F(use_asm, "use asm") \
271 F(use_strict, "use strict") \ 271 F(use_strong, "use strong") \
272 F(use_strict, "use strict") \
272 F(value, "value") 273 F(value, "value")
273 274
274 #define OTHER_CONSTANTS(F) \ 275 #define OTHER_CONSTANTS(F) \
275 F(true_value) \ 276 F(true_value) \
276 F(false_value) \ 277 F(false_value) \
277 F(null_value) \ 278 F(null_value) \
278 F(undefined_value) \ 279 F(undefined_value) \
279 F(the_hole_value) 280 F(the_hole_value)
280 281
281 class AstValueFactory { 282 class AstValueFactory {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 #define F(name) AstValue* name##_; 365 #define F(name) AstValue* name##_;
365 OTHER_CONSTANTS(F) 366 OTHER_CONSTANTS(F)
366 #undef F 367 #undef F
367 }; 368 };
368 } } // namespace v8::internal 369 } } // namespace v8::internal
369 370
370 #undef STRING_CONSTANTS 371 #undef STRING_CONSTANTS
371 #undef OTHER_CONSTANTS 372 #undef OTHER_CONSTANTS
372 373
373 #endif // V8_AST_VALUE_FACTORY_H_ 374 #endif // V8_AST_VALUE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast-literal-reindexer.h ('k') | src/bailout-reason.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698