| OLD | NEW |
| 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/ast/ast-types.h" | 8 #include "src/ast/ast-types.h" |
| 9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
| 10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
| (...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 // Property is used for passing information | 1347 // Property is used for passing information |
| 1348 // about an object literal's properties from the parser | 1348 // about an object literal's properties from the parser |
| 1349 // to the code generator. | 1349 // to the code generator. |
| 1350 class ObjectLiteralProperty final : public LiteralProperty { | 1350 class ObjectLiteralProperty final : public LiteralProperty { |
| 1351 public: | 1351 public: |
| 1352 enum Kind : uint8_t { | 1352 enum Kind : uint8_t { |
| 1353 CONSTANT, // Property with constant value (compile time). | 1353 CONSTANT, // Property with constant value (compile time). |
| 1354 COMPUTED, // Property with computed value (execution time). | 1354 COMPUTED, // Property with computed value (execution time). |
| 1355 MATERIALIZED_LITERAL, // Property value is a materialized literal. | 1355 MATERIALIZED_LITERAL, // Property value is a materialized literal. |
| 1356 GETTER, | 1356 GETTER, |
| 1357 SETTER, // Property is an accessor function. | 1357 SETTER, // Property is an accessor function. |
| 1358 PROTOTYPE // Property is __proto__. | 1358 PROTOTYPE, // Property is __proto__. |
| 1359 SPREAD |
| 1359 }; | 1360 }; |
| 1360 | 1361 |
| 1361 Kind kind() const { return kind_; } | 1362 Kind kind() const { return kind_; } |
| 1362 | 1363 |
| 1363 // Type feedback information. | 1364 // Type feedback information. |
| 1364 bool IsMonomorphic() const { return !receiver_type_.is_null(); } | 1365 bool IsMonomorphic() const { return !receiver_type_.is_null(); } |
| 1365 Handle<Map> GetReceiverType() const { return receiver_type_; } | 1366 Handle<Map> GetReceiverType() const { return receiver_type_; } |
| 1366 | 1367 |
| 1367 bool IsCompileTimeValue() const; | 1368 bool IsCompileTimeValue() const; |
| 1368 | 1369 |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3603 : NULL; \ | 3604 : NULL; \ |
| 3604 } | 3605 } |
| 3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3606 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3606 #undef DECLARE_NODE_FUNCTIONS | 3607 #undef DECLARE_NODE_FUNCTIONS |
| 3607 | 3608 |
| 3608 | 3609 |
| 3609 } // namespace internal | 3610 } // namespace internal |
| 3610 } // namespace v8 | 3611 } // namespace v8 |
| 3611 | 3612 |
| 3612 #endif // V8_AST_AST_H_ | 3613 #endif // V8_AST_AST_H_ |
| OLD | NEW |