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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 const Script& script = Script::Handle(cls.script()); | 1219 const Script& script = Script::Handle(cls.script()); |
1220 ReportError(script, field.token_index(), | 1220 ReportError(script, field.token_index(), |
1221 "const class '%s' has non-final field '%s'\n", | 1221 "const class '%s' has non-final field '%s'\n", |
1222 class_name.ToCString(), field_name.ToCString()); | 1222 class_name.ToCString(), field_name.ToCString()); |
1223 } | 1223 } |
1224 } | 1224 } |
1225 } | 1225 } |
1226 | 1226 |
1227 | 1227 |
1228 void ClassFinalizer::PrintClassInformation(const Class& cls) { | 1228 void ClassFinalizer::PrintClassInformation(const Class& cls) { |
1229 HANDLESCOPE(); | 1229 HANDLESCOPE(Isolate::Current()); |
1230 const String& class_name = String::Handle(cls.Name()); | 1230 const String& class_name = String::Handle(cls.Name()); |
1231 OS::Print("%s '%s'", | 1231 OS::Print("%s '%s'", |
1232 cls.is_interface() ? "interface" : "class", | 1232 cls.is_interface() ? "interface" : "class", |
1233 class_name.ToCString()); | 1233 class_name.ToCString()); |
1234 const Library& library = Library::Handle(cls.library()); | 1234 const Library& library = Library::Handle(cls.library()); |
1235 if (!library.IsNull()) { | 1235 if (!library.IsNull()) { |
1236 OS::Print(" library '%s%s':\n", | 1236 OS::Print(" library '%s%s':\n", |
1237 String::Handle(library.url()).ToCString(), | 1237 String::Handle(library.url()).ToCString(), |
1238 String::Handle(library.private_key()).ToCString()); | 1238 String::Handle(library.private_key()).ToCString()); |
1239 } else { | 1239 } else { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 va_end(args); | 1306 va_end(args); |
1307 if (FLAG_warning_as_error) { | 1307 if (FLAG_warning_as_error) { |
1308 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); | 1308 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); |
1309 UNREACHABLE(); | 1309 UNREACHABLE(); |
1310 } else { | 1310 } else { |
1311 OS::Print(message_buffer); | 1311 OS::Print(message_buffer); |
1312 } | 1312 } |
1313 } | 1313 } |
1314 | 1314 |
1315 } // namespace dart | 1315 } // namespace dart |
OLD | NEW |