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

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

Issue 2986093002: Revert two Kernel changes that were causing test failures. (Closed)
Patch Set: Revert "Migrate language/async_backwards... ... language/async_star_take..." 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 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
4240 SkipDartType(); // read type. 4228 SkipDartType(); // read type.
4241 } 4229 }
4242 4230
4243 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) { 4231 TokenPosition StreamingFlowGraphBuilder::ReadPosition(bool record) {
4244 TokenPosition position = reader_->ReadPosition(); 4232 TokenPosition position = reader_->ReadPosition();
4245 if (record) { 4233 if (record) {
4246 record_token_position(position); 4234 record_token_position(position);
4247 } 4235 }
4248 return position; 4236 return position;
4249 } 4237 }
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
7283 } 7271 }
7284 } 7272 }
7285 7273
7286 return Array::Handle(Array::null()); 7274 return Array::Handle(Array::null());
7287 } 7275 }
7288 7276
7289 } // namespace kernel 7277 } // namespace kernel
7290 } // namespace dart 7278 } // namespace dart
7291 7279
7292 #endif // !defined(DART_PRECOMPILED_RUNTIME) 7280 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel_binary_flowgraph.h ('k') | tests/compiler/dart2js_extra/assert_with_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698