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

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

Issue 2993223002: [VM parser] Insert missing result type check in async functions using arrow (Closed)
Patch Set: update status file Created 3 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
« 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 RUNTIME_VM_PARSER_H_ 5 #ifndef RUNTIME_VM_PARSER_H_
6 #define RUNTIME_VM_PARSER_H_ 6 #define RUNTIME_VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 bool is_compound = false); 937 bool is_compound = false);
938 938
939 ConstructorCallNode* CreateConstructorCallNode( 939 ConstructorCallNode* CreateConstructorCallNode(
940 TokenPosition token_pos, 940 TokenPosition token_pos,
941 const TypeArguments& type_arguments, 941 const TypeArguments& type_arguments,
942 const Function& constructor, 942 const Function& constructor,
943 ArgumentListNode* arguments); 943 ArgumentListNode* arguments);
944 944
945 void AddEqualityNullCheck(); 945 void AddEqualityNullCheck();
946 946
947 AstNode* AddAsyncResultTypeCheck(TokenPosition expr_pos, AstNode* expr);
948
947 AstNode* BuildClosureCall(TokenPosition token_pos, 949 AstNode* BuildClosureCall(TokenPosition token_pos,
948 AstNode* closure, 950 AstNode* closure,
949 ArgumentListNode* arguments); 951 ArgumentListNode* arguments);
950 952
951 RawInstance* TryCanonicalize(const Instance& instance, 953 RawInstance* TryCanonicalize(const Instance& instance,
952 TokenPosition token_pos); 954 TokenPosition token_pos);
953 void CacheConstantValue(TokenPosition token_pos, const Instance& value); 955 void CacheConstantValue(TokenPosition token_pos, const Instance& value);
954 bool GetCachedConstant(TokenPosition token_pos, Instance* value); 956 bool GetCachedConstant(TokenPosition token_pos, Instance* value);
955 957
956 Thread* thread() const { return thread_; } 958 Thread* thread() const { return thread_; }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1028
1027 intptr_t recursion_counter_; 1029 intptr_t recursion_counter_;
1028 friend class RecursionChecker; 1030 friend class RecursionChecker;
1029 1031
1030 DISALLOW_COPY_AND_ASSIGN(Parser); 1032 DISALLOW_COPY_AND_ASSIGN(Parser);
1031 }; 1033 };
1032 1034
1033 } // namespace dart 1035 } // namespace dart
1034 1036
1035 #endif // RUNTIME_VM_PARSER_H_ 1037 #endif // RUNTIME_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