| OLD | NEW |
| 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/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2865 "'%s' is not private and therefore cannot be patched", | 2865 "'%s' is not private and therefore cannot be patched", |
| 2866 name.ToCString()); | 2866 name.ToCString()); |
| 2867 return false; | 2867 return false; |
| 2868 } | 2868 } |
| 2869 } | 2869 } |
| 2870 return true; | 2870 return true; |
| 2871 } | 2871 } |
| 2872 | 2872 |
| 2873 | 2873 |
| 2874 void Class::set_cha_codes(const Array& cache) const { | 2874 void Class::set_cha_codes(const Array& cache) const { |
| 2875 StorePointer(&raw_ptr()->cha_codes_, cache.raw()); | 2875 StorePointer(&raw_ptr()->dependent_code_, cache.raw()); |
| 2876 } | 2876 } |
| 2877 | 2877 |
| 2878 | 2878 |
| 2879 // Apply the members from the patch class to the original class. | 2879 // Apply the members from the patch class to the original class. |
| 2880 bool Class::ApplyPatch(const Class& patch, Error* error) const { | 2880 bool Class::ApplyPatch(const Class& patch, Error* error) const { |
| 2881 ASSERT(error != NULL); | 2881 ASSERT(error != NULL); |
| 2882 ASSERT(!is_finalized()); | 2882 ASSERT(!is_finalized()); |
| 2883 // Shared handles used during the iteration. | 2883 // Shared handles used during the iteration. |
| 2884 String& member_name = String::Handle(); | 2884 String& member_name = String::Handle(); |
| 2885 | 2885 |
| (...skipping 19511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22397 return UserTag::null(); | 22397 return UserTag::null(); |
| 22398 } | 22398 } |
| 22399 | 22399 |
| 22400 | 22400 |
| 22401 const char* UserTag::ToCString() const { | 22401 const char* UserTag::ToCString() const { |
| 22402 const String& tag_label = String::Handle(label()); | 22402 const String& tag_label = String::Handle(label()); |
| 22403 return tag_label.ToCString(); | 22403 return tag_label.ToCString(); |
| 22404 } | 22404 } |
| 22405 | 22405 |
| 22406 } // namespace dart | 22406 } // namespace dart |
| OLD | NEW |