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

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

Issue 2983413002: Resynthesize constructor initializers from Kernel. (Closed)
Patch Set: 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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_BINARY_FLOWGRAPH_H_ 5 #ifndef RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ 6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 9
10 #include <map> 10 #include <map>
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 if (++next_read_ == field) return; 1182 if (++next_read_ == field) return;
1183 } 1183 }
1184 case kFunction: 1184 case kFunction:
1185 builder_->SkipFunctionNode(); // read function. 1185 builder_->SkipFunctionNode(); // read function.
1186 if (++next_read_ == field) return; 1186 if (++next_read_ == field) return;
1187 case kInitializers: { 1187 case kInitializers: {
1188 intptr_t list_length = 1188 intptr_t list_length =
1189 builder_->ReadListLength(); // read initializers list length. 1189 builder_->ReadListLength(); // read initializers list length.
1190 for (intptr_t i = 0; i < list_length; i++) { 1190 for (intptr_t i = 0; i < list_length; i++) {
1191 Tag tag = builder_->ReadTag(); 1191 Tag tag = builder_->ReadTag();
1192 builder_->ReadByte(); // read isSynthetic.
1192 switch (tag) { 1193 switch (tag) {
1193 case kInvalidInitializer: 1194 case kInvalidInitializer:
1194 continue; 1195 continue;
1195 case kFieldInitializer: 1196 case kFieldInitializer:
1196 builder_->SkipCanonicalNameReference(); // read field_reference. 1197 builder_->SkipCanonicalNameReference(); // read field_reference.
1197 builder_->SkipExpression(); // read value. 1198 builder_->SkipExpression(); // read value.
1198 continue; 1199 continue;
1199 case kSuperInitializer: 1200 case kSuperInitializer:
1200 builder_->SkipCanonicalNameReference(); // read target_reference. 1201 builder_->SkipCanonicalNameReference(); // read target_reference.
1201 builder_->SkipArguments(); // read arguments. 1202 builder_->SkipArguments(); // read arguments.
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 private: 1531 private:
1531 Reader* reader_; 1532 Reader* reader_;
1532 intptr_t saved_offset_; 1533 intptr_t saved_offset_;
1533 }; 1534 };
1534 1535
1535 } // namespace kernel 1536 } // namespace kernel
1536 } // namespace dart 1537 } // namespace dart
1537 1538
1538 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1539 #endif // !defined(DART_PRECOMPILED_RUNTIME)
1539 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ 1540 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698