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

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

Issue 2512483002: Support reloading from source on top of a script snapshot. (Closed)
Patch Set: bug fixes Created 4 years, 1 month 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "vm/hash_table.h" 7 #include "vm/hash_table.h"
8 #include "vm/isolate_reload.h" 8 #include "vm/isolate_reload.h"
9 #include "vm/log.h" 9 #include "vm/log.h"
10 #include "vm/resolver.h" 10 #include "vm/resolver.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 const String& lib_url = String::Handle(to_.url()); 518 const String& lib_url = String::Handle(to_.url());
519 from_.ToCString(); 519 from_.ToCString();
520 return String::NewFormatted( 520 return String::NewFormatted(
521 "Reloading support for deferred loading has not yet been implemented:" 521 "Reloading support for deferred loading has not yet been implemented:"
522 " library '%s' has deferred import '%s'", 522 " library '%s' has deferred import '%s'",
523 lib_url.ToCString(), name_.ToCString()); 523 lib_url.ToCString(), name_.ToCString());
524 } 524 }
525 }; 525 };
526 526
527 527
528 // This is executed before interating over the instances. 528 // This is executed before iterating over the instances.
529 void Class::CheckReload(const Class& replacement, 529 void Class::CheckReload(const Class& replacement,
530 IsolateReloadContext* context) const { 530 IsolateReloadContext* context) const {
531 ASSERT(IsolateReloadContext::IsSameClass(*this, replacement)); 531 ASSERT(IsolateReloadContext::IsSameClass(*this, replacement));
532 532
533 // Class cannot change enum property. 533 // Class cannot change enum property.
534 if (is_enum_class() != replacement.is_enum_class()) { 534 if (is_enum_class() != replacement.is_enum_class()) {
535 context->AddReasonForCancelling(new (context->zone()) EnumClassConflict( 535 context->AddReasonForCancelling(new (context->zone()) EnumClassConflict(
536 context->zone(), *this, replacement)); 536 context->zone(), *this, replacement));
537 return; 537 return;
538 } 538 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 const Array& data_array = 744 const Array& data_array =
745 Array::Handle(zone, CachedEmptyICDataArray(num_args)); 745 Array::Handle(zone, CachedEmptyICDataArray(num_args));
746 set_ic_data_array(data_array); 746 set_ic_data_array(data_array);
747 } 747 }
748 } 748 }
749 } 749 }
750 750
751 #endif // !PRODUCT 751 #endif // !PRODUCT
752 752
753 } // namespace dart. 753 } // namespace dart.
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | runtime/vm/service.cc » ('j') | runtime/vm/unit_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698