| 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 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Return target of an unoptimized static call and its ICData object | 72 // Return target of an unoptimized static call and its ICData object |
| 73 // (calls target via a stub). | 73 // (calls target via a stub). |
| 74 static RawFunction* GetUnoptimizedStaticCallAt(uword return_address, | 74 static RawFunction* GetUnoptimizedStaticCallAt(uword return_address, |
| 75 const Code& code, | 75 const Code& code, |
| 76 ICData* ic_data); | 76 ICData* ic_data); |
| 77 | 77 |
| 78 static intptr_t InstanceCallSizeInBytes(); | 78 static intptr_t InstanceCallSizeInBytes(); |
| 79 | 79 |
| 80 static void InsertDeoptimizationCallAt(uword start, uword target); | 80 static void InsertDeoptimizationCallAt(uword start, uword target); |
| 81 | 81 |
| 82 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); | |
| 83 | |
| 84 static void PatchPoolPointerCallAt(uword return_address, | 82 static void PatchPoolPointerCallAt(uword return_address, |
| 85 const Code& code, | 83 const Code& code, |
| 86 const Code& new_target); | 84 const Code& new_target); |
| 87 | 85 |
| 88 static RawCode* GetNativeCallAt(uword return_address, | 86 static RawCode* GetNativeCallAt(uword return_address, |
| 89 const Code& code, | 87 const Code& code, |
| 90 NativeFunction* target); | 88 NativeFunction* target); |
| 91 | 89 |
| 92 static void PatchNativeCallAt(uword return_address, | 90 static void PatchNativeCallAt(uword return_address, |
| 93 const Code& code, | 91 const Code& code, |
| 94 NativeFunction target, | 92 NativeFunction target, |
| 95 const Code& trampoline); | 93 const Code& trampoline); |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 } // namespace dart | 96 } // namespace dart |
| 99 | 97 |
| 100 #endif // VM_CODE_PATCHER_H_ | 98 #endif // VM_CODE_PATCHER_H_ |
| OLD | NEW |