Index: runtime/vm/code_patcher_ia32.cc |
=================================================================== |
--- runtime/vm/code_patcher_ia32.cc (revision 12092) |
+++ runtime/vm/code_patcher_ia32.cc (working copy) |
@@ -260,21 +260,13 @@ |
} |
-RawArray* CodePatcher::GetTypeTestArray(uword instruction_address) { |
- Array& result = Array::Handle(); |
- uint32_t* target_addr = reinterpret_cast<uint32_t*>(instruction_address + 1); |
- result ^= reinterpret_cast<RawObject*>(*target_addr); |
- return result.raw(); |
+void CodePatcher::InsertCallAt(uword start, uword target) { |
+ *reinterpret_cast<uint8_t*>(start) = 0xE8; |
+ CallPattern call(start); |
+ call.SetTargetAddress(target); |
} |
-void CodePatcher::SetTypeTestArray(uword instruction_address, |
- const Array& value) { |
- uint32_t* target_addr = reinterpret_cast<uint32_t*>(instruction_address + 1); |
- *target_addr = reinterpret_cast<uint32_t>(value.raw()); |
-} |
- |
- |
} // namespace dart |
#endif // defined TARGET_ARCH_IA32 |