Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: runtime/vm/object.cc

Issue 10990055: Hide VM-only coreimpl List implementation types. These should not be (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x64 as well, sigh. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 String& name = String::Handle(); 583 String& name = String::Handle();
584 cls = Class::New<Bool>(); 584 cls = Class::New<Bool>();
585 object_store->set_bool_class(cls); 585 object_store->set_bool_class(cls);
586 name = Symbols::Bool(); 586 name = Symbols::Bool();
587 RegisterClass(cls, name, core_lib); 587 RegisterClass(cls, name, core_lib);
588 pending_classes.Add(cls, Heap::kOld); 588 pending_classes.Add(cls, Heap::kOld);
589 589
590 cls = object_store->array_class(); // Was allocated above. 590 cls = object_store->array_class(); // Was allocated above.
591 name = Symbols::ObjectArray(); 591 name = Symbols::ObjectArray();
592 RegisterClass(cls, name, core_impl_lib); 592 RegisterPrivateClass(cls, name, core_impl_lib);
593 pending_classes.Add(cls, Heap::kOld); 593 pending_classes.Add(cls, Heap::kOld);
594 594
595 cls = object_store->growable_object_array_class(); // Was allocated above. 595 cls = object_store->growable_object_array_class(); // Was allocated above.
596 name = Symbols::GrowableObjectArray(); 596 name = Symbols::GrowableObjectArray();
597 RegisterClass(cls, name, core_impl_lib); 597 RegisterPrivateClass(cls, name, core_impl_lib);
598 pending_classes.Add(cls, Heap::kOld); 598 pending_classes.Add(cls, Heap::kOld);
599 599
600 cls = Class::New<ImmutableArray>(); 600 cls = Class::New<ImmutableArray>();
601 object_store->set_immutable_array_class(cls); 601 object_store->set_immutable_array_class(cls);
602 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset()); 602 cls.set_type_arguments_instance_field_offset(Array::type_arguments_offset());
603 ASSERT(object_store->immutable_array_class() != object_store->array_class()); 603 ASSERT(object_store->immutable_array_class() != object_store->array_class());
604 name = Symbols::ImmutableArray(); 604 name = Symbols::ImmutableArray();
605 RegisterClass(cls, name, core_impl_lib); 605 RegisterPrivateClass(cls, name, core_impl_lib);
606 pending_classes.Add(cls, Heap::kOld); 606 pending_classes.Add(cls, Heap::kOld);
607 607
608 cls = object_store->one_byte_string_class(); // Was allocated above. 608 cls = object_store->one_byte_string_class(); // Was allocated above.
609 name = Symbols::OneByteString(); 609 name = Symbols::OneByteString();
610 RegisterClass(cls, name, core_impl_lib); 610 RegisterClass(cls, name, core_impl_lib);
611 pending_classes.Add(cls, Heap::kOld); 611 pending_classes.Add(cls, Heap::kOld);
612 612
613 cls = Class::New<TwoByteString>(); 613 cls = Class::New<TwoByteString>();
614 object_store->set_two_byte_string_class(cls); 614 object_store->set_two_byte_string_class(cls);
615 name = Symbols::TwoByteString(); 615 name = Symbols::TwoByteString();
(...skipping 11522 matching lines...) Expand 10 before | Expand all | Expand 10 after
12138 } 12138 }
12139 return result.raw(); 12139 return result.raw();
12140 } 12140 }
12141 12141
12142 12142
12143 const char* WeakProperty::ToCString() const { 12143 const char* WeakProperty::ToCString() const {
12144 return "_WeakProperty"; 12144 return "_WeakProperty";
12145 } 12145 }
12146 12146
12147 } // namespace dart 12147 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698