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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Return the arguments descriptor array of the closure call | 69 // Return the arguments descriptor array of the closure call |
70 // before the given return address. | 70 // before the given return address. |
71 static RawArray* GetClosureArgDescAt(uword return_address, | 71 static RawArray* GetClosureArgDescAt(uword return_address, |
72 const Code& code); | 72 const Code& code); |
73 | 73 |
74 static intptr_t InstanceCallSizeInBytes(); | 74 static intptr_t InstanceCallSizeInBytes(); |
75 | 75 |
76 static void InsertCallAt(uword start, uword target); | 76 static void InsertCallAt(uword start, uword target); |
77 | 77 |
78 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); | 78 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); |
| 79 |
| 80 static int32_t GetPoolOffsetAt(uword return_address); |
| 81 static void SetPoolOffsetAt(uword return_address, int32_t offset); |
79 }; | 82 }; |
80 | 83 |
81 } // namespace dart | 84 } // namespace dart |
82 | 85 |
83 #endif // VM_CODE_PATCHER_H_ | 86 #endif // VM_CODE_PATCHER_H_ |
OLD | NEW |