Chromium Code Reviews| Index: runtime/vm/code_patcher_x64.cc |
| =================================================================== |
| --- runtime/vm/code_patcher_x64.cc (revision 6245) |
| +++ runtime/vm/code_patcher_x64.cc (working copy) |
| @@ -241,6 +241,24 @@ |
| return DartCallPattern::kCallPatternSize; |
| } |
| + |
| +RawArray* CodePatcher::GetTypeTestArray(uword instruction_address) { |
| + UNIMPLEMENTED(); // Untested. |
| + Array& result = Array::Handle(); |
| + uint64_t* target_addr = reinterpret_cast<uint64_t*>(instruction_address + 1); |
|
regis
2012/04/06 00:44:01
I do not think offset +1 is correct.
You always to
srdjan
2012/04/06 15:58:34
Deleting the code in both, leaving UNIMPLEMENTED.
|
| + result ^= reinterpret_cast<RawObject*>(*target_addr); |
| + return result.raw(); |
| +} |
| + |
| + |
| +void CodePatcher::SetTypeTestArray(uword instruction_address, |
| + const Array& value) { |
| + UNIMPLEMENTED(); // Untested. |
| + uint64_t* target_addr = reinterpret_cast<uint64_t*>(instruction_address + 1); |
|
regis
2012/04/06 00:44:01
ditto
srdjan
2012/04/06 15:58:34
ditto
|
| + *target_addr = reinterpret_cast<uint64_t>(value.raw()); |
| +} |
| + |
| + |
| } // namespace dart |
| #endif // defined TARGET_ARCH_X64 |