Chromium Code Reviews| 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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 3536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3547 } | 3547 } |
| 3548 void set_toplevel_class(const Class& value) const; | 3548 void set_toplevel_class(const Class& value) const; |
| 3549 | 3549 |
| 3550 RawGrowableObjectArray* patch_classes() const { | 3550 RawGrowableObjectArray* patch_classes() const { |
| 3551 return raw_ptr()->patch_classes_; | 3551 return raw_ptr()->patch_classes_; |
| 3552 } | 3552 } |
| 3553 | 3553 |
| 3554 // Library imports. | 3554 // Library imports. |
| 3555 RawArray* imports() const { return raw_ptr()->imports_; } | 3555 RawArray* imports() const { return raw_ptr()->imports_; } |
| 3556 RawArray* exports() const { return raw_ptr()->exports_; } | 3556 RawArray* exports() const { return raw_ptr()->exports_; } |
| 3557 RawArray* exports2() const { return raw_ptr()->exports_; } | |
|
hausner
2016/03/29 19:15:23
Siva found this bug:
you should return exports2_
| |
| 3557 void AddImport(const Namespace& ns) const; | 3558 void AddImport(const Namespace& ns) const; |
| 3558 intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 3559 intptr_t num_imports() const { return raw_ptr()->num_imports_; } |
| 3559 RawNamespace* ImportAt(intptr_t index) const; | 3560 RawNamespace* ImportAt(intptr_t index) const; |
| 3560 RawLibrary* ImportLibraryAt(intptr_t index) const; | 3561 RawLibrary* ImportLibraryAt(intptr_t index) const; |
| 3561 bool ImportsCorelib() const; | 3562 bool ImportsCorelib() const; |
| 3562 | 3563 |
| 3563 void DropDependencies() const; | 3564 void DropDependencies() const; |
| 3564 | 3565 |
| 3565 // Resolving native methods for script loaded in the library. | 3566 // Resolving native methods for script loaded in the library. |
| 3566 Dart_NativeEntryResolver native_entry_resolver() const { | 3567 Dart_NativeEntryResolver native_entry_resolver() const { |
| (...skipping 4853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8420 | 8421 |
| 8421 | 8422 |
| 8422 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8423 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8423 intptr_t index) { | 8424 intptr_t index) { |
| 8424 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8425 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8425 } | 8426 } |
| 8426 | 8427 |
| 8427 } // namespace dart | 8428 } // namespace dart |
| 8428 | 8429 |
| 8429 #endif // VM_OBJECT_H_ | 8430 #endif // VM_OBJECT_H_ |
| OLD | NEW |