Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index ff97ab50942a3e5b4ee90d38bbd4b431d819fc33..b8f8f6ddc233c46262d4aa96631ce15a37eca257 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -691,7 +691,7 @@ void Code::PatchPlatformCodeAge(byte* sequence, |
uint32_t young_length; |
byte* young_sequence = GetNoCodeAgeSequence(&young_length); |
if (age == kNoAge) { |
- memcpy(sequence, young_sequence, young_length); |
+ CopyBytes(sequence, young_sequence, young_length); |
CPU::FlushICache(sequence, young_length); |
} else { |
Code* stub = GetCodeAgeStub(age, parity); |