| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |