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

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

Issue 1493533002: Reset top-level class finalization (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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/object.cc ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/parser.h" 5 #include "vm/parser.h"
6 #include "vm/flags.h" 6 #include "vm/flags.h"
7 7
8 #ifndef DART_PRECOMPILED 8 #ifndef DART_PRECOMPILED
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after
6185 } 6185 }
6186 } 6186 }
6187 } 6187 }
6188 6188
6189 if (top_level.fields().length() > 0) { 6189 if (top_level.fields().length() > 0) {
6190 toplevel_class.AddFields(top_level.fields()); 6190 toplevel_class.AddFields(top_level.fields());
6191 } 6191 }
6192 for (intptr_t i = 0; i < top_level.functions().length(); i++) { 6192 for (intptr_t i = 0; i < top_level.functions().length(); i++) {
6193 toplevel_class.AddFunction(*top_level.functions()[i]); 6193 toplevel_class.AddFunction(*top_level.functions()[i]);
6194 } 6194 }
6195 if (toplevel_class.is_finalized()) {
6196 toplevel_class.ResetFinalization();
6197 }
6195 pending_classes.Add(toplevel_class, Heap::kOld); 6198 pending_classes.Add(toplevel_class, Heap::kOld);
6196 } 6199 }
6197 6200
6198 6201
6199 void Parser::ChainNewBlock(LocalScope* outer_scope) { 6202 void Parser::ChainNewBlock(LocalScope* outer_scope) {
6200 Block* block = new(Z) Block( 6203 Block* block = new(Z) Block(
6201 current_block_, 6204 current_block_,
6202 outer_scope, 6205 outer_scope,
6203 new(Z) SequenceNode(TokenPos(), outer_scope)); 6206 new(Z) SequenceNode(TokenPos(), outer_scope));
6204 current_block_ = block; 6207 current_block_ = block;
(...skipping 8243 matching lines...) Expand 10 before | Expand all | Expand 10 after
14448 const ArgumentListNode& function_args, 14451 const ArgumentListNode& function_args,
14449 const LocalVariable* temp_for_last_arg, 14452 const LocalVariable* temp_for_last_arg,
14450 bool is_super_invocation) { 14453 bool is_super_invocation) {
14451 UNREACHABLE(); 14454 UNREACHABLE();
14452 return NULL; 14455 return NULL;
14453 } 14456 }
14454 14457
14455 } // namespace dart 14458 } // namespace dart
14456 14459
14457 #endif // DART_PRECOMPILED 14460 #endif // DART_PRECOMPILED
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698