| 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 |
| 70 RawCode* CodePatcher::GetInstanceCallAt(uword return_address, | 75 RawCode* CodePatcher::GetInstanceCallAt(uword return_address, |
| 71 const Code& code, | 76 const Code& code, |
| 72 ICData* ic_data) { | 77 ICData* ic_data) { |
| 73 ASSERT(code.ContainsInstructionAt(return_address)); | 78 ASSERT(code.ContainsInstructionAt(return_address)); |
| 74 CallPattern call(return_address, code); | 79 CallPattern call(return_address, code); |
| 75 if (ic_data != NULL) { | 80 if (ic_data != NULL) { |
| 76 *ic_data = call.IcData(); | 81 *ic_data = call.IcData(); |
| 77 } | 82 } |
| 78 return call.TargetCode(); | 83 return call.TargetCode(); |
| 79 } | 84 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 NativeFunction* target) { | 148 NativeFunction* target) { |
| 144 ASSERT(code.ContainsInstructionAt(return_address)); | 149 ASSERT(code.ContainsInstructionAt(return_address)); |
| 145 NativeCallPattern call(return_address, code); | 150 NativeCallPattern call(return_address, code); |
| 146 *target = call.native_function(); | 151 *target = call.native_function(); |
| 147 return call.target(); | 152 return call.target(); |
| 148 } | 153 } |
| 149 | 154 |
| 150 } // namespace dart | 155 } // namespace dart |
| 151 | 156 |
| 152 #endif // defined TARGET_ARCH_ARM64 | 157 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |