Chromium Code Reviews| Index: runtime/vm/code_patcher_ia32.cc |
| =================================================================== |
| --- runtime/vm/code_patcher_ia32.cc (revision 18597) |
| +++ runtime/vm/code_patcher_ia32.cc (working copy) |
| @@ -142,19 +142,24 @@ |
| }; |
| -uword CodePatcher::GetStaticCallTargetAt(uword return_address) { |
| +uword CodePatcher::GetStaticCallTargetAt(uword return_address, |
| + const Code& code) { |
|
srdjan
2013/02/15 21:24:27
Here and below, you could assert that return addre
regis
2013/02/15 22:51:31
LookupCode would be too slow, but I can assert tha
|
| StaticCall call(return_address); |
| return call.target(); |
| } |
| -void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) { |
| +void CodePatcher::PatchStaticCallAt(uword return_address, |
| + const Code& code, |
| + uword new_target) { |
| StaticCall call(return_address); |
| call.set_target(new_target); |
| } |
| -void CodePatcher::PatchInstanceCallAt(uword return_address, uword new_target) { |
| +void CodePatcher::PatchInstanceCallAt(uword return_address, |
| + const Code& code, |
| + uword new_target) { |
| InstanceCall call(return_address); |
| call.set_target(new_target); |
| } |
| @@ -169,12 +174,8 @@ |
| } |
| -bool CodePatcher::IsDartCall(uword return_address) { |
| - return DartCallPattern::IsValid(return_address); |
| -} |
| - |
| - |
| uword CodePatcher::GetInstanceCallAt(uword return_address, |
| + const Code& code, |
| ICData* ic_data, |
| Array* arguments_descriptor) { |
| InstanceCall call(return_address); |