OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/assert.h" | 5 #include "vm/assert.h" |
6 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
9 #include "vm/object.h" | 9 #include "vm/object.h" |
10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 String& url = String::ZoneHandle(String::New("SBB")); | 1939 String& url = String::ZoneHandle(String::New("SBB")); |
1940 Library& lib = Library::Handle(Library::New(url)); | 1940 Library& lib = Library::Handle(Library::New(url)); |
1941 lib.AddClass(ae66); | 1941 lib.AddClass(ae66); |
1942 lib.AddObject(ce68, String::ZoneHandle(ce68.name())); | 1942 lib.AddObject(ce68, String::ZoneHandle(ce68.name())); |
1943 lib.AddClass(re44); | 1943 lib.AddClass(re44); |
1944 lib.AddObject(tee, String::ZoneHandle(tee.name())); | 1944 lib.AddObject(tee, String::ZoneHandle(tee.name())); |
1945 ClassDictionaryIterator iterator(lib); | 1945 ClassDictionaryIterator iterator(lib); |
1946 int count = 0; | 1946 int count = 0; |
1947 Class& cls = Class::Handle(); | 1947 Class& cls = Class::Handle(); |
1948 while (iterator.HasNext()) { | 1948 while (iterator.HasNext()) { |
1949 cls = iterator.GetNext(); | 1949 cls = iterator.GetNextClass(); |
1950 ASSERT((cls.raw() == ae66.raw()) || (cls.raw() == re44.raw())); | 1950 ASSERT((cls.raw() == ae66.raw()) || (cls.raw() == re44.raw())); |
1951 count++; | 1951 count++; |
1952 } | 1952 } |
1953 ASSERT(count == 2); | 1953 ASSERT(count == 2); |
1954 } | 1954 } |
1955 | 1955 |
1956 #endif // TARGET_ARCH_IA32. | 1956 #endif // TARGET_ARCH_IA32. |
1957 | 1957 |
1958 } // namespace dart | 1958 } // namespace dart |
OLD | NEW |