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/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 579 |
580 String& name = String::Handle(); | 580 String& name = String::Handle(); |
581 cls = Class::New<Bool>(); | 581 cls = Class::New<Bool>(); |
582 object_store->set_bool_class(cls); | 582 object_store->set_bool_class(cls); |
583 name = Symbols::Bool(); | 583 name = Symbols::Bool(); |
584 RegisterClass(cls, name, core_lib); | 584 RegisterClass(cls, name, core_lib); |
585 pending_classes.Add(cls, Heap::kOld); | 585 pending_classes.Add(cls, Heap::kOld); |
586 | 586 |
587 cls = object_store->array_class(); // Was allocated above. | 587 cls = object_store->array_class(); // Was allocated above. |
588 name = Symbols::ObjectArray(); | 588 name = Symbols::ObjectArray(); |
589 RegisterClass(cls, name, core_impl_lib); | 589 RegisterPrivateClass(cls, name, core_impl_lib); |
590 pending_classes.Add(cls, Heap::kOld); | 590 pending_classes.Add(cls, Heap::kOld); |
591 | 591 |
592 cls = object_store->growable_object_array_class(); // Was allocated above. | 592 cls = object_store->growable_object_array_class(); // Was allocated above. |
593 name = Symbols::GrowableObjectArray(); | 593 name = Symbols::GrowableObjectArray(); |
594 RegisterClass(cls, name, core_impl_lib); | 594 RegisterPrivateClass(cls, name, core_impl_lib); |
595 pending_classes.Add(cls, Heap::kOld); | 595 pending_classes.Add(cls, Heap::kOld); |
596 | 596 |
597 cls = Class::New<ImmutableArray>(); | 597 cls = Class::New<ImmutableArray>(); |
598 object_store->set_immutable_array_class(cls); | 598 object_store->set_immutable_array_class(cls); |
599 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset()); | 599 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset()); |
600 ASSERT(object_store->immutable_array_class() != object_store->array_class()); | 600 ASSERT(object_store->immutable_array_class() != object_store->array_class()); |
601 name = Symbols::ImmutableArray(); | 601 name = Symbols::ImmutableArray(); |
602 RegisterClass(cls, name, core_impl_lib); | 602 RegisterPrivateClass(cls, name, core_impl_lib); |
603 pending_classes.Add(cls, Heap::kOld); | 603 pending_classes.Add(cls, Heap::kOld); |
604 | 604 |
605 cls = object_store->one_byte_string_class(); // Was allocated above. | 605 cls = object_store->one_byte_string_class(); // Was allocated above. |
606 name = Symbols::OneByteString(); | 606 name = Symbols::OneByteString(); |
607 RegisterClass(cls, name, core_impl_lib); | 607 RegisterClass(cls, name, core_impl_lib); |
608 pending_classes.Add(cls, Heap::kOld); | 608 pending_classes.Add(cls, Heap::kOld); |
609 | 609 |
610 cls = Class::New<TwoByteString>(); | 610 cls = Class::New<TwoByteString>(); |
611 object_store->set_two_byte_string_class(cls); | 611 object_store->set_two_byte_string_class(cls); |
612 name = Symbols::TwoByteString(); | 612 name = Symbols::TwoByteString(); |
(...skipping 11542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12155 } | 12155 } |
12156 return result.raw(); | 12156 return result.raw(); |
12157 } | 12157 } |
12158 | 12158 |
12159 | 12159 |
12160 const char* WeakProperty::ToCString() const { | 12160 const char* WeakProperty::ToCString() const { |
12161 return "_WeakProperty"; | 12161 return "_WeakProperty"; |
12162 } | 12162 } |
12163 | 12163 |
12164 } // namespace dart | 12164 } // namespace dart |
OLD | NEW |