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

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

Issue 2859673002: Pass type argument vector to generic functions (if --reify-generic-functions is (Closed)
Patch Set: address review comments and sync Created 3 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
« no previous file with comments | « runtime/vm/jit_optimizer.cc ('k') | runtime/vm/kernel_binary_flowgraph.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_KERNEL_H_ 5 #ifndef RUNTIME_VM_KERNEL_H_
6 #define RUNTIME_VM_KERNEL_H_ 6 #define RUNTIME_VM_KERNEL_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 public: 1302 public:
1303 static Arguments* ReadFrom(Reader* reader); 1303 static Arguments* ReadFrom(Reader* reader);
1304 1304
1305 virtual ~Arguments(); 1305 virtual ~Arguments();
1306 1306
1307 DEFINE_CASTING_OPERATIONS(Arguments); 1307 DEFINE_CASTING_OPERATIONS(Arguments);
1308 1308
1309 virtual void AcceptTreeVisitor(TreeVisitor* visitor); 1309 virtual void AcceptTreeVisitor(TreeVisitor* visitor);
1310 virtual void VisitChildren(Visitor* visitor); 1310 virtual void VisitChildren(Visitor* visitor);
1311 1311
1312 // TODO(regis): Support type arguments of generic functions.
1312 List<DartType>& types() { return types_; } 1313 List<DartType>& types() { return types_; }
1313 List<Expression>& positional() { return positional_; } 1314 List<Expression>& positional() { return positional_; }
1314 List<NamedExpression>& named() { return named_; } 1315 List<NamedExpression>& named() { return named_; }
1315 1316
1316 int count() { return positional_.length() + named_.length(); } 1317 int count() { return positional_.length() + named_.length(); }
1317 1318
1318 private: 1319 private:
1319 Arguments() {} 1320 Arguments() {}
1320 1321
1321 List<DartType> types_; 1322 List<DartType> types_;
(...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after
3440 } // namespace kernel 3441 } // namespace kernel
3441 3442
3442 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, 3443 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer,
3443 intptr_t buffer_length); 3444 intptr_t buffer_length);
3444 3445
3445 3446
3446 } // namespace dart 3447 } // namespace dart
3447 3448
3448 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3449 #endif // !defined(DART_PRECOMPILED_RUNTIME)
3449 #endif // RUNTIME_VM_KERNEL_H_ 3450 #endif // RUNTIME_VM_KERNEL_H_
OLDNEW
« no previous file with comments | « runtime/vm/jit_optimizer.cc ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698