| 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 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 | 1167 |
| 1168 // Return the most recently compiled and installed code for this function. | 1168 // Return the most recently compiled and installed code for this function. |
| 1169 // It is not the only Code object that points to this function. | 1169 // It is not the only Code object that points to this function. |
| 1170 RawCode* CurrentCode() const { return raw_ptr()->code_; } | 1170 RawCode* CurrentCode() const { return raw_ptr()->code_; } |
| 1171 | 1171 |
| 1172 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } | 1172 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } |
| 1173 void set_unoptimized_code(const Code& value) const; | 1173 void set_unoptimized_code(const Code& value) const; |
| 1174 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } | 1174 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } |
| 1175 inline bool HasCode() const; | 1175 inline bool HasCode() const; |
| 1176 | 1176 |
| 1177 // Returns true if there is at least one debugger breakpoint |
| 1178 // set in this function. |
| 1179 bool HasBreakpoint() const; |
| 1180 |
| 1177 RawContextScope* context_scope() const; | 1181 RawContextScope* context_scope() const; |
| 1178 void set_context_scope(const ContextScope& value) const; | 1182 void set_context_scope(const ContextScope& value) const; |
| 1179 | 1183 |
| 1180 // Enclosing function of this local function. | 1184 // Enclosing function of this local function. |
| 1181 RawFunction* parent_function() const; | 1185 RawFunction* parent_function() const; |
| 1182 | 1186 |
| 1183 // Signature class of this closure function or signature function. | 1187 // Signature class of this closure function or signature function. |
| 1184 RawClass* signature_class() const; | 1188 RawClass* signature_class() const; |
| 1185 void set_signature_class(const Class& value) const; | 1189 void set_signature_class(const Class& value) const; |
| 1186 | 1190 |
| (...skipping 5052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6239 | 6243 |
| 6240 | 6244 |
| 6241 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6242 intptr_t index) { | 6246 intptr_t index) { |
| 6243 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6247 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6244 } | 6248 } |
| 6245 | 6249 |
| 6246 } // namespace dart | 6250 } // namespace dart |
| 6247 | 6251 |
| 6248 #endif // VM_OBJECT_H_ | 6252 #endif // VM_OBJECT_H_ |
| OLD | NEW |