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/flags.h" | 7 #include "vm/flags.h" |
8 #include "vm/hash_table.h" | 8 #include "vm/hash_table.h" |
9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 zone, Function::New( | 1641 zone, Function::New( |
1642 getter_name, RawFunction::kImplicitStaticFinalGetter, | 1642 getter_name, RawFunction::kImplicitStaticFinalGetter, |
1643 /* is_static = */ true, | 1643 /* is_static = */ true, |
1644 /* is_const = */ field.is_const(), | 1644 /* is_const = */ field.is_const(), |
1645 /* is_abstract = */ false, | 1645 /* is_abstract = */ false, |
1646 /* is_external = */ false, | 1646 /* is_external = */ false, |
1647 /* is_native = */ false, cls, field.token_pos())); | 1647 /* is_native = */ false, cls, field.token_pos())); |
1648 getter.set_result_type(type); | 1648 getter.set_result_type(type); |
1649 getter.set_is_debuggable(false); | 1649 getter.set_is_debuggable(false); |
1650 getter.set_kernel_offset(field.kernel_offset()); | 1650 getter.set_kernel_offset(field.kernel_offset()); |
| 1651 getter.set_kernel_data(TypedData::Handle(zone, field.kernel_data())); |
1651 cls.AddFunction(getter); | 1652 cls.AddFunction(getter); |
1652 field.SetStaticValue(Object::sentinel(), true); | 1653 field.SetStaticValue(Object::sentinel(), true); |
1653 } | 1654 } |
1654 } | 1655 } |
1655 } | 1656 } |
1656 } | 1657 } |
1657 // If we check for bad overrides, collect interfaces, super interfaces, and | 1658 // If we check for bad overrides, collect interfaces, super interfaces, and |
1658 // super classes of this class. | 1659 // super classes of this class. |
1659 GrowableArray<const Class*> interfaces(zone, 4); | 1660 GrowableArray<const Class*> interfaces(zone, 4); |
1660 if (Isolate::Current()->error_on_bad_override()) { | 1661 if (Isolate::Current()->error_on_bad_override()) { |
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3791 ProgramVisitor::VisitFunctions(&function_visitor); | 3792 ProgramVisitor::VisitFunctions(&function_visitor); |
3792 | 3793 |
3793 class ClearCodeClassVisitor : public ClassVisitor { | 3794 class ClearCodeClassVisitor : public ClassVisitor { |
3794 void Visit(const Class& cls) { cls.DisableAllocationStub(); } | 3795 void Visit(const Class& cls) { cls.DisableAllocationStub(); } |
3795 }; | 3796 }; |
3796 ClearCodeClassVisitor class_visitor; | 3797 ClearCodeClassVisitor class_visitor; |
3797 ProgramVisitor::VisitClasses(&class_visitor); | 3798 ProgramVisitor::VisitClasses(&class_visitor); |
3798 } | 3799 } |
3799 | 3800 |
3800 } // namespace dart | 3801 } // namespace dart |
OLD | NEW |