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

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

Issue 2512483002: Support reloading from source on top of a script snapshot. (Closed)
Patch Set: ... 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
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | runtime/vm/service.cc » ('j') | 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) 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 const String& lib_url = String::Handle(to_.url()); 536 const String& lib_url = String::Handle(to_.url());
537 from_.ToCString(); 537 from_.ToCString();
538 return String::NewFormatted( 538 return String::NewFormatted(
539 "Reloading support for deferred loading has not yet been implemented:" 539 "Reloading support for deferred loading has not yet been implemented:"
540 " library '%s' has deferred import '%s'", 540 " library '%s' has deferred import '%s'",
541 lib_url.ToCString(), name_.ToCString()); 541 lib_url.ToCString(), name_.ToCString());
542 } 542 }
543 }; 543 };
544 544
545 545
546 // This is executed before interating over the instances. 546 // This is executed before iterating over the instances.
547 void Class::CheckReload(const Class& replacement, 547 void Class::CheckReload(const Class& replacement,
548 IsolateReloadContext* context) const { 548 IsolateReloadContext* context) const {
549 ASSERT(IsolateReloadContext::IsSameClass(*this, replacement)); 549 ASSERT(IsolateReloadContext::IsSameClass(*this, replacement));
550 550
551 // Class cannot change enum property. 551 // Class cannot change enum property.
552 if (is_enum_class() != replacement.is_enum_class()) { 552 if (is_enum_class() != replacement.is_enum_class()) {
553 context->AddReasonForCancelling(new (context->zone()) EnumClassConflict( 553 context->AddReasonForCancelling(new (context->zone()) EnumClassConflict(
554 context->zone(), *this, replacement)); 554 context->zone(), *this, replacement));
555 return; 555 return;
556 } 556 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 const Array& data_array = 763 const Array& data_array =
764 Array::Handle(zone, CachedEmptyICDataArray(num_args)); 764 Array::Handle(zone, CachedEmptyICDataArray(num_args));
765 set_ic_data_array(data_array); 765 set_ic_data_array(data_array);
766 } 766 }
767 } 767 }
768 } 768 }
769 769
770 #endif // !PRODUCT 770 #endif // !PRODUCT
771 771
772 } // namespace dart. 772 } // namespace dart.
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698