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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 ICData* ic_data); | 67 ICData* ic_data); |
68 | 68 |
69 static intptr_t InstanceCallSizeInBytes(); | 69 static intptr_t InstanceCallSizeInBytes(); |
70 | 70 |
71 static void InsertDeoptimizationCallAt(uword start, uword target); | 71 static void InsertDeoptimizationCallAt(uword start, uword target); |
72 | 72 |
73 static void PatchPoolPointerCallAt(uword return_address, | 73 static void PatchPoolPointerCallAt(uword return_address, |
74 const Code& code, | 74 const Code& code, |
75 const Code& new_target); | 75 const Code& new_target); |
76 | 76 |
| 77 static void PatchSwitchableCallAt(uword return_address, |
| 78 const Code& code, |
| 79 const ICData& ic_data, |
| 80 const MegamorphicCache& new_cache, |
| 81 const Code& lookup_stub); |
| 82 |
77 static RawCode* GetNativeCallAt(uword return_address, | 83 static RawCode* GetNativeCallAt(uword return_address, |
78 const Code& code, | 84 const Code& code, |
79 NativeFunction* target); | 85 NativeFunction* target); |
80 | 86 |
81 static void PatchNativeCallAt(uword return_address, | 87 static void PatchNativeCallAt(uword return_address, |
82 const Code& code, | 88 const Code& code, |
83 NativeFunction target, | 89 NativeFunction target, |
84 const Code& trampoline); | 90 const Code& trampoline); |
85 }; | 91 }; |
86 | 92 |
87 } // namespace dart | 93 } // namespace dart |
88 | 94 |
89 #endif // VM_CODE_PATCHER_H_ | 95 #endif // VM_CODE_PATCHER_H_ |
OLD | NEW |