| 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 "include/dart_api.h" | 5 #include "include/dart_api.h" | 
| 6 | 6 | 
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" | 
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" | 
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" | 
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" | 
| (...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2728     const Array& func_array = Array::Handle(cls.functions()); | 2728     const Array& func_array = Array::Handle(cls.functions()); | 
| 2729 | 2729 | 
| 2730     // Some special types like 'dynamic' have a null functions list. | 2730     // Some special types like 'dynamic' have a null functions list. | 
| 2731     if (!func_array.IsNull()) { | 2731     if (!func_array.IsNull()) { | 
| 2732       for (intptr_t i = 0; i < func_array.Length(); ++i) { | 2732       for (intptr_t i = 0; i < func_array.Length(); ++i) { | 
| 2733         func ^= func_array.At(i); | 2733         func ^= func_array.At(i); | 
| 2734 | 2734 | 
| 2735         // Skip implicit getters and setters. | 2735         // Skip implicit getters and setters. | 
| 2736         if (func.kind() == RawFunction::kImplicitGetter || | 2736         if (func.kind() == RawFunction::kImplicitGetter || | 
| 2737             func.kind() == RawFunction::kImplicitSetter || | 2737             func.kind() == RawFunction::kImplicitSetter || | 
| 2738             func.kind() == RawFunction::kConstImplicitGetter) { | 2738             func.kind() == RawFunction::kConstImplicitGetter || | 
|  | 2739             func.kind() == RawFunction::kMethodExtractor) { | 
| 2739           continue; | 2740           continue; | 
| 2740         } | 2741         } | 
| 2741 | 2742 | 
| 2742         name = func.UserVisibleName(); | 2743         name = func.UserVisibleName(); | 
| 2743         names.Add(name); | 2744         names.Add(name); | 
| 2744       } | 2745       } | 
| 2745     } | 2746     } | 
| 2746   } else if (obj.IsLibrary()) { | 2747   } else if (obj.IsLibrary()) { | 
| 2747     const Library& lib = Library::Cast(obj); | 2748     const Library& lib = Library::Cast(obj); | 
| 2748     DictionaryIterator it(lib); | 2749     DictionaryIterator it(lib); | 
| (...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4519   } | 4520   } | 
| 4520   { | 4521   { | 
| 4521     NoGCScope no_gc; | 4522     NoGCScope no_gc; | 
| 4522     RawObject* raw_obj = obj.raw(); | 4523     RawObject* raw_obj = obj.raw(); | 
| 4523     isolate->heap()->SetPeer(raw_obj, peer); | 4524     isolate->heap()->SetPeer(raw_obj, peer); | 
| 4524   } | 4525   } | 
| 4525   return Api::Success(isolate); | 4526   return Api::Success(isolate); | 
| 4526 } | 4527 } | 
| 4527 | 4528 | 
| 4528 }  // namespace dart | 4529 }  // namespace dart | 
| OLD | NEW | 
|---|