OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "include/dart_mirrors_api.h" | 5 #include "include/dart_mirrors_api.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
10 #include "vm/dart_api_impl.h" | 10 #include "vm/dart_api_impl.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Some special types like 'dynamic' have a null functions list. | 92 // Some special types like 'dynamic' have a null functions list. |
93 if (!func_array.IsNull()) { | 93 if (!func_array.IsNull()) { |
94 for (intptr_t i = 0; i < func_array.Length(); ++i) { | 94 for (intptr_t i = 0; i < func_array.Length(); ++i) { |
95 func ^= func_array.At(i); | 95 func ^= func_array.At(i); |
96 | 96 |
97 // Skip implicit getters and setters. | 97 // Skip implicit getters and setters. |
98 if (func.kind() == RawFunction::kImplicitGetter || | 98 if (func.kind() == RawFunction::kImplicitGetter || |
99 func.kind() == RawFunction::kImplicitSetter || | 99 func.kind() == RawFunction::kImplicitSetter || |
100 func.kind() == RawFunction::kImplicitStaticFinalGetter || | 100 func.kind() == RawFunction::kImplicitStaticFinalGetter || |
101 func.kind() == RawFunction::kStaticInitializer || | |
102 func.kind() == RawFunction::kMethodExtractor || | 101 func.kind() == RawFunction::kMethodExtractor || |
103 func.kind() == RawFunction::kNoSuchMethodDispatcher) { | 102 func.kind() == RawFunction::kNoSuchMethodDispatcher) { |
104 continue; | 103 continue; |
105 } | 104 } |
106 | 105 |
107 name = func.UserVisibleName(); | 106 name = func.UserVisibleName(); |
108 names.Add(name); | 107 names.Add(name); |
109 } | 108 } |
110 } | 109 } |
111 } else if (obj.IsLibrary()) { | 110 } else if (obj.IsLibrary()) { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 RETURN_TYPE_ERROR(isolate, closure, Instance); | 370 RETURN_TYPE_ERROR(isolate, closure, Instance); |
372 } | 371 } |
373 | 372 |
374 ASSERT(ClassFinalizer::AllClassesFinalized()); | 373 ASSERT(ClassFinalizer::AllClassesFinalized()); |
375 | 374 |
376 RawFunction* rf = Closure::function(closure_obj); | 375 RawFunction* rf = Closure::function(closure_obj); |
377 return Api::NewHandle(isolate, rf); | 376 return Api::NewHandle(isolate, rf); |
378 } | 377 } |
379 | 378 |
380 } // namespace dart | 379 } // namespace dart |
OLD | NEW |