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

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

Issue 10832126: Store pointer instead of reference to LocalVariable in ast and flow graph. (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 | « runtime/vm/object.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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 AstNode* MakeStaticCall(const String& cls_name, 509 AstNode* MakeStaticCall(const String& cls_name,
510 const String& func_name, 510 const String& func_name,
511 ArgumentListNode* arguments); 511 ArgumentListNode* arguments);
512 String& Interpolate(ArrayNode* values); 512 String& Interpolate(ArrayNode* values);
513 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 513 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
514 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 514 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
515 515
516 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function); 516 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function);
517 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); 517 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token);
518 518
519 const LocalVariable& GetIncrementTempLocal(); 519 const LocalVariable* GetIncrementTempLocal();
520 void EnsureExpressionTemp(); 520 void EnsureExpressionTemp();
521 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); 521 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs);
522 AstNode* InsertClosureCallNodes(AstNode* condition); 522 AstNode* InsertClosureCallNodes(AstNode* condition);
523 523
524 ConstructorCallNode* CreateConstructorCallNode( 524 ConstructorCallNode* CreateConstructorCallNode(
525 intptr_t token_pos, 525 intptr_t token_pos,
526 const AbstractTypeArguments& type_arguments, 526 const AbstractTypeArguments& type_arguments,
527 const Function& constructor, 527 const Function& constructor,
528 ArgumentListNode* arguments); 528 ArgumentListNode* arguments);
529 529
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 565
566 // Allocate temporary only once per function. 566 // Allocate temporary only once per function.
567 LocalVariable* expression_temp_; 567 LocalVariable* expression_temp_;
568 568
569 DISALLOW_COPY_AND_ASSIGN(Parser); 569 DISALLOW_COPY_AND_ASSIGN(Parser);
570 }; 570 };
571 571
572 } // namespace dart 572 } // namespace dart
573 573
574 #endif // VM_PARSER_H_ 574 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698