| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_AST_H_ | 5 #ifndef VM_AST_H_ |
| 6 #define VM_AST_H_ | 6 #define VM_AST_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 const Field& field() const { return field_; } | 1070 const Field& field() const { return field_; } |
| 1071 | 1071 |
| 1072 virtual void VisitChildren(AstNodeVisitor* visitor) const { } | 1072 virtual void VisitChildren(AstNodeVisitor* visitor) const { } |
| 1073 | 1073 |
| 1074 virtual AstNode* MakeAssignmentNode(AstNode* rhs); | 1074 virtual AstNode* MakeAssignmentNode(AstNode* rhs); |
| 1075 | 1075 |
| 1076 virtual const Instance* EvalConstExpr() const { | 1076 virtual const Instance* EvalConstExpr() const { |
| 1077 ASSERT(field_.is_static()); | 1077 ASSERT(field_.is_static()); |
| 1078 return field_.is_final() ? &Instance::ZoneHandle(field_.value()) : NULL; | 1078 return field_.is_const() ? &Instance::ZoneHandle(field_.value()) : NULL; |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 DECLARE_COMMON_NODE_FUNCTIONS(LoadStaticFieldNode); | 1081 DECLARE_COMMON_NODE_FUNCTIONS(LoadStaticFieldNode); |
| 1082 | 1082 |
| 1083 private: | 1083 private: |
| 1084 const Field& field_; | 1084 const Field& field_; |
| 1085 | 1085 |
| 1086 DISALLOW_IMPLICIT_CONSTRUCTORS(LoadStaticFieldNode); | 1086 DISALLOW_IMPLICIT_CONSTRUCTORS(LoadStaticFieldNode); |
| 1087 }; | 1087 }; |
| 1088 | 1088 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 const LocalVariable& context_var_; | 1687 const LocalVariable& context_var_; |
| 1688 | 1688 |
| 1689 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1689 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1690 }; | 1690 }; |
| 1691 | 1691 |
| 1692 } // namespace dart | 1692 } // namespace dart |
| 1693 | 1693 |
| 1694 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1694 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1695 | 1695 |
| 1696 #endif // VM_AST_H_ | 1696 #endif // VM_AST_H_ |
| OLD | NEW |