Commit cfdffe2b authored by bjaideep's avatar bjaideep Committed by Commit bot

Reland of PPC/s390: SmiUntag only for 32bit

R=joransiu@ca.ibm.com, jyan@ca.ibm.com
BUG=
LOG=n

Review-Url: https://codereview.chromium.org/2839343003
Cr-Commit-Position: refs/heads/master@{#44939}
parent f6296b34
......@@ -2204,11 +2204,16 @@ void Builtins::Generate_CallForwardVarargs(MacroAssembler* masm,
{
// Load the length from the ArgumentsAdaptorFrame.
__ LoadP(r3, MemOperand(r6, ArgumentsAdaptorFrameConstants::kLengthOffset));
#if V8_TARGET_ARCH_PPC64
__ SmiUntag(r3);
#endif
}
__ bind(&arguments_done);
Label stack_empty, stack_done, stack_overflow;
#if !V8_TARGET_ARCH_PPC64
__ SmiUntag(r3);
#endif
__ sub(r3, r3, r5);
__ cmpi(r3, Operand::Zero());
__ ble(&stack_empty);
......
......@@ -2214,11 +2214,16 @@ void Builtins::Generate_CallForwardVarargs(MacroAssembler* masm,
{
// Load the length from the ArgumentsAdaptorFrame.
__ LoadP(r2, MemOperand(r5, ArgumentsAdaptorFrameConstants::kLengthOffset));
#if V8_TARGET_ARCH_S390X
__ SmiUntag(r2);
#endif
}
__ bind(&arguments_done);
Label stack_empty, stack_done, stack_overflow;
#if !V8_TARGET_ARCH_S390X
__ SmiUntag(r2);
#endif
__ SubP(r2, r2, r4);
__ CmpP(r2, Operand::Zero());
__ ble(&stack_empty);
......
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