| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/code_generator.h" | 7 #include "vm/code_generator.h" |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/hash_table.h" | 9 #include "vm/hash_table.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 3284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3295 const Script& script, | 3295 const Script& script, |
| 3296 TokenPosition type_pos, | 3296 TokenPosition type_pos, |
| 3297 const char* format, | 3297 const char* format, |
| 3298 ...) { | 3298 ...) { |
| 3299 va_list args; | 3299 va_list args; |
| 3300 va_start(args, format); | 3300 va_start(args, format); |
| 3301 const UnresolvedClass& unresolved_class = | 3301 const UnresolvedClass& unresolved_class = |
| 3302 UnresolvedClass::Handle(UnresolvedClass::New(LibraryPrefix::Handle(), | 3302 UnresolvedClass::Handle(UnresolvedClass::New(LibraryPrefix::Handle(), |
| 3303 Symbols::Empty(), type_pos)); | 3303 Symbols::Empty(), type_pos)); |
| 3304 const Type& type = Type::Handle( | 3304 const Type& type = Type::Handle( |
| 3305 Type::New(unresolved_class, TypeArguments::Handle(), type_pos)); | 3305 Type::New(unresolved_class, Object::null_type_arguments(), type_pos)); |
| 3306 MarkTypeMalformed(prev_error, script, type, format, args); | 3306 MarkTypeMalformed(prev_error, script, type, format, args); |
| 3307 va_end(args); | 3307 va_end(args); |
| 3308 ASSERT(type.IsMalformed()); | 3308 ASSERT(type.IsMalformed()); |
| 3309 ASSERT(type.IsFinalized()); | 3309 ASSERT(type.IsFinalized()); |
| 3310 return type.raw(); | 3310 return type.raw(); |
| 3311 } | 3311 } |
| 3312 | 3312 |
| 3313 | 3313 |
| 3314 void ClassFinalizer::FinalizeMalformedType(const Error& prev_error, | 3314 void ClassFinalizer::FinalizeMalformedType(const Error& prev_error, |
| 3315 const Script& script, | 3315 const Script& script, |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3712 ProgramVisitor::VisitFunctions(&function_visitor); | 3712 ProgramVisitor::VisitFunctions(&function_visitor); |
| 3713 | 3713 |
| 3714 class ClearCodeClassVisitor : public ClassVisitor { | 3714 class ClearCodeClassVisitor : public ClassVisitor { |
| 3715 void Visit(const Class& cls) { cls.DisableAllocationStub(); } | 3715 void Visit(const Class& cls) { cls.DisableAllocationStub(); } |
| 3716 }; | 3716 }; |
| 3717 ClearCodeClassVisitor class_visitor; | 3717 ClearCodeClassVisitor class_visitor; |
| 3718 ProgramVisitor::VisitClasses(&class_visitor); | 3718 ProgramVisitor::VisitClasses(&class_visitor); |
| 3719 } | 3719 } |
| 3720 | 3720 |
| 3721 } // namespace dart | 3721 } // namespace dart |
| OLD | NEW |