Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 void CodePatcher::GetStaticCallAt(uword return_address, | 12 void CodePatcher::GetStaticCallAt(uword return_address, |
| 13 Function* function, | 13 Function* function, |
| 14 uword* target) { | 14 uword* target) { |
| 15 UNIMPLEMENTED(); | 15 UNIMPLEMENTED(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 | 18 |
| 19 void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) { | 19 void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) { |
| 20 UNIMPLEMENTED(); | 20 UNIMPLEMENTED(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 | 23 |
| 24 bool CodePatcher::IsDartCall(uword return_address) { | |
| 25 UNIMPLEMENTED(); | |
| 26 return true; | |
|
siva
2011/11/17 18:44:22
return false;
would be better here I feel.
hausner
2011/11/17 18:51:25
true.
| |
| 27 } | |
| 28 | |
| 29 | |
| 24 void CodePatcher::GetInstanceCallAt(uword return_address, | 30 void CodePatcher::GetInstanceCallAt(uword return_address, |
| 25 String* function_name, | 31 String* function_name, |
| 26 int* num_arguments, | 32 int* num_arguments, |
| 27 int* num_named_arguments, | 33 int* num_named_arguments, |
| 28 uword* target) { | 34 uword* target) { |
| 29 UNIMPLEMENTED(); | 35 UNIMPLEMENTED(); |
| 30 } | 36 } |
| 31 | 37 |
| 32 | 38 |
| 33 void CodePatcher::PatchEntry(const Code& code) { | 39 void CodePatcher::PatchEntry(const Code& code) { |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 53 | 59 |
| 54 | 60 |
| 55 void CodePatcher::SetInstanceCallIcDataAt(uword return_address, | 61 void CodePatcher::SetInstanceCallIcDataAt(uword return_address, |
| 56 const Array& ic_data) { | 62 const Array& ic_data) { |
| 57 UNIMPLEMENTED(); | 63 UNIMPLEMENTED(); |
| 58 } | 64 } |
| 59 | 65 |
| 60 } // namespace dart | 66 } // namespace dart |
| 61 | 67 |
| 62 #endif // defined TARGET_ARCH_ARM | 68 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |