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" |
11 #include "vm/object_store.h" | 11 #include "vm/object_store.h" |
12 #include "vm/parser.h" | 12 #include "vm/parser.h" |
| 13 #include "vm/symbols.h" |
13 | 14 |
14 namespace dart { | 15 namespace dart { |
15 | 16 |
16 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes."); | 17 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes."); |
17 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization."); | 18 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization."); |
18 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization."); | 19 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization."); |
19 DEFINE_FLAG(bool, verify_implements, false, | 20 DEFINE_FLAG(bool, verify_implements, false, |
20 "Verify that all classes implement their interface."); | 21 "Verify that all classes implement their interface."); |
21 DECLARE_FLAG(bool, enable_type_checks); | 22 DECLARE_FLAG(bool, enable_type_checks); |
22 | 23 |
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 void ClassFinalizer::ReportError(const char* format, ...) { | 1504 void ClassFinalizer::ReportError(const char* format, ...) { |
1504 va_list args; | 1505 va_list args; |
1505 va_start(args, format); | 1506 va_start(args, format); |
1506 const Error& error = Error::Handle( | 1507 const Error& error = Error::Handle( |
1507 Parser::FormatError(Script::Handle(), -1, "Error", format, args)); | 1508 Parser::FormatError(Script::Handle(), -1, "Error", format, args)); |
1508 va_end(args); | 1509 va_end(args); |
1509 ReportError(error); | 1510 ReportError(error); |
1510 } | 1511 } |
1511 | 1512 |
1512 } // namespace dart | 1513 } // namespace dart |
OLD | NEW |