OLD | NEW |
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 Loading... |
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 Loading... |
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. |
OLD | NEW |