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 RUNTIME_VM_CODE_PATCHER_H_ |
7 #define VM_CODE_PATCHER_H_ | 7 #define RUNTIME_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" |
11 | 11 |
12 namespace dart { | 12 namespace dart { |
13 | 13 |
14 // Forward declaration. | 14 // Forward declaration. |
15 class Array; | 15 class Array; |
16 class Code; | 16 class Code; |
17 class ExternalLabel; | 17 class ExternalLabel; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 NativeFunction* target); | 88 NativeFunction* target); |
89 | 89 |
90 static void PatchNativeCallAt(uword return_address, | 90 static void PatchNativeCallAt(uword return_address, |
91 const Code& code, | 91 const Code& code, |
92 NativeFunction target, | 92 NativeFunction target, |
93 const Code& trampoline); | 93 const Code& trampoline); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace dart | 96 } // namespace dart |
97 | 97 |
98 #endif // VM_CODE_PATCHER_H_ | 98 #endif // RUNTIME_VM_CODE_PATCHER_H_ |
OLD | NEW |