| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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. |
| OLD | NEW |