Index: src/builtins/ppc/builtins-ppc.cc |
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc |
index ee91100f35f1a2ddb8d3924a3f11eb5dca410d26..be07f748c196cb55b4fb6c5e8c573aa41661a512 100644 |
--- a/src/builtins/ppc/builtins-ppc.cc |
+++ b/src/builtins/ppc/builtins-ppc.cc |
@@ -2159,7 +2159,7 @@ void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { |
static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { |
__ SmiTag(r3); |
- __ LoadSmiLiteral(r7, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); |
+ __ mov(r7, Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR))); |
__ mflr(r0); |
__ push(r0); |
if (FLAG_enable_embedded_constant_pool) { |
@@ -2347,7 +2347,7 @@ void Builtins::Generate_CallForwardVarargs(MacroAssembler* masm, |
Label arguments_adaptor, arguments_done; |
__ LoadP(r6, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
__ LoadP(ip, MemOperand(r6, CommonFrameConstants::kContextOrFrameTypeOffset)); |
- __ CmpSmiLiteral(ip, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR), r0); |
+ __ cmpi(ip, Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR))); |
__ beq(&arguments_adaptor); |
{ |
__ LoadP(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
@@ -2453,7 +2453,7 @@ void PrepareForTailCall(MacroAssembler* masm, Register args_reg, |
Label no_interpreter_frame; |
__ LoadP(scratch3, |
MemOperand(fp, CommonFrameConstants::kContextOrFrameTypeOffset)); |
- __ CmpSmiLiteral(scratch3, Smi::FromInt(StackFrame::STUB), r0); |
+ __ cmpi(scratch3, Operand(StackFrame::TypeToMarker(StackFrame::STUB))); |
__ bne(&no_interpreter_frame); |
__ LoadP(fp, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
__ bind(&no_interpreter_frame); |
@@ -2466,7 +2466,8 @@ void PrepareForTailCall(MacroAssembler* masm, Register args_reg, |
__ LoadP( |
scratch3, |
MemOperand(scratch2, CommonFrameConstants::kContextOrFrameTypeOffset)); |
- __ CmpSmiLiteral(scratch3, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR), r0); |
+ __ cmpi(scratch3, |
+ Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR))); |
__ bne(&no_arguments_adaptor); |
// Drop current frame and load arguments count from arguments adaptor frame. |