| 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 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 uword CodePatcher::GetStaticCallTargetAt(uword return_address) { | 12 uword CodePatcher::GetStaticCallTargetAt(uword return_address, |
| 13 const Code& code) { |
| 13 UNIMPLEMENTED(); | 14 UNIMPLEMENTED(); |
| 14 return 0; | 15 return 0; |
| 15 } | 16 } |
| 16 | 17 |
| 17 | 18 |
| 18 void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) { | 19 void CodePatcher::PatchStaticCallAt(uword return_address, |
| 20 const Code& code, |
| 21 uword new_target) { |
| 19 UNIMPLEMENTED(); | 22 UNIMPLEMENTED(); |
| 20 } | 23 } |
| 21 | 24 |
| 22 | 25 |
| 23 void CodePatcher::PatchInstanceCallAt(uword return_address, uword new_target) { | 26 void CodePatcher::PatchInstanceCallAt(uword return_address, |
| 27 const Code& code, |
| 28 uword new_target) { |
| 24 UNIMPLEMENTED(); | 29 UNIMPLEMENTED(); |
| 25 } | 30 } |
| 26 | 31 |
| 27 | 32 |
| 28 void CodePatcher::InsertCallAt(uword start, uword target) { | 33 void CodePatcher::InsertCallAt(uword start, uword target) { |
| 29 UNIMPLEMENTED(); | 34 UNIMPLEMENTED(); |
| 30 } | 35 } |
| 31 | 36 |
| 32 | 37 |
| 33 bool CodePatcher::IsDartCall(uword return_address) { | |
| 34 UNIMPLEMENTED(); | |
| 35 return false; | |
| 36 } | |
| 37 | |
| 38 | |
| 39 uword CodePatcher::GetInstanceCallAt(uword return_address, | 38 uword CodePatcher::GetInstanceCallAt(uword return_address, |
| 39 const Code& code, |
| 40 ICData* ic_data, | 40 ICData* ic_data, |
| 41 Array* arguments_descriptor) { | 41 Array* arguments_descriptor) { |
| 42 UNIMPLEMENTED(); | 42 UNIMPLEMENTED(); |
| 43 return 0; | 43 return 0; |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 intptr_t CodePatcher::InstanceCallSizeInBytes() { | 47 intptr_t CodePatcher::InstanceCallSizeInBytes() { |
| 48 UNIMPLEMENTED(); | 48 UNIMPLEMENTED(); |
| 49 return 0; | 49 return 0; |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace dart | 52 } // namespace dart |
| 53 | 53 |
| 54 #endif // defined TARGET_ARCH_MIPS | 54 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |