Commit 82bcbebd authored by Vasili Skurydzin's avatar Vasili Skurydzin Committed by Commit Bot

aix: [test] fix i-cache cctest on Aix platform

Change-Id: I1015edc7a4522ae161dfd408db2ddcfae5dbbc69
Reviewed-on: https://chromium-review.googlesource.com/c/1352218Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#57914}
parent b3e7775f
...@@ -53,6 +53,7 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) { ...@@ -53,6 +53,7 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) {
__ Addu(v0, v0, Operand(1)); __ Addu(v0, v0, Operand(1));
} }
#elif V8_TARGET_ARCH_PPC #elif V8_TARGET_ARCH_PPC
__ function_descriptor();
for (int i = 0; i < kNumInstr; ++i) { for (int i = 0; i < kNumInstr; ++i) {
__ addi(r3, r3, Operand(1)); __ addi(r3, r3, Operand(1));
} }
...@@ -64,6 +65,8 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) { ...@@ -64,6 +65,8 @@ static void FloodWithInc(Isolate* isolate, byte* buffer, size_t allocated) {
#error Unsupported architecture #error Unsupported architecture
#endif #endif
__ Ret(); __ Ret();
CodeDesc desc;
masm.GetCode(isolate, &desc);
} }
static void FloodWithNop(Isolate* isolate, byte* buffer, size_t allocated) { static void FloodWithNop(Isolate* isolate, byte* buffer, size_t allocated) {
...@@ -77,11 +80,15 @@ 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); __ mov(v0, a0);
#elif V8_TARGET_ARCH_MIPS64 #elif V8_TARGET_ARCH_MIPS64
__ mov(v0, a0); __ mov(v0, a0);
#elif V8_TARGET_ARCH_PPC
__ function_descriptor();
#endif #endif
for (int i = 0; i < kNumInstr; ++i) { for (int i = 0; i < kNumInstr; ++i) {
__ nop(); __ nop();
} }
__ Ret(); __ Ret();
CodeDesc desc;
masm.GetCode(isolate, &desc);
} }
// Order of operation for this test case: // Order of operation for this test case:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment