| 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/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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 class_function = test_class.LookupDynamicFunction(function_name); | 154 class_function = test_class.LookupDynamicFunction(function_name); |
| 155 } | 155 } |
| 156 if (class_function.IsNull()) { | 156 if (class_function.IsNull()) { |
| 157 OS::PrintErr("%s implements '%s' missing: '%s'\n", | 157 OS::PrintErr("%s implements '%s' missing: '%s'\n", |
| 158 class_name.ToCString(), | 158 class_name.ToCString(), |
| 159 interface_name.ToCString(), | 159 interface_name.ToCString(), |
| 160 function_name.ToCString()); | 160 function_name.ToCString()); |
| 161 } else { | 161 } else { |
| 162 Error& malformed_error = Error::Handle(); | 162 Error& malformed_error = Error::Handle(); |
| 163 if (!class_function.IsSubtypeOf(TypeArguments::Handle(), | 163 if (!class_function.IsSubtypeOf(TypeArguments::Handle(), |
| 164 interface_function, | 164 interface_function, |
| 165 TypeArguments::Handle(), | 165 TypeArguments::Handle(), |
| 166 &malformed_error)) { | 166 &malformed_error)) { |
| 167 if (!malformed_error.IsNull()) { | 167 if (!malformed_error.IsNull()) { |
| 168 OS::PrintErr("%s\n", malformed_error.ToErrorCString()); | 168 OS::PrintErr("%s\n", malformed_error.ToErrorCString()); |
| 169 } | 169 } |
| 170 OS::PrintErr("The type of instance method '%s' in class '%s' is not " | 170 OS::PrintErr("The type of instance method '%s' in class '%s' is not " |
| 171 "a subtype of the type of '%s' in interface '%s'\n", | 171 "a subtype of the type of '%s' in interface '%s'\n", |
| 172 function_name.ToCString(), | 172 function_name.ToCString(), |
| 173 class_name.ToCString(), | 173 class_name.ToCString(), |
| 174 function_name.ToCString(), | 174 function_name.ToCString(), |
| 175 interface_name.ToCString()); | 175 interface_name.ToCString()); |
| 176 } | 176 } |
| (...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 void ClassFinalizer::ReportError(const char* format, ...) { | 1497 void ClassFinalizer::ReportError(const char* format, ...) { |
| 1498 va_list args; | 1498 va_list args; |
| 1499 va_start(args, format); | 1499 va_start(args, format); |
| 1500 const Error& error = Error::Handle( | 1500 const Error& error = Error::Handle( |
| 1501 Parser::FormatError(Script::Handle(), -1, "Error", format, args)); | 1501 Parser::FormatError(Script::Handle(), -1, "Error", format, args)); |
| 1502 va_end(args); | 1502 va_end(args); |
| 1503 ReportError(error); | 1503 ReportError(error); |
| 1504 } | 1504 } |
| 1505 | 1505 |
| 1506 } // namespace dart | 1506 } // namespace dart |
| OLD | NEW |