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 // Class for patching compiled code. | 4 // Class for patching compiled code. |
5 | 5 |
6 #ifndef VM_CODE_PATCHER_H_ | 6 #ifndef VM_CODE_PATCHER_H_ |
7 #define VM_CODE_PATCHER_H_ | 7 #define VM_CODE_PATCHER_H_ |
8 | 8 |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ICData* ic_data); | 83 ICData* ic_data); |
84 | 84 |
85 static intptr_t InstanceCallSizeInBytes(); | 85 static intptr_t InstanceCallSizeInBytes(); |
86 | 86 |
87 static void InsertCallAt(uword start, uword target); | 87 static void InsertCallAt(uword start, uword target); |
88 | 88 |
89 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); | 89 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); |
90 | 90 |
91 static int32_t GetPoolOffsetAt(uword return_address); | 91 static int32_t GetPoolOffsetAt(uword return_address); |
92 static void SetPoolOffsetAt(uword return_address, int32_t offset); | 92 static void SetPoolOffsetAt(uword return_address, int32_t offset); |
| 93 static void PatchPoolPointerCallAt(uword return_address, |
| 94 const Code& code, |
| 95 uword new_target); |
93 }; | 96 }; |
94 | 97 |
95 } // namespace dart | 98 } // namespace dart |
96 | 99 |
97 #endif // VM_CODE_PATCHER_H_ | 100 #endif // VM_CODE_PATCHER_H_ |
OLD | NEW |