| 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 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3464 kSCallTableCodeEntry = 2, | 3464 kSCallTableCodeEntry = 2, |
| 3465 kSCallTableEntryLength = 3, | 3465 kSCallTableEntryLength = 3, |
| 3466 }; | 3466 }; |
| 3467 | 3467 |
| 3468 void set_static_calls_target_table(const Array& value) const; | 3468 void set_static_calls_target_table(const Array& value) const; |
| 3469 RawArray* static_calls_target_table() const { | 3469 RawArray* static_calls_target_table() const { |
| 3470 return raw_ptr()->static_calls_target_table_; | 3470 return raw_ptr()->static_calls_target_table_; |
| 3471 } | 3471 } |
| 3472 | 3472 |
| 3473 RawDeoptInfo* GetDeoptInfoAtPc( | 3473 RawDeoptInfo* GetDeoptInfoAtPc( |
| 3474 uword pc, ICData::ICData::DeoptReasonId* deopt_reason) const; | 3474 uword pc, ICData::DeoptReasonId* deopt_reason) const; |
| 3475 | 3475 |
| 3476 // Returns null if there is no static call at 'pc'. | 3476 // Returns null if there is no static call at 'pc'. |
| 3477 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; | 3477 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; |
| 3478 // Returns null if there is no static call at 'pc'. | 3478 // Returns null if there is no static call at 'pc'. |
| 3479 RawCode* GetStaticCallTargetCodeAt(uword pc) const; | 3479 RawCode* GetStaticCallTargetCodeAt(uword pc) const; |
| 3480 // Aborts if there is no static call at 'pc'. | 3480 // Aborts if there is no static call at 'pc'. |
| 3481 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; | 3481 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; |
| 3482 | 3482 |
| 3483 void Disassemble(DisassemblyFormatter* formatter = NULL) const; | 3483 void Disassemble(DisassemblyFormatter* formatter = NULL) const; |
| 3484 | 3484 |
| (...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6970 | 6970 |
| 6971 | 6971 |
| 6972 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6972 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6973 intptr_t index) { | 6973 intptr_t index) { |
| 6974 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6974 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6975 } | 6975 } |
| 6976 | 6976 |
| 6977 } // namespace dart | 6977 } // namespace dart |
| 6978 | 6978 |
| 6979 #endif // VM_OBJECT_H_ | 6979 #endif // VM_OBJECT_H_ |
| OLD | NEW |