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

Side by Side Diff: src/ast/ast.h

Issue 2606833002: [ESnext] Implement Object spread (Closed)
Patch Set: fix test Created 3 years, 11 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
« no previous file with comments | « no previous file | src/ast/ast.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/ast/ast-types.h" 9 #include "src/ast/ast-types.h"
10 #include "src/ast/ast-value-factory.h" 10 #include "src/ast/ast-value-factory.h"
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 // Property is used for passing information 1352 // Property is used for passing information
1353 // about an object literal's properties from the parser 1353 // about an object literal's properties from the parser
1354 // to the code generator. 1354 // to the code generator.
1355 class ObjectLiteralProperty final : public LiteralProperty { 1355 class ObjectLiteralProperty final : public LiteralProperty {
1356 public: 1356 public:
1357 enum Kind : uint8_t { 1357 enum Kind : uint8_t {
1358 CONSTANT, // Property with constant value (compile time). 1358 CONSTANT, // Property with constant value (compile time).
1359 COMPUTED, // Property with computed value (execution time). 1359 COMPUTED, // Property with computed value (execution time).
1360 MATERIALIZED_LITERAL, // Property value is a materialized literal. 1360 MATERIALIZED_LITERAL, // Property value is a materialized literal.
1361 GETTER, 1361 GETTER,
1362 SETTER, // Property is an accessor function. 1362 SETTER, // Property is an accessor function.
1363 PROTOTYPE // Property is __proto__. 1363 PROTOTYPE, // Property is __proto__.
1364 SPREAD
1364 }; 1365 };
1365 1366
1366 Kind kind() const { return kind_; } 1367 Kind kind() const { return kind_; }
1367 1368
1368 // Type feedback information. 1369 // Type feedback information.
1369 bool IsMonomorphic() const { return !receiver_type_.is_null(); } 1370 bool IsMonomorphic() const { return !receiver_type_.is_null(); }
1370 Handle<Map> GetReceiverType() const { return receiver_type_; } 1371 Handle<Map> GetReceiverType() const { return receiver_type_; }
1371 1372
1372 bool IsCompileTimeValue() const; 1373 bool IsCompileTimeValue() const;
1373 1374
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3608 : NULL; \ 3609 : NULL; \
3609 } 3610 }
3610 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3611 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3611 #undef DECLARE_NODE_FUNCTIONS 3612 #undef DECLARE_NODE_FUNCTIONS
3612 3613
3613 3614
3614 } // namespace internal 3615 } // namespace internal
3615 } // namespace v8 3616 } // namespace v8
3616 3617
3617 #endif // V8_AST_AST_H_ 3618 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698