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

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

Issue 2941643002: Check for a passed-in type argument vector in the prolog of generic functions. (Closed)
Patch Set: address review comments Created 3 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
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/vm/bootstrap_natives.h » ('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_AST_H_ 5 #ifndef RUNTIME_VM_AST_H_
6 #define RUNTIME_VM_AST_H_ 6 #define RUNTIME_VM_AST_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 names_(Array::ZoneHandle()) {} 293 names_(Array::ZoneHandle()) {}
294 294
295 ArgumentListNode(TokenPosition token_pos, const TypeArguments& type_arguments) 295 ArgumentListNode(TokenPosition token_pos, const TypeArguments& type_arguments)
296 : AstNode(token_pos), 296 : AstNode(token_pos),
297 type_args_var_(NULL), 297 type_args_var_(NULL),
298 type_arguments_(type_arguments), 298 type_arguments_(type_arguments),
299 type_args_len_(type_arguments.Length()), 299 type_args_len_(type_arguments.Length()),
300 nodes_(4), 300 nodes_(4),
301 names_(Array::ZoneHandle()) { 301 names_(Array::ZoneHandle()) {
302 ASSERT(type_arguments_.IsZoneHandle()); 302 ASSERT(type_arguments_.IsZoneHandle());
303 ASSERT(type_arguments_.IsNull() || type_arguments_.IsCanonical());
303 } 304 }
304 305
305 ArgumentListNode(TokenPosition token_pos, 306 ArgumentListNode(TokenPosition token_pos,
306 LocalVariable* type_args_var, 307 LocalVariable* type_args_var,
307 intptr_t type_args_len) 308 intptr_t type_args_len)
308 : AstNode(token_pos), 309 : AstNode(token_pos),
309 type_args_var_(type_args_var), 310 type_args_var_(type_args_var),
310 type_arguments_(TypeArguments::ZoneHandle()), 311 type_arguments_(TypeArguments::ZoneHandle()),
311 type_args_len_(type_args_len), 312 type_args_len_(type_args_len),
312 nodes_(4), 313 nodes_(4),
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 const intptr_t try_index_; 2013 const intptr_t try_index_;
2013 2014
2014 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 2015 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
2015 }; 2016 };
2016 2017
2017 } // namespace dart 2018 } // namespace dart
2018 2019
2019 #undef DECLARE_COMMON_NODE_FUNCTIONS 2020 #undef DECLARE_COMMON_NODE_FUNCTIONS
2020 2021
2021 #endif // RUNTIME_VM_AST_H_ 2022 #endif // RUNTIME_VM_AST_H_
OLDNEW
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698