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

Side by Side Diff: runtime/vm/kernel_binary_flowgraph.cc

Issue 2990783002: Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize t… (Closed)
Patch Set: Test for named parameters. 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 | « pkg/kernel/lib/verifier.dart ('k') | no next file » | 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 #include "vm/kernel_binary_flowgraph.h" 5 #include "vm/kernel_binary_flowgraph.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/longjump.h" 8 #include "vm/longjump.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 10
(...skipping 4207 matching lines...) Expand 10 before | Expand all | Expand 10 after
4218 SkipLibraryCombinator(); 4218 SkipLibraryCombinator();
4219 } 4219 }
4220 } 4220 }
4221 4221
4222 void StreamingFlowGraphBuilder::SkipLibraryTypedef() { 4222 void StreamingFlowGraphBuilder::SkipLibraryTypedef() {
4223 SkipCanonicalNameReference(); // read canonical name. 4223 SkipCanonicalNameReference(); // read canonical name.
4224 ReadPosition(); // read position. 4224 ReadPosition(); // read position.
4225 SkipStringReference(); // read name index. 4225 SkipStringReference(); // read name index.
4226 ReadUInt(); // read source_uri_index. 4226 ReadUInt(); // read source_uri_index.
4227 SkipTypeParametersList(); // read type parameters. 4227 SkipTypeParametersList(); // read type parameters.
4228 ReadUInt(); // read required parameter count
4229
4230 intptr_t positional_count = ReadListLength();
4231 for (intptr_t i = 0; i < positional_count; i++) {
4232 SkipVariableDeclaration();
4233 }
4234
4235 intptr_t named_count = ReadListLength();
4236 for (intptr_t i = 0; i < named_count; i++) {
4237 SkipVariableDeclaration();
4238 }
4239
4228 SkipDartType(); // read type. 4240 SkipDartType(); // read type.
4229 } 4241 }
4230 4242
4231 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) { 4243 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) {
4232 TokenPosition position = reader_->ReadPosition(); 4244 TokenPosition position = reader_->ReadPosition();
4233 if (record) { 4245 if (record) {
4234 record_token_position(position); 4246 record_token_position(position);
4235 } 4247 }
4236 return position; 4248 return position;
4237 } 4249 }
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
7271 } 7283 }
7272 } 7284 }
7273 7285
7274 return Array::Handle(Array::null()); 7286 return Array::Handle(Array::null());
7275 } 7287 }
7276 7288
7277 } // namespace kernel 7289 } // namespace kernel
7278 } // namespace dart 7290 } // namespace dart
7279 7291
7280 #endif // !defined(DART_PRECOMPILED_RUNTIME) 7292 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « pkg/kernel/lib/verifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698