| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 | 9 |
| 10 #include "vm/object.h" |
| 11 |
| 10 namespace dart { | 12 namespace dart { |
| 11 | 13 |
| 12 uword CodePatcher::GetStaticCallTargetAt(uword return_address) { | 14 uword CodePatcher::GetStaticCallTargetAt(uword return_address, |
| 15 const Code& code) { |
| 16 ASSERT(code.ContainsInstructionAt(return_address)); |
| 13 UNIMPLEMENTED(); | 17 UNIMPLEMENTED(); |
| 14 return 0; | 18 return 0; |
| 15 } | 19 } |
| 16 | 20 |
| 17 | 21 |
| 18 void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) { | 22 void CodePatcher::PatchStaticCallAt(uword return_address, |
| 23 const Code& code, |
| 24 uword new_target) { |
| 25 ASSERT(code.ContainsInstructionAt(return_address)); |
| 19 UNIMPLEMENTED(); | 26 UNIMPLEMENTED(); |
| 20 } | 27 } |
| 21 | 28 |
| 22 | 29 |
| 23 void CodePatcher::PatchInstanceCallAt(uword return_address, uword new_target) { | 30 void CodePatcher::PatchInstanceCallAt(uword return_address, |
| 31 const Code& code, |
| 32 uword new_target) { |
| 33 ASSERT(code.ContainsInstructionAt(return_address)); |
| 24 UNIMPLEMENTED(); | 34 UNIMPLEMENTED(); |
| 25 } | 35 } |
| 26 | 36 |
| 27 | 37 |
| 28 void CodePatcher::InsertCallAt(uword start, uword target) { | 38 void CodePatcher::InsertCallAt(uword start, uword target) { |
| 29 UNIMPLEMENTED(); | 39 UNIMPLEMENTED(); |
| 30 } | 40 } |
| 31 | 41 |
| 32 | 42 |
| 33 bool CodePatcher::IsDartCall(uword return_address) { | |
| 34 UNIMPLEMENTED(); | |
| 35 return false; | |
| 36 } | |
| 37 | |
| 38 | |
| 39 uword CodePatcher::GetInstanceCallAt(uword return_address, | 43 uword CodePatcher::GetInstanceCallAt(uword return_address, |
| 44 const Code& code, |
| 40 ICData* ic_data, | 45 ICData* ic_data, |
| 41 Array* arguments_descriptor) { | 46 Array* arguments_descriptor) { |
| 47 ASSERT(code.ContainsInstructionAt(return_address)); |
| 42 UNIMPLEMENTED(); | 48 UNIMPLEMENTED(); |
| 43 return 0; | 49 return 0; |
| 44 } | 50 } |
| 45 | 51 |
| 46 | 52 |
| 47 intptr_t CodePatcher::InstanceCallSizeInBytes() { | 53 intptr_t CodePatcher::InstanceCallSizeInBytes() { |
| 48 UNIMPLEMENTED(); | 54 UNIMPLEMENTED(); |
| 49 return 0; | 55 return 0; |
| 50 } | 56 } |
| 51 | 57 |
| 52 } // namespace dart | 58 } // namespace dart |
| 53 | 59 |
| 54 #endif // defined TARGET_ARCH_MIPS | 60 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |