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

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
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 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after
4227 ReadFlags(); // read flags. 4227 ReadFlags(); // read flags.
4228 SkipListOfExpressions(); // Read annotations. 4228 SkipListOfExpressions(); // Read annotations.
4229 ReadCanonicalNameReference(); // read target_reference. 4229 ReadCanonicalNameReference(); // read target_reference.
4230 ReadStringReference(); // read name_index. 4230 ReadStringReference(); // read name_index.
4231 intptr_t combinator_count = ReadListLength(); // read list length. 4231 intptr_t combinator_count = ReadListLength(); // read list length.
4232 for (intptr_t i = 0; i < combinator_count; ++i) { 4232 for (intptr_t i = 0; i < combinator_count; ++i) {
4233 SkipLibraryCombinator(); 4233 SkipLibraryCombinator();
4234 } 4234 }
4235 } 4235 }
4236 4236
4237 void StreamingFlowGraphBuilder::SkipLibraryPart() {
4238 SkipListOfExpressions(); // Read annotations.
4239 ReadStringReference(); // read uri_index.
4240 }
4241
4237 void StreamingFlowGraphBuilder::SkipLibraryTypedef() { 4242 void StreamingFlowGraphBuilder::SkipLibraryTypedef() {
4238 SkipCanonicalNameReference(); // read canonical name. 4243 SkipCanonicalNameReference(); // read canonical name.
4239 ReadPosition(); // read position. 4244 ReadPosition(); // read position.
4240 SkipStringReference(); // read name index. 4245 SkipStringReference(); // read name index.
4241 ReadUInt(); // read source_uri_index. 4246 ReadUInt(); // read source_uri_index.
4242 SkipTypeParametersList(); // read type parameters. 4247 SkipTypeParametersList(); // read type parameters.
4243 SkipDartType(); // read type. 4248 SkipDartType(); // read type.
4244 } 4249 }
4245 4250
4246 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) { 4251 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) {
(...skipping 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after
7292 } 7297 }
7293 } 7298 }
7294 7299
7295 return Array::Handle(Array::null()); 7300 return Array::Handle(Array::null());
7296 } 7301 }
7297 7302
7298 } // namespace kernel 7303 } // namespace kernel
7299 } // namespace dart 7304 } // namespace dart
7300 7305
7301 #endif // !defined(DART_PRECOMPILED_RUNTIME) 7306 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698