| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/class_finalizer.h" | 5 #include "vm/class_finalizer.h" |
| 6 | 6 |
| 7 #include "vm/flags.h" | 7 #include "vm/flags.h" |
| 8 #include "vm/heap.h" | 8 #include "vm/heap.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 while (class_function.IsNull()) { | 161 while (class_function.IsNull()) { |
| 162 test_class = test_class.SuperClass(); | 162 test_class = test_class.SuperClass(); |
| 163 if (test_class.IsNull()) break; | 163 if (test_class.IsNull()) break; |
| 164 class_function = test_class.LookupDynamicFunction(function_name); | 164 class_function = test_class.LookupDynamicFunction(function_name); |
| 165 } | 165 } |
| 166 if (class_function.IsNull()) { | 166 if (class_function.IsNull()) { |
| 167 OS::Print("%s implements '%s' missing: '%s'\n", | 167 OS::Print("%s implements '%s' missing: '%s'\n", |
| 168 class_name.ToCString(), | 168 class_name.ToCString(), |
| 169 interface_name.ToCString(), | 169 interface_name.ToCString(), |
| 170 function_name.ToCString()); | 170 function_name.ToCString()); |
| 171 } else if (class_function.IsSubtypeOf(TypeArguments::Handle(), | 171 } else if (!class_function.IsSubtypeOf(TypeArguments::Handle(), |
| 172 interface_function, | 172 interface_function, |
| 173 TypeArguments::Handle())) { | 173 TypeArguments::Handle())) { |
| 174 OS::Print("The type of instance method '%s' in class '%s' is not a " | 174 OS::Print("The type of instance method '%s' in class '%s' is not a " |
| 175 "subtype of the type of '%s' in interface '%s'\n", | 175 "subtype of the type of '%s' in interface '%s'\n", |
| 176 function_name.ToCString(), | 176 function_name.ToCString(), |
| 177 class_name.ToCString(), | 177 class_name.ToCString(), |
| 178 function_name.ToCString(), | 178 function_name.ToCString(), |
| 179 interface_name.ToCString()); | 179 interface_name.ToCString()); |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 } | 182 } |
| 183 } | 183 } |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 va_end(args); | 1177 va_end(args); |
| 1178 if (FLAG_warning_as_error) { | 1178 if (FLAG_warning_as_error) { |
| 1179 Isolate::Current()->long_jump_base()->Jump(1, error); | 1179 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 1180 UNREACHABLE(); | 1180 UNREACHABLE(); |
| 1181 } else { | 1181 } else { |
| 1182 OS::Print("%s", error.ToErrorCString()); | 1182 OS::Print("%s", error.ToErrorCString()); |
| 1183 } | 1183 } |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 } // namespace dart | 1186 } // namespace dart |
| OLD | NEW |