OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/class_finalizer.h" | 5 #include "vm/class_finalizer.h" |
6 | 6 |
7 #include "vm/code_generator.h" | 7 #include "vm/code_generator.h" |
8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 #if defined(DEBUG) | 193 #if defined(DEBUG) |
194 // Basic checking. | 194 // Basic checking. |
195 cls = object_store->object_class(); | 195 cls = object_store->object_class(); |
196 ASSERT(Instance::InstanceSize() == cls.instance_size()); | 196 ASSERT(Instance::InstanceSize() == cls.instance_size()); |
197 cls = object_store->integer_implementation_class(); | 197 cls = object_store->integer_implementation_class(); |
198 ASSERT(Integer::InstanceSize() == cls.instance_size()); | 198 ASSERT(Integer::InstanceSize() == cls.instance_size()); |
199 cls = object_store->smi_class(); | 199 cls = object_store->smi_class(); |
200 ASSERT(Smi::InstanceSize() == cls.instance_size()); | 200 ASSERT(Smi::InstanceSize() == cls.instance_size()); |
201 cls = object_store->mint_class(); | 201 cls = object_store->mint_class(); |
202 ASSERT(Mint::InstanceSize() == cls.instance_size()); | 202 ASSERT(Mint::InstanceSize() == cls.instance_size()); |
203 cls = object_store->bigint_class(); | |
204 ASSERT(Bigint::InstanceSize() == cls.instance_size()); | |
205 cls = object_store->one_byte_string_class(); | 203 cls = object_store->one_byte_string_class(); |
206 ASSERT(OneByteString::InstanceSize() == cls.instance_size()); | 204 ASSERT(OneByteString::InstanceSize() == cls.instance_size()); |
207 cls = object_store->two_byte_string_class(); | 205 cls = object_store->two_byte_string_class(); |
208 ASSERT(TwoByteString::InstanceSize() == cls.instance_size()); | 206 ASSERT(TwoByteString::InstanceSize() == cls.instance_size()); |
209 cls = object_store->external_one_byte_string_class(); | 207 cls = object_store->external_one_byte_string_class(); |
210 ASSERT(ExternalOneByteString::InstanceSize() == cls.instance_size()); | 208 ASSERT(ExternalOneByteString::InstanceSize() == cls.instance_size()); |
211 cls = object_store->external_two_byte_string_class(); | 209 cls = object_store->external_two_byte_string_class(); |
212 ASSERT(ExternalTwoByteString::InstanceSize() == cls.instance_size()); | 210 ASSERT(ExternalTwoByteString::InstanceSize() == cls.instance_size()); |
213 cls = object_store->double_class(); | 211 cls = object_store->double_class(); |
214 ASSERT(Double::InstanceSize() == cls.instance_size()); | 212 ASSERT(Double::InstanceSize() == cls.instance_size()); |
(...skipping 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3075 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields()); | 3073 ASSERT(fields_array.Length() == ByteBuffer::NumberOfFields()); |
3076 field ^= fields_array.At(0); | 3074 field ^= fields_array.At(0); |
3077 ASSERT(field.Offset() == ByteBuffer::data_offset()); | 3075 ASSERT(field.Offset() == ByteBuffer::data_offset()); |
3078 name ^= field.name(); | 3076 name ^= field.name(); |
3079 expected_name ^= String::New("_data"); | 3077 expected_name ^= String::New("_data"); |
3080 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name)); | 3078 ASSERT(String::EqualsIgnoringPrivateKey(name, expected_name)); |
3081 #endif | 3079 #endif |
3082 } | 3080 } |
3083 | 3081 |
3084 } // namespace dart | 3082 } // namespace dart |
OLD | NEW |