aix: [test] fix i-cache cctest on Aix platform
Change-Id: I1015edc7a4522ae161dfd408db2ddcfae5dbbc69 Reviewed-on: https://chromium-review.googlesource.com/c/1352218 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Junliang Yan <jyan@ca.ibm.com> Cr-Commit-Position: refs/heads/master@{#57914}
This commit is contained in:
parent
b3e7775f82
commit
82bcbebd00
@ -53,6 +53,7 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) {
|
||||
__ Addu(v0, v0, Operand(1));
|
||||
}
|
||||
#elif V8_TARGET_ARCH_PPC
|
||||
__ function_descriptor();
|
||||
for (int i = 0; i < kNumInstr; ++i) {
|
||||
__ addi(r3, r3, Operand(1));
|
||||
}
|
||||
@ -64,6 +65,8 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) {
|
||||
#error Unsupported architecture
|
||||
#endif
|
||||
__ Ret();
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
}
|
||||
|
||||
static void FloodWithNop(Isolate* isolate, byte* buffer, size_t allocated) {
|
||||
@ -77,11 +80,15 @@ static void FloodWithNop(Isolate* isolate, byte* buffer, size_t allocated) {
|
||||
__ mov(v0, a0);
|
||||
#elif V8_TARGET_ARCH_MIPS64
|
||||
__ mov(v0, a0);
|
||||
#elif V8_TARGET_ARCH_PPC
|
||||
__ function_descriptor();
|
||||
#endif
|
||||
for (int i = 0; i < kNumInstr; ++i) {
|
||||
__ nop();
|
||||
}
|
||||
__ Ret();
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
}
|
||||
|
||||
// Order of operation for this test case:
|
||||
|
Loading…
Reference in New Issue
Block a user