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

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

Powered by Google App Engine
This is Rietveld 408576698