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

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

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ast.cc ('k') | src/compiler/ast-graph-builder.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 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 ZoneList<const AstRawString*>* strings_; 228 ZoneList<const AstRawString*>* strings_;
229 const char* symbol_name_; 229 const char* symbol_name_;
230 }; 230 };
231 231
232 // Internalized value (empty before internalized). 232 // Internalized value (empty before internalized).
233 Handle<Object> value_; 233 Handle<Object> value_;
234 }; 234 };
235 235
236 236
237 // For generating string constants. 237 // For generating string constants.
238 #define STRING_CONSTANTS(F) \ 238 #define STRING_CONSTANTS(F) \
239 F(anonymous_function, "(anonymous function)") \ 239 F(anonymous_function, "(anonymous function)") \
240 F(arguments, "arguments") \ 240 F(arguments, "arguments") \
241 F(done, "done") \ 241 F(constructor, "constructor") \
242 F(dot, ".") \ 242 F(done, "done") \
243 F(dot_for, ".for") \ 243 F(dot, ".") \
244 F(dot_generator, ".generator") \ 244 F(dot_for, ".for") \
245 F(dot_generator_object, ".generator_object") \ 245 F(dot_generator, ".generator") \
246 F(dot_iterator, ".iterator") \ 246 F(dot_generator_object, ".generator_object") \
247 F(dot_module, ".module") \ 247 F(dot_iterator, ".iterator") \
248 F(dot_result, ".result") \ 248 F(dot_module, ".module") \
249 F(empty, "") \ 249 F(dot_result, ".result") \
250 F(eval, "eval") \ 250 F(empty, "") \
251 F(eval, "eval") \
251 F(initialize_const_global, "initializeConstGlobal") \ 252 F(initialize_const_global, "initializeConstGlobal") \
252 F(initialize_var_global, "initializeVarGlobal") \ 253 F(initialize_var_global, "initializeVarGlobal") \
253 F(make_reference_error, "MakeReferenceError") \ 254 F(make_reference_error, "MakeReferenceError") \
254 F(make_syntax_error, "MakeSyntaxError") \ 255 F(make_syntax_error, "MakeSyntaxError") \
255 F(make_type_error, "MakeTypeError") \ 256 F(make_type_error, "MakeTypeError") \
256 F(module, "module") \ 257 F(module, "module") \
257 F(native, "native") \ 258 F(native, "native") \
258 F(next, "next") \ 259 F(next, "next") \
259 F(proto, "__proto__") \ 260 F(proto, "__proto__") \
260 F(prototype, "prototype") \ 261 F(prototype, "prototype") \
261 F(this, "this") \ 262 F(this, "this") \
262 F(use_asm, "use asm") \ 263 F(use_asm, "use asm") \
263 F(use_strict, "use strict") \ 264 F(use_strict, "use strict") \
264 F(value, "value") 265 F(value, "value")
265 266
266 267
267 class AstValueFactory { 268 class AstValueFactory {
268 public: 269 public:
269 AstValueFactory(Zone* zone, uint32_t hash_seed) 270 AstValueFactory(Zone* zone, uint32_t hash_seed)
270 : string_table_(AstRawString::Compare), 271 : string_table_(AstRawString::Compare),
271 zone_(zone), 272 zone_(zone),
272 isolate_(NULL), 273 isolate_(NULL),
273 hash_seed_(hash_seed) { 274 hash_seed_(hash_seed) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 const AstRawString* name##_string_; 336 const AstRawString* name##_string_;
336 STRING_CONSTANTS(F) 337 STRING_CONSTANTS(F)
337 #undef F 338 #undef F
338 }; 339 };
339 340
340 } } // namespace v8::internal 341 } } // namespace v8::internal
341 342
342 #undef STRING_CONSTANTS 343 #undef STRING_CONSTANTS
343 344
344 #endif // V8_AST_VALUE_FACTORY_H_ 345 #endif // V8_AST_VALUE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698