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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 | 1271 |
1272 // Return the most recently compiled and installed code for this function. | 1272 // Return the most recently compiled and installed code for this function. |
1273 // It is not the only Code object that points to this function. | 1273 // It is not the only Code object that points to this function. |
1274 RawCode* CurrentCode() const { return raw_ptr()->code_; } | 1274 RawCode* CurrentCode() const { return raw_ptr()->code_; } |
1275 | 1275 |
1276 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } | 1276 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } |
1277 void set_unoptimized_code(const Code& value) const; | 1277 void set_unoptimized_code(const Code& value) const; |
1278 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } | 1278 static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); } |
1279 inline bool HasCode() const; | 1279 inline bool HasCode() const; |
1280 | 1280 |
| 1281 RawArray* deopt_history() const { return raw_ptr()->deopt_history_; } |
| 1282 void set_deopt_history(const Array& value) const; |
| 1283 |
1281 // Returns true if there is at least one debugger breakpoint | 1284 // Returns true if there is at least one debugger breakpoint |
1282 // set in this function. | 1285 // set in this function. |
1283 bool HasBreakpoint() const; | 1286 bool HasBreakpoint() const; |
1284 | 1287 |
1285 RawContextScope* context_scope() const; | 1288 RawContextScope* context_scope() const; |
1286 void set_context_scope(const ContextScope& value) const; | 1289 void set_context_scope(const ContextScope& value) const; |
1287 | 1290 |
1288 // Enclosing function of this local function. | 1291 // Enclosing function of this local function. |
1289 RawFunction* parent_function() const; | 1292 RawFunction* parent_function() const; |
1290 | 1293 |
(...skipping 4475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5766 | 5769 |
5767 | 5770 |
5768 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 5771 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
5769 intptr_t index) { | 5772 intptr_t index) { |
5770 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 5773 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
5771 } | 5774 } |
5772 | 5775 |
5773 } // namespace dart | 5776 } // namespace dart |
5774 | 5777 |
5775 #endif // VM_OBJECT_H_ | 5778 #endif // VM_OBJECT_H_ |
OLD | NEW |