| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 CLASS_LIST_TYPED_DATA(REGISTER_EXT_TYPED_DATA_CLASS); | 938 CLASS_LIST_TYPED_DATA(REGISTER_EXT_TYPED_DATA_CLASS); |
| 939 #undef REGISTER_EXT_TYPED_DATA_CLASS | 939 #undef REGISTER_EXT_TYPED_DATA_CLASS |
| 940 // Register Float32x4 and Uint32x4 in the object store. | 940 // Register Float32x4 and Uint32x4 in the object store. |
| 941 cls = Class::New<Float32x4>(); | 941 cls = Class::New<Float32x4>(); |
| 942 object_store->set_float32x4_class(cls); | 942 object_store->set_float32x4_class(cls); |
| 943 RegisterPrivateClass(cls, Symbols::_Float32x4(), lib); | 943 RegisterPrivateClass(cls, Symbols::_Float32x4(), lib); |
| 944 cls = Class::New<Uint32x4>(); | 944 cls = Class::New<Uint32x4>(); |
| 945 object_store->set_uint32x4_class(cls); | 945 object_store->set_uint32x4_class(cls); |
| 946 RegisterPrivateClass(cls, Symbols::_Uint32x4(), lib); | 946 RegisterPrivateClass(cls, Symbols::_Uint32x4(), lib); |
| 947 | 947 |
| 948 cls = Class::New<Instance>(Symbols::Float32x4(), script, | 948 cls = Class::New<Instance>(kIllegalCid); |
| 949 Scanner::kDummyTokenIndex); | |
| 950 RegisterClass(cls, Symbols::Float32x4(), lib); | 949 RegisterClass(cls, Symbols::Float32x4(), lib); |
| 951 pending_classes.Add(cls, Heap::kOld); | 950 pending_classes.Add(cls, Heap::kOld); |
| 952 type = Type::NewNonParameterizedType(cls); | 951 type = Type::NewNonParameterizedType(cls); |
| 953 object_store->set_float32x4_type(type); | 952 object_store->set_float32x4_type(type); |
| 954 | 953 |
| 955 cls = Class::New<Instance>(Symbols::Uint32x4(), script, | 954 cls = Class::New<Instance>(kIllegalCid); |
| 956 Scanner::kDummyTokenIndex); | 955 RegisterClass(cls, Symbols::Uint32x4(), lib); |
| 957 pending_classes.Add(cls, Heap::kOld); | 956 pending_classes.Add(cls, Heap::kOld); |
| 958 type = Type::NewNonParameterizedType(cls); | 957 type = Type::NewNonParameterizedType(cls); |
| 959 object_store->set_uint32x4_type(type); | 958 object_store->set_uint32x4_type(type); |
| 960 | 959 |
| 961 object_store->set_typed_data_classes(typed_data_classes); | 960 object_store->set_typed_data_classes(typed_data_classes); |
| 962 | 961 |
| 963 // Set the super type of class Stacktrace to Object type so that the | 962 // Set the super type of class Stacktrace to Object type so that the |
| 964 // 'toString' method is implemented. | 963 // 'toString' method is implemented. |
| 965 cls = object_store->stacktrace_class(); | 964 cls = object_store->stacktrace_class(); |
| 966 cls.set_super_type(type); | 965 cls.set_super_type(type); |
| (...skipping 12201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13168 } | 13167 } |
| 13169 return result.raw(); | 13168 return result.raw(); |
| 13170 } | 13169 } |
| 13171 | 13170 |
| 13172 | 13171 |
| 13173 const char* WeakProperty::ToCString() const { | 13172 const char* WeakProperty::ToCString() const { |
| 13174 return "_WeakProperty"; | 13173 return "_WeakProperty"; |
| 13175 } | 13174 } |
| 13176 | 13175 |
| 13177 } // namespace dart | 13176 } // namespace dart |
| OLD | NEW |