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

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

Issue 12207137: Reduce allocation of ArrayNode-s where a GrowableArray could be used instead. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/ast.h ('k') | runtime/vm/parser.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_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 static bool IsAssignableExpr(AstNode* expr); 584 static bool IsAssignableExpr(AstNode* expr);
585 585
586 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, 586 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos,
587 AstNode* node, 587 AstNode* node,
588 LocalScope* scope); 588 LocalScope* scope);
589 589
590 SequenceNode* MakeImplicitConstructor(const Function& func); 590 SequenceNode* MakeImplicitConstructor(const Function& func);
591 AstNode* MakeStaticCall(const String& cls_name, 591 AstNode* MakeStaticCall(const String& cls_name,
592 const String& func_name, 592 const String& func_name,
593 ArgumentListNode* arguments); 593 ArgumentListNode* arguments);
594 String& Interpolate(ArrayNode* values); 594 String& Interpolate(const GrowableArray<AstNode*>& values);
595 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 595 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
596 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 596 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
597 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, 597 AstNode* ThrowNoSuchMethodError(intptr_t call_pos,
598 const Class& cls, 598 const Class& cls,
599 const String& function_name); 599 const String& function_name);
600 600
601 void CheckOperatorArity(const MemberDesc& member); 601 void CheckOperatorArity(const MemberDesc& member);
602 602
603 const LocalVariable* GetIncrementTempLocal(); 603 const LocalVariable* GetIncrementTempLocal();
604 void EnsureExpressionTemp(); 604 void EnsureExpressionTemp();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // code at all points in the try block where an exit from the block is 648 // code at all points in the try block where an exit from the block is
649 // done using 'return', 'break' or 'continue' statements. 649 // done using 'return', 'break' or 'continue' statements.
650 TryBlocks* try_blocks_list_; 650 TryBlocks* try_blocks_list_;
651 651
652 DISALLOW_COPY_AND_ASSIGN(Parser); 652 DISALLOW_COPY_AND_ASSIGN(Parser);
653 }; 653 };
654 654
655 } // namespace dart 655 } // namespace dart
656 656
657 #endif // VM_PARSER_H_ 657 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698