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

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

Issue 2064663002: Make VM accept function values in assert statements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 891
892 void CheckOperatorArity(const MemberDesc& member); 892 void CheckOperatorArity(const MemberDesc& member);
893 893
894 void EnsureExpressionTemp(); 894 void EnsureExpressionTemp();
895 bool IsLegalAssignableSyntax(AstNode* expr, TokenPosition end_pos); 895 bool IsLegalAssignableSyntax(AstNode* expr, TokenPosition end_pos);
896 AstNode* CreateAssignmentNode(AstNode* original, 896 AstNode* CreateAssignmentNode(AstNode* original,
897 AstNode* rhs, 897 AstNode* rhs,
898 const String* left_ident, 898 const String* left_ident,
899 TokenPosition left_pos, 899 TokenPosition left_pos,
900 bool is_compound = false); 900 bool is_compound = false);
901 AstNode* InsertClosureCallNodes(AstNode* condition); 901 AstNode* HandleAssertCondition(AstNode* condition);
902 902
903 ConstructorCallNode* CreateConstructorCallNode( 903 ConstructorCallNode* CreateConstructorCallNode(
904 TokenPosition token_pos, 904 TokenPosition token_pos,
905 const TypeArguments& type_arguments, 905 const TypeArguments& type_arguments,
906 const Function& constructor, 906 const Function& constructor,
907 ArgumentListNode* arguments); 907 ArgumentListNode* arguments);
908 908
909 void AddEqualityNullCheck(); 909 void AddEqualityNullCheck();
910 910
911 AstNode* BuildClosureCall(TokenPosition token_pos, 911 AstNode* BuildClosureCall(TokenPosition token_pos,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 986
987 intptr_t recursion_counter_; 987 intptr_t recursion_counter_;
988 friend class RecursionChecker; 988 friend class RecursionChecker;
989 989
990 DISALLOW_COPY_AND_ASSIGN(Parser); 990 DISALLOW_COPY_AND_ASSIGN(Parser);
991 }; 991 };
992 992
993 } // namespace dart 993 } // namespace dart
994 994
995 #endif // VM_PARSER_H_ 995 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698