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

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

Issue 10832150: Get rid of ast node ids. (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_test.cc ('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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); 487 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident);
488 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, 488 AstNode* OptimizeBinaryOpNode(intptr_t op_pos,
489 Token::Kind binary_op, 489 Token::Kind binary_op,
490 AstNode* lhs, 490 AstNode* lhs,
491 AstNode* rhs); 491 AstNode* rhs);
492 AstNode* ExpandAssignableOp(intptr_t op_pos, 492 AstNode* ExpandAssignableOp(intptr_t op_pos,
493 Token::Kind assignment_op, 493 Token::Kind assignment_op,
494 AstNode* lhs, 494 AstNode* lhs,
495 AstNode* rhs); 495 AstNode* rhs);
496 AstNode* PrepareCompoundAssignmentNodes(AstNode** expr); 496 AstNode* PrepareCompoundAssignmentNodes(AstNode** expr);
497 LocalVariable* CreateTempConstVariable(intptr_t token_pos, 497 LocalVariable* CreateTempConstVariable(intptr_t token_pos, const char* s);
498 intptr_t token_id,
499 const char* s);
500 498
501 static bool IsAssignableExpr(AstNode* expr); 499 static bool IsAssignableExpr(AstNode* expr);
502 500
503 static bool IsPrefixOperator(Token::Kind token); 501 static bool IsPrefixOperator(Token::Kind token);
504 static bool IsIncrementOperator(Token::Kind token); 502 static bool IsIncrementOperator(Token::Kind token);
505 503
506 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, 504 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos,
507 AstNode* node, 505 AstNode* node,
508 LocalScope* scope); 506 LocalScope* scope);
509 507
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 565
568 // Allocate temporary only once per function. 566 // Allocate temporary only once per function.
569 LocalVariable* expression_temp_; 567 LocalVariable* expression_temp_;
570 568
571 DISALLOW_COPY_AND_ASSIGN(Parser); 569 DISALLOW_COPY_AND_ASSIGN(Parser);
572 }; 570 };
573 571
574 } // namespace dart 572 } // namespace dart
575 573
576 #endif // VM_PARSER_H_ 574 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698