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

Side by Side Diff: runtime/vm/cha_test.cc

Issue 446373002: VM: Fix bug in CHA for signature classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | runtime/vm/class_finalizer.cc » ('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) 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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/cha.h" 6 #include "vm/cha.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 EXPECT(CHA::HasSubclasses(kInstanceCid)); 118 EXPECT(CHA::HasSubclasses(kInstanceCid));
119 EXPECT(!CHA::HasSubclasses(kSmiCid)); 119 EXPECT(!CHA::HasSubclasses(kSmiCid));
120 EXPECT(!CHA::HasSubclasses(kNullCid)); 120 EXPECT(!CHA::HasSubclasses(kNullCid));
121 EXPECT(!CHA::HasSubclasses(kDynamicCid)); 121 EXPECT(!CHA::HasSubclasses(kDynamicCid));
122 EXPECT(!CHA::HasSubclasses(kVoidCid)); 122 EXPECT(!CHA::HasSubclasses(kVoidCid));
123 EXPECT(CHA::HasSubclasses(class_a_id)); 123 EXPECT(CHA::HasSubclasses(class_a_id));
124 EXPECT(CHA::HasSubclasses(class_b_id)); 124 EXPECT(CHA::HasSubclasses(class_b_id));
125 EXPECT(!CHA::HasSubclasses(class_c_id)); 125 EXPECT(!CHA::HasSubclasses(class_c_id));
126 EXPECT(!CHA::HasSubclasses(class_d_id)); 126 EXPECT(!CHA::HasSubclasses(class_d_id));
127
128 class Class& function_impl_class =
129 Class::Handle(Type::Handle(Isolate::Current()->object_store()->
130 function_impl_type()).type_class());
131 EXPECT(CHA::HasSubclasses(function_impl_class.id()));
127 } 132 }
128 133
129 } // namespace dart 134 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698