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_H_ | 5 #ifndef V8_AST_H_ |
6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 // Type feedback information. | 1505 // Type feedback information. |
1506 void RecordTypeFeedback(TypeFeedbackOracle* oracle); | 1506 void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
1507 bool IsMonomorphic() { return !receiver_type_.is_null(); } | 1507 bool IsMonomorphic() { return !receiver_type_.is_null(); } |
1508 Handle<Map> GetReceiverType() { return receiver_type_; } | 1508 Handle<Map> GetReceiverType() { return receiver_type_; } |
1509 | 1509 |
1510 bool IsCompileTimeValue(); | 1510 bool IsCompileTimeValue(); |
1511 | 1511 |
1512 void set_emit_store(bool emit_store); | 1512 void set_emit_store(bool emit_store); |
1513 bool emit_store(); | 1513 bool emit_store(); |
1514 | 1514 |
| 1515 bool is_static() const { return is_static_; } |
| 1516 |
1515 protected: | 1517 protected: |
1516 template<class> friend class AstNodeFactory; | 1518 template<class> friend class AstNodeFactory; |
1517 | 1519 |
1518 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, | 1520 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, |
1519 bool is_static); | 1521 bool is_static); |
1520 void set_key(Literal* key) { key_ = key; } | 1522 void set_key(Literal* key) { key_ = key; } |
1521 | 1523 |
1522 private: | 1524 private: |
1523 Literal* key_; | 1525 Literal* key_; |
1524 Expression* value_; | 1526 Expression* value_; |
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3649 private: | 3651 private: |
3650 Zone* zone_; | 3652 Zone* zone_; |
3651 Visitor visitor_; | 3653 Visitor visitor_; |
3652 AstValueFactory* ast_value_factory_; | 3654 AstValueFactory* ast_value_factory_; |
3653 }; | 3655 }; |
3654 | 3656 |
3655 | 3657 |
3656 } } // namespace v8::internal | 3658 } } // namespace v8::internal |
3657 | 3659 |
3658 #endif // V8_AST_H_ | 3660 #endif // V8_AST_H_ |
OLD | NEW |