| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 name = Symbols::Function(); | 761 name = Symbols::Function(); |
| 762 cls = Class::New<DartFunction>(); | 762 cls = Class::New<DartFunction>(); |
| 763 RegisterClass(cls, name, core_lib); | 763 RegisterClass(cls, name, core_lib); |
| 764 pending_classes.Add(cls, Heap::kOld); | 764 pending_classes.Add(cls, Heap::kOld); |
| 765 type = Type::NewNonParameterizedType(cls); | 765 type = Type::NewNonParameterizedType(cls); |
| 766 object_store->set_function_type(type); | 766 object_store->set_function_type(type); |
| 767 | 767 |
| 768 cls = Class::New<Number>(); | 768 cls = Class::New<Number>(); |
| 769 name = Symbols::Number(); | 769 name = Symbols::Number(); |
| 770 RegisterClass(cls, name, core_lib); | 770 RegisterClass(cls, name, core_lib); |
| 771 pending_classes.Add(cls, Heap::kOld); |
| 771 type = Type::NewNonParameterizedType(cls); | 772 type = Type::NewNonParameterizedType(cls); |
| 772 object_store->set_number_type(type); | 773 object_store->set_number_type(type); |
| 773 | 774 |
| 774 cls = CreateAndRegisterInterface("int", script, core_lib); | 775 cls = CreateAndRegisterInterface("int", script, core_lib); |
| 775 pending_classes.Add(cls, Heap::kOld); | 776 pending_classes.Add(cls, Heap::kOld); |
| 776 type = Type::NewNonParameterizedType(cls); | 777 type = Type::NewNonParameterizedType(cls); |
| 777 object_store->set_int_interface(type); | 778 object_store->set_int_interface(type); |
| 778 | 779 |
| 779 cls = CreateAndRegisterInterface("double", script, core_lib); | 780 cls = CreateAndRegisterInterface("double", script, core_lib); |
| 780 pending_classes.Add(cls, Heap::kOld); | 781 pending_classes.Add(cls, Heap::kOld); |
| (...skipping 10400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11181 } | 11182 } |
| 11182 return result.raw(); | 11183 return result.raw(); |
| 11183 } | 11184 } |
| 11184 | 11185 |
| 11185 | 11186 |
| 11186 const char* WeakProperty::ToCString() const { | 11187 const char* WeakProperty::ToCString() const { |
| 11187 return "_WeakProperty"; | 11188 return "_WeakProperty"; |
| 11188 } | 11189 } |
| 11189 | 11190 |
| 11190 } // namespace dart | 11191 } // namespace dart |
| OLD | NEW |