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

Side by Side Diff: vm/object_test.cc

Issue 8342046: Add an imported into list for libraries so that it is possible to lookup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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
« no previous file with comments | « vm/object.cc ('k') | vm/raw_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « vm/object.cc ('k') | vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698