| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 // Check if this is the top level class. | 579 // Check if this is the top level class. |
| 580 bool IsTopLevel() const; | 580 bool IsTopLevel() const; |
| 581 | 581 |
| 582 RawArray* fields() const { return raw_ptr()->fields_; } | 582 RawArray* fields() const { return raw_ptr()->fields_; } |
| 583 void SetFields(const Array& value) const; | 583 void SetFields(const Array& value) const; |
| 584 | 584 |
| 585 RawArray* functions() const { return raw_ptr()->functions_; } | 585 RawArray* functions() const { return raw_ptr()->functions_; } |
| 586 void SetFunctions(const Array& value) const; | 586 void SetFunctions(const Array& value) const; |
| 587 | 587 |
| 588 void AddClosureFunction(const Function& function) const; |
| 589 RawFunction* LookupClosureFunction(intptr_t token_index) const; |
| 590 |
| 588 RawFunction* LookupDynamicFunction(const String& name) const; | 591 RawFunction* LookupDynamicFunction(const String& name) const; |
| 589 RawFunction* LookupStaticFunction(const String& name) const; | 592 RawFunction* LookupStaticFunction(const String& name) const; |
| 590 RawFunction* LookupConstructor(const String& name) const; | 593 RawFunction* LookupConstructor(const String& name) const; |
| 591 RawFunction* LookupFactory(const String& name) const; | 594 RawFunction* LookupFactory(const String& name) const; |
| 592 RawFunction* LookupFunction(const String& name) const; | 595 RawFunction* LookupFunction(const String& name) const; |
| 593 RawFunction* LookupGetterFunction(const String& name) const; | 596 RawFunction* LookupGetterFunction(const String& name) const; |
| 594 RawFunction* LookupSetterFunction(const String& name) const; | 597 RawFunction* LookupSetterFunction(const String& name) const; |
| 595 RawFunction* LookupFunctionAtToken(intptr_t token_index) const; | 598 RawFunction* LookupFunctionAtToken(intptr_t token_index) const; |
| 596 RawField* LookupInstanceField(const String& name) const; | 599 RawField* LookupInstanceField(const String& name) const; |
| 597 RawField* LookupStaticField(const String& name) const; | 600 RawField* LookupStaticField(const String& name) const; |
| (...skipping 3284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3882 } | 3885 } |
| 3883 | 3886 |
| 3884 | 3887 |
| 3885 intptr_t Stackmap::SizeInBits() const { | 3888 intptr_t Stackmap::SizeInBits() const { |
| 3886 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 3889 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 3887 } | 3890 } |
| 3888 | 3891 |
| 3889 } // namespace dart | 3892 } // namespace dart |
| 3890 | 3893 |
| 3891 #endif // VM_OBJECT_H_ | 3894 #endif // VM_OBJECT_H_ |
| OLD | NEW |