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

Side by Side Diff: runtime/vm/ast.h

Issue 10823292: References to static functions are CT constants (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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 | « no previous file | runtime/vm/ast.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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 const Function& function() const { return function_; } 389 const Function& function() const { return function_; }
390 AstNode* receiver() const { return receiver_; } 390 AstNode* receiver() const { return receiver_; }
391 LocalScope* scope() const { return scope_; } 391 LocalScope* scope() const { return scope_; }
392 392
393 virtual void VisitChildren(AstNodeVisitor* visitor) const { 393 virtual void VisitChildren(AstNodeVisitor* visitor) const {
394 if (receiver() != NULL) { 394 if (receiver() != NULL) {
395 receiver()->Visit(visitor); 395 receiver()->Visit(visitor);
396 } 396 }
397 } 397 }
398 398
399 virtual const Instance* EvalConstExpr() const;
400
399 DECLARE_COMMON_NODE_FUNCTIONS(ClosureNode); 401 DECLARE_COMMON_NODE_FUNCTIONS(ClosureNode);
400 402
401 private: 403 private:
402 const Function& function_; 404 const Function& function_;
403 AstNode* receiver_; 405 AstNode* receiver_;
404 LocalScope* scope_; 406 LocalScope* scope_;
405 407
406 DISALLOW_IMPLICIT_CONSTRUCTORS(ClosureNode); 408 DISALLOW_IMPLICIT_CONSTRUCTORS(ClosureNode);
407 }; 409 };
408 410
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 const LocalVariable& context_var_; 1651 const LocalVariable& context_var_;
1650 1652
1651 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1653 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1652 }; 1654 };
1653 1655
1654 } // namespace dart 1656 } // namespace dart
1655 1657
1656 #undef DECLARE_COMMON_NODE_FUNCTIONS 1658 #undef DECLARE_COMMON_NODE_FUNCTIONS
1657 1659
1658 #endif // VM_AST_H_ 1660 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698