Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: vm/ast.h

Issue 11519006: Add read only handles for the following predefined symbols (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/assembler_x64.cc ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « vm/assembler_x64.cc ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698