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

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

Issue 10272031: Merge two functions that create sideffect free compound load nodes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 AstNode* ResolveVarOrField(intptr_t ident_pos, const String& ident); 435 AstNode* ResolveVarOrField(intptr_t ident_pos, const String& ident);
436 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); 436 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident);
437 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, 437 AstNode* OptimizeBinaryOpNode(intptr_t op_pos,
438 Token::Kind binary_op, 438 Token::Kind binary_op,
439 AstNode* lhs, 439 AstNode* lhs,
440 AstNode* rhs); 440 AstNode* rhs);
441 AstNode* ExpandAssignableOp(intptr_t op_pos, 441 AstNode* ExpandAssignableOp(intptr_t op_pos,
442 Token::Kind assignment_op, 442 Token::Kind assignment_op,
443 AstNode* lhs, 443 AstNode* lhs,
444 AstNode* rhs); 444 AstNode* rhs);
445 AstNode* AsSideEffectFreeNode(AstNode* node); 445 AstNode* PrepareCompoundAssignmentNodes(AstNode** expr);
446 LocalVariable* CreateTempConstVariable(intptr_t token_index, 446 LocalVariable* CreateTempConstVariable(intptr_t token_index,
447 intptr_t token_id, 447 intptr_t token_id,
448 const char* s); 448 const char* s);
449 449
450 static bool IsAssignableExpr(AstNode* expr); 450 static bool IsAssignableExpr(AstNode* expr);
451 451
452 static bool IsPrefixOperator(Token::Kind token); 452 static bool IsPrefixOperator(Token::Kind token);
453 static bool IsIncrementOperator(Token::Kind token); 453 static bool IsIncrementOperator(Token::Kind token);
454 454
455 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, 455 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // code at all points in the try block where an exit from the block is 500 // code at all points in the try block where an exit from the block is
501 // done using 'return', 'break' or 'continue' statements. 501 // done using 'return', 'break' or 'continue' statements.
502 TryBlocks* try_blocks_list_; 502 TryBlocks* try_blocks_list_;
503 503
504 DISALLOW_COPY_AND_ASSIGN(Parser); 504 DISALLOW_COPY_AND_ASSIGN(Parser);
505 }; 505 };
506 506
507 } // namespace dart 507 } // namespace dart
508 508
509 #endif // VM_PARSER_H_ 509 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698