| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/instructions.h" | 10 #include "vm/instructions.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 void CodePatcher::PatchPoolPointerCallAt(uword return_address, | 61 void CodePatcher::PatchPoolPointerCallAt(uword return_address, |
| 62 const Code& code, | 62 const Code& code, |
| 63 const Code& new_target) { | 63 const Code& new_target) { |
| 64 ASSERT(code.ContainsInstructionAt(return_address)); | 64 ASSERT(code.ContainsInstructionAt(return_address)); |
| 65 PoolPointerCall call(return_address, code); | 65 PoolPointerCall call(return_address, code); |
| 66 call.SetTarget(new_target); | 66 call.SetTarget(new_target); |
| 67 } | 67 } |
| 68 | 68 |
| 69 | 69 |
| 70 void CodePatcher::InsertDeoptimizationCallAt(uword start) { | |
| 71 UNREACHABLE(); | |
| 72 } | |
| 73 | |
| 74 | |
| 75 RawCode* CodePatcher::GetInstanceCallAt(uword return_address, | 70 RawCode* CodePatcher::GetInstanceCallAt(uword return_address, |
| 76 const Code& code, | 71 const Code& code, |
| 77 ICData* ic_data) { | 72 ICData* ic_data) { |
| 78 ASSERT(code.ContainsInstructionAt(return_address)); | 73 ASSERT(code.ContainsInstructionAt(return_address)); |
| 79 CallPattern call(return_address, code); | 74 CallPattern call(return_address, code); |
| 80 if (ic_data != NULL) { | 75 if (ic_data != NULL) { |
| 81 *ic_data = call.IcData(); | 76 *ic_data = call.IcData(); |
| 82 } | 77 } |
| 83 return call.TargetCode(); | 78 return call.TargetCode(); |
| 84 } | 79 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 NativeFunction* target) { | 143 NativeFunction* target) { |
| 149 ASSERT(code.ContainsInstructionAt(return_address)); | 144 ASSERT(code.ContainsInstructionAt(return_address)); |
| 150 NativeCallPattern call(return_address, code); | 145 NativeCallPattern call(return_address, code); |
| 151 *target = call.native_function(); | 146 *target = call.native_function(); |
| 152 return call.target(); | 147 return call.target(); |
| 153 } | 148 } |
| 154 | 149 |
| 155 } // namespace dart | 150 } // namespace dart |
| 156 | 151 |
| 157 #endif // defined TARGET_ARCH_ARM64 | 152 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |