| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |