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

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

Issue 2988373002: Store parts in Kernel Library, resynthesize parts in Analyzer. (Closed)
Patch Set: Fixes for review comments. 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 | « runtime/vm/kernel_binary_flowgraph.h ('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 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after
4229 ReadFlags(); // read flags. 4229 ReadFlags(); // read flags.
4230 SkipListOfExpressions(); // Read annotations. 4230 SkipListOfExpressions(); // Read annotations.
4231 ReadCanonicalNameReference(); // read target_reference. 4231 ReadCanonicalNameReference(); // read target_reference.
4232 ReadStringReference(); // read name_index. 4232 ReadStringReference(); // read name_index.
4233 intptr_t combinator_count = ReadListLength(); // read list length. 4233 intptr_t combinator_count = ReadListLength(); // read list length.
4234 for (intptr_t i = 0; i < combinator_count; ++i) { 4234 for (intptr_t i = 0; i < combinator_count; ++i) {
4235 SkipLibraryCombinator(); 4235 SkipLibraryCombinator();
4236 } 4236 }
4237 } 4237 }
4238 4238
4239 void StreamingFlowGraphBuilder::SkipLibraryPart() {
4240 SkipListOfExpressions(); // Read annotations.
4241 ReadStringReference(); // read uri_index.
4242 }
4243
4239 void StreamingFlowGraphBuilder::SkipLibraryTypedef() { 4244 void StreamingFlowGraphBuilder::SkipLibraryTypedef() {
4240 SkipCanonicalNameReference(); // read canonical name. 4245 SkipCanonicalNameReference(); // read canonical name.
4241 ReadPosition(); // read position. 4246 ReadPosition(); // read position.
4242 SkipStringReference(); // read name index. 4247 SkipStringReference(); // read name index.
4243 ReadUInt(); // read source_uri_index. 4248 ReadUInt(); // read source_uri_index.
4244 SkipTypeParametersList(); // read type parameters. 4249 SkipTypeParametersList(); // read type parameters.
4245 SkipDartType(); // read type. 4250 SkipDartType(); // read type.
4246 } 4251 }
4247 4252
4248 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) { 4253 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) {
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
7295 } 7300 }
7296 } 7301 }
7297 7302
7298 return Array::Handle(Array::null()); 7303 return Array::Handle(Array::null());
7299 } 7304 }
7300 7305
7301 } // namespace kernel 7306 } // namespace kernel
7302 } // namespace dart 7307 } // namespace dart
7303 7308
7304 #endif // !defined(DART_PRECOMPILED_RUNTIME) 7309 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel_binary_flowgraph.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698