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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 | 578 |
579 String& name = String::Handle(); | 579 String& name = String::Handle(); |
580 cls = Class::New<Bool>(); | 580 cls = Class::New<Bool>(); |
581 object_store->set_bool_class(cls); | 581 object_store->set_bool_class(cls); |
582 name = Symbols::Bool(); | 582 name = Symbols::Bool(); |
583 RegisterClass(cls, name, core_lib); | 583 RegisterClass(cls, name, core_lib); |
584 pending_classes.Add(cls, Heap::kOld); | 584 pending_classes.Add(cls, Heap::kOld); |
585 | 585 |
586 cls = object_store->array_class(); // Was allocated above. | 586 cls = object_store->array_class(); // Was allocated above. |
587 name = Symbols::ObjectArray(); | 587 name = Symbols::ObjectArray(); |
588 RegisterPrivateClass(cls, name, core_impl_lib); | 588 RegisterPrivateClass(cls, name, core_lib); |
589 pending_classes.Add(cls, Heap::kOld); | 589 pending_classes.Add(cls, Heap::kOld); |
590 | 590 |
591 cls = object_store->growable_object_array_class(); // Was allocated above. | 591 cls = object_store->growable_object_array_class(); // Was allocated above. |
592 name = Symbols::GrowableObjectArray(); | 592 name = Symbols::GrowableObjectArray(); |
593 RegisterPrivateClass(cls, name, core_impl_lib); | 593 RegisterPrivateClass(cls, name, core_lib); |
594 pending_classes.Add(cls, Heap::kOld); | 594 pending_classes.Add(cls, Heap::kOld); |
595 | 595 |
596 cls = Class::New<ImmutableArray>(); | 596 cls = Class::New<ImmutableArray>(); |
597 object_store->set_immutable_array_class(cls); | 597 object_store->set_immutable_array_class(cls); |
598 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset()); | 598 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset()); |
599 ASSERT(object_store->immutable_array_class() != object_store->array_class()); | 599 ASSERT(object_store->immutable_array_class() != object_store->array_class()); |
600 name = Symbols::ImmutableArray(); | 600 name = Symbols::ImmutableArray(); |
601 RegisterPrivateClass(cls, name, core_impl_lib); | 601 RegisterPrivateClass(cls, name, core_lib); |
602 pending_classes.Add(cls, Heap::kOld); | 602 pending_classes.Add(cls, Heap::kOld); |
603 | 603 |
604 cls = object_store->one_byte_string_class(); // Was allocated above. | 604 cls = object_store->one_byte_string_class(); // Was allocated above. |
605 name = Symbols::OneByteString(); | 605 name = Symbols::OneByteString(); |
606 RegisterPrivateClass(cls, name, core_impl_lib); | 606 RegisterPrivateClass(cls, name, core_impl_lib); |
607 pending_classes.Add(cls, Heap::kOld); | 607 pending_classes.Add(cls, Heap::kOld); |
608 | 608 |
609 cls = Class::New<TwoByteString>(); | 609 cls = Class::New<TwoByteString>(); |
610 object_store->set_two_byte_string_class(cls); | 610 object_store->set_two_byte_string_class(cls); |
611 name = Symbols::TwoByteString(); | 611 name = Symbols::TwoByteString(); |
(...skipping 11587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12199 } | 12199 } |
12200 return result.raw(); | 12200 return result.raw(); |
12201 } | 12201 } |
12202 | 12202 |
12203 | 12203 |
12204 const char* WeakProperty::ToCString() const { | 12204 const char* WeakProperty::ToCString() const { |
12205 return "_WeakProperty"; | 12205 return "_WeakProperty"; |
12206 } | 12206 } |
12207 | 12207 |
12208 } // namespace dart | 12208 } // namespace dart |
OLD | NEW |