| 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 25 matching lines...) Expand all Loading... |
| 36 V(ArgumentList) \ | 36 V(ArgumentList) \ |
| 37 V(Array) \ | 37 V(Array) \ |
| 38 V(Closure) \ | 38 V(Closure) \ |
| 39 V(InstanceCall) \ | 39 V(InstanceCall) \ |
| 40 V(StaticCall) \ | 40 V(StaticCall) \ |
| 41 V(ClosureCall) \ | 41 V(ClosureCall) \ |
| 42 V(CloneContext) \ | 42 V(CloneContext) \ |
| 43 V(ConstructorCall) \ | 43 V(ConstructorCall) \ |
| 44 V(InstanceGetter) \ | 44 V(InstanceGetter) \ |
| 45 V(InstanceSetter) \ | 45 V(InstanceSetter) \ |
| 46 V(InitStaticField) \ |
| 46 V(StaticGetter) \ | 47 V(StaticGetter) \ |
| 47 V(StaticSetter) \ | 48 V(StaticSetter) \ |
| 48 V(NativeBody) \ | 49 V(NativeBody) \ |
| 49 V(Primary) \ | 50 V(Primary) \ |
| 50 V(LoadLocal) \ | 51 V(LoadLocal) \ |
| 51 V(StoreLocal) \ | 52 V(StoreLocal) \ |
| 52 V(LoadInstanceField) \ | 53 V(LoadInstanceField) \ |
| 53 V(StoreInstanceField) \ | 54 V(StoreInstanceField) \ |
| 54 V(LoadStaticField) \ | 55 V(LoadStaticField) \ |
| 55 V(StoreStaticField) \ | 56 V(StoreStaticField) \ |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1405 | 1406 |
| 1406 private: | 1407 private: |
| 1407 AstNode* receiver_; | 1408 AstNode* receiver_; |
| 1408 const String& field_name_; | 1409 const String& field_name_; |
| 1409 AstNode* value_; | 1410 AstNode* value_; |
| 1410 | 1411 |
| 1411 DISALLOW_IMPLICIT_CONSTRUCTORS(InstanceSetterNode); | 1412 DISALLOW_IMPLICIT_CONSTRUCTORS(InstanceSetterNode); |
| 1412 }; | 1413 }; |
| 1413 | 1414 |
| 1414 | 1415 |
| 1416 class InitStaticFieldNode : public AstNode { |
| 1417 public: |
| 1418 InitStaticFieldNode(intptr_t token_pos, const Field& field) |
| 1419 : AstNode(token_pos), field_(field) { |
| 1420 ASSERT(field_.IsZoneHandle()); |
| 1421 } |
| 1422 |
| 1423 const Field& field() const { return field_; } |
| 1424 |
| 1425 virtual void VisitChildren(AstNodeVisitor* visitor) const { } |
| 1426 |
| 1427 DECLARE_COMMON_NODE_FUNCTIONS(InitStaticFieldNode); |
| 1428 |
| 1429 private: |
| 1430 const Field& field_; |
| 1431 |
| 1432 DISALLOW_COPY_AND_ASSIGN(InitStaticFieldNode); |
| 1433 }; |
| 1434 |
| 1435 |
| 1415 class StaticGetterNode : public AstNode { | 1436 class StaticGetterNode : public AstNode { |
| 1416 public: | 1437 public: |
| 1417 StaticGetterNode(intptr_t token_pos, | 1438 StaticGetterNode(intptr_t token_pos, |
| 1418 AstNode* receiver, | 1439 AstNode* receiver, |
| 1419 bool is_super_getter, | 1440 bool is_super_getter, |
| 1420 const Class& cls, | 1441 const Class& cls, |
| 1421 const String& field_name) | 1442 const String& field_name) |
| 1422 : AstNode(token_pos), | 1443 : AstNode(token_pos), |
| 1423 receiver_(receiver), | 1444 receiver_(receiver), |
| 1424 cls_(cls), | 1445 cls_(cls), |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 const intptr_t try_index_; | 1848 const intptr_t try_index_; |
| 1828 | 1849 |
| 1829 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1850 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1830 }; | 1851 }; |
| 1831 | 1852 |
| 1832 } // namespace dart | 1853 } // namespace dart |
| 1833 | 1854 |
| 1834 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1855 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1835 | 1856 |
| 1836 #endif // VM_AST_H_ | 1857 #endif // VM_AST_H_ |
| OLD | NEW |