| 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 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 // Type feedback information. | 1494 // Type feedback information. |
| 1495 void RecordTypeFeedback(TypeFeedbackOracle* oracle); | 1495 void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
| 1496 bool IsMonomorphic() { return !receiver_type_.is_null(); } | 1496 bool IsMonomorphic() { return !receiver_type_.is_null(); } |
| 1497 Handle<Map> GetReceiverType() { return receiver_type_; } | 1497 Handle<Map> GetReceiverType() { return receiver_type_; } |
| 1498 | 1498 |
| 1499 bool IsCompileTimeValue(); | 1499 bool IsCompileTimeValue(); |
| 1500 | 1500 |
| 1501 void set_emit_store(bool emit_store); | 1501 void set_emit_store(bool emit_store); |
| 1502 bool emit_store(); | 1502 bool emit_store(); |
| 1503 | 1503 |
| 1504 bool is_static() const { return is_static_; } |
| 1505 |
| 1504 protected: | 1506 protected: |
| 1505 template<class> friend class AstNodeFactory; | 1507 template<class> friend class AstNodeFactory; |
| 1506 | 1508 |
| 1507 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, | 1509 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, |
| 1508 bool is_static); | 1510 bool is_static); |
| 1509 void set_key(Literal* key) { key_ = key; } | 1511 void set_key(Literal* key) { key_ = key; } |
| 1510 | 1512 |
| 1511 private: | 1513 private: |
| 1512 Literal* key_; | 1514 Literal* key_; |
| 1513 Expression* value_; | 1515 Expression* value_; |
| (...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3621 Zone* zone_; | 3623 Zone* zone_; |
| 3622 Visitor visitor_; | 3624 Visitor visitor_; |
| 3623 AstValueFactory* ast_value_factory_; | 3625 AstValueFactory* ast_value_factory_; |
| 3624 AstNode::IdGen* id_gen_; | 3626 AstNode::IdGen* id_gen_; |
| 3625 }; | 3627 }; |
| 3626 | 3628 |
| 3627 | 3629 |
| 3628 } } // namespace v8::internal | 3630 } } // namespace v8::internal |
| 3629 | 3631 |
| 3630 #endif // V8_AST_H_ | 3632 #endif // V8_AST_H_ |
| OLD | NEW |