| 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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2078 // Code objects are held weakly via an indirection through WeakProperty. | 2078 // Code objects are held weakly via an indirection through WeakProperty. |
| 2079 RawArray* dependent_code() const; | 2079 RawArray* dependent_code() const; |
| 2080 void set_dependent_code(const Array& array) const; | 2080 void set_dependent_code(const Array& array) const; |
| 2081 | 2081 |
| 2082 // Add the given code object to the list of dependent ones. | 2082 // Add the given code object to the list of dependent ones. |
| 2083 void RegisterDependentCode(const Code& code) const; | 2083 void RegisterDependentCode(const Code& code) const; |
| 2084 | 2084 |
| 2085 // Deoptimize all dependent code objects. | 2085 // Deoptimize all dependent code objects. |
| 2086 void DeoptimizeDependentCode() const; | 2086 void DeoptimizeDependentCode() const; |
| 2087 | 2087 |
| 2088 bool IsUninitialized() const; |
| 2089 |
| 2088 // Constructs getter and setter names for fields and vice versa. | 2090 // Constructs getter and setter names for fields and vice versa. |
| 2089 static RawString* GetterName(const String& field_name); | 2091 static RawString* GetterName(const String& field_name); |
| 2090 static RawString* GetterSymbol(const String& field_name); | 2092 static RawString* GetterSymbol(const String& field_name); |
| 2091 static RawString* SetterName(const String& field_name); | 2093 static RawString* SetterName(const String& field_name); |
| 2092 static RawString* SetterSymbol(const String& field_name); | 2094 static RawString* SetterSymbol(const String& field_name); |
| 2093 static RawString* NameFromGetter(const String& getter_name); | 2095 static RawString* NameFromGetter(const String& getter_name); |
| 2094 static RawString* NameFromSetter(const String& setter_name); | 2096 static RawString* NameFromSetter(const String& setter_name); |
| 2095 static bool IsGetterName(const String& function_name); | 2097 static bool IsGetterName(const String& function_name); |
| 2096 static bool IsSetterName(const String& function_name); | 2098 static bool IsSetterName(const String& function_name); |
| 2097 | 2099 |
| (...skipping 4097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6195 | 6197 |
| 6196 | 6198 |
| 6197 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6198 intptr_t index) { | 6200 intptr_t index) { |
| 6199 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6201 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6200 } | 6202 } |
| 6201 | 6203 |
| 6202 } // namespace dart | 6204 } // namespace dart |
| 6203 | 6205 |
| 6204 #endif // VM_OBJECT_H_ | 6206 #endif // VM_OBJECT_H_ |
| OLD | NEW |