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

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

Issue 27238011: Allow an interface to be (mal)bounded (fix issue 14118). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | no next file » | 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 "vm/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 UNREACHABLE(); 99 UNREACHABLE();
100 return Error::null(); 100 return Error::null();
101 } 101 }
102 102
103 103
104 static void AddRelatedClassesToList(const Class& cls, 104 static void AddRelatedClassesToList(const Class& cls,
105 const GrowableObjectArray& parse_list, 105 const GrowableObjectArray& parse_list,
106 const GrowableObjectArray& patch_list) { 106 const GrowableObjectArray& patch_list) {
107 Isolate* isolate = Isolate::Current(); 107 Isolate* isolate = Isolate::Current();
108 Class& parse_class = Class::Handle(isolate); 108 Class& parse_class = Class::Handle(isolate);
109 Type& interface_type = Type::Handle(isolate); 109 AbstractType& interface_type = Type::Handle(isolate);
110 Array& interfaces = Array::Handle(isolate); 110 Array& interfaces = Array::Handle(isolate);
111 111
112 // Add all the interfaces implemented by the class that have not been 112 // Add all the interfaces implemented by the class that have not been
113 // already parsed to the parse list. Mark the interface as parsed so that 113 // already parsed to the parse list. Mark the interface as parsed so that
114 // we don't recursively add it back into the list. 114 // we don't recursively add it back into the list.
115 interfaces ^= cls.interfaces(); 115 interfaces ^= cls.interfaces();
116 for (intptr_t i = 0; i < interfaces.Length(); i++) { 116 for (intptr_t i = 0; i < interfaces.Length(); i++) {
117 interface_type ^= interfaces.At(i); 117 interface_type ^= interfaces.At(i);
118 parse_class ^= interface_type.type_class(); 118 parse_class ^= interface_type.type_class();
119 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) { 119 if (!parse_class.is_finalized() && !parse_class.is_marked_for_parsing()) {
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 Object::Handle(isolate->object_store()->sticky_error()); 943 Object::Handle(isolate->object_store()->sticky_error());
944 isolate->object_store()->clear_sticky_error(); 944 isolate->object_store()->clear_sticky_error();
945 isolate->set_long_jump_base(base); 945 isolate->set_long_jump_base(base);
946 return result.raw(); 946 return result.raw();
947 } 947 }
948 UNREACHABLE(); 948 UNREACHABLE();
949 return Object::null(); 949 return Object::null();
950 } 950 }
951 951
952 } // namespace dart 952 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698