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

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

Issue 935713002: Accept constant string concatenation and constant string length as constant (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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') | runtime/vm/ast.cc » ('J')
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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 1416
1417 AstNode* receiver() const { return receiver_; } 1417 AstNode* receiver() const { return receiver_; }
1418 const String& field_name() const { return field_name_; } 1418 const String& field_name() const { return field_name_; }
1419 1419
1420 virtual void VisitChildren(AstNodeVisitor* visitor) const { 1420 virtual void VisitChildren(AstNodeVisitor* visitor) const {
1421 receiver()->Visit(visitor); 1421 receiver()->Visit(visitor);
1422 } 1422 }
1423 1423
1424 virtual AstNode* MakeAssignmentNode(AstNode* rhs); 1424 virtual AstNode* MakeAssignmentNode(AstNode* rhs);
1425 1425
1426 virtual bool IsPotentiallyConst() const;
1427 virtual const Instance* EvalConstExpr() const;
1428
1426 DECLARE_COMMON_NODE_FUNCTIONS(InstanceGetterNode); 1429 DECLARE_COMMON_NODE_FUNCTIONS(InstanceGetterNode);
1427 1430
1428 private: 1431 private:
1429 AstNode* receiver_; 1432 AstNode* receiver_;
1430 const String& field_name_; 1433 const String& field_name_;
1431 1434
1432 DISALLOW_IMPLICIT_CONSTRUCTORS(InstanceGetterNode); 1435 DISALLOW_IMPLICIT_CONSTRUCTORS(InstanceGetterNode);
1433 }; 1436 };
1434 1437
1435 1438
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 const intptr_t try_index_; 1907 const intptr_t try_index_;
1905 1908
1906 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1909 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1907 }; 1910 };
1908 1911
1909 } // namespace dart 1912 } // namespace dart
1910 1913
1911 #undef DECLARE_COMMON_NODE_FUNCTIONS 1914 #undef DECLARE_COMMON_NODE_FUNCTIONS
1912 1915
1913 #endif // VM_AST_H_ 1916 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast.cc » ('j') | runtime/vm/ast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698