| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 GrowableArray<AstNode*> elements_; | 296 GrowableArray<AstNode*> elements_; |
| 297 | 297 |
| 298 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayNode); | 298 DISALLOW_IMPLICIT_CONSTRUCTORS(ArrayNode); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 | 301 |
| 302 class LiteralNode : public AstNode { | 302 class LiteralNode : public AstNode { |
| 303 public: | 303 public: |
| 304 LiteralNode(intptr_t token_pos, const Instance& literal) | 304 LiteralNode(intptr_t token_pos, const Instance& literal) |
| 305 : AstNode(token_pos), literal_(literal) { | 305 : AstNode(token_pos), literal_(literal) { |
| 306 ASSERT(literal_.IsZoneHandle()); | 306 ASSERT(literal_.IsNotTemporaryScopedHandle()); |
| 307 ASSERT(literal_.IsSmi() || literal_.IsOld()); | 307 ASSERT(literal_.IsSmi() || literal_.IsOld()); |
| 308 #if defined(DEBUG) | 308 #if defined(DEBUG) |
| 309 if (literal_.IsString()) { | 309 if (literal_.IsString()) { |
| 310 ASSERT(String::Cast(literal_).IsSymbol()); | 310 ASSERT(String::Cast(literal_).IsSymbol()); |
| 311 } | 311 } |
| 312 #endif // defined(DEBUG) | 312 #endif // defined(DEBUG) |
| 313 ASSERT(literal_.IsNull() || | 313 ASSERT(literal_.IsNull() || |
| 314 Class::Handle(literal_.clazz()).is_finalized() || | 314 Class::Handle(literal_.clazz()).is_finalized() || |
| 315 Class::Handle(literal_.clazz()).is_prefinalized()); | 315 Class::Handle(literal_.clazz()).is_prefinalized()); |
| 316 } | 316 } |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 const LocalVariable& context_var_; | 1690 const LocalVariable& context_var_; |
| 1691 | 1691 |
| 1692 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1692 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1693 }; | 1693 }; |
| 1694 | 1694 |
| 1695 } // namespace dart | 1695 } // namespace dart |
| 1696 | 1696 |
| 1697 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1697 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1698 | 1698 |
| 1699 #endif // VM_AST_H_ | 1699 #endif // VM_AST_H_ |
| OLD | NEW |