Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 7b671262e585ffa1ba7cf345bb30f36c32ba937f..f930611b143e7c051efdb209ddd039069dad4e58 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -287,7 +287,7 @@ bool LCodeGen::GenerateDeferredCode() { |
DCHECK(!frame_is_built_); |
DCHECK(info()->IsStub()); |
frame_is_built_ = true; |
- __ LoadSmiLiteral(scratch0(), Smi::FromInt(StackFrame::STUB)); |
+ __ mov(scratch0(), Operand(StackFrame::TypeToMarker(StackFrame::STUB))); |
__ PushCommonFrame(scratch0()); |
Comment(";;; Deferred code"); |
} |
@@ -356,7 +356,7 @@ bool LCodeGen::GenerateJumpTable() { |
// This variant of deopt can only be used with stubs. Since we don't |
// have a function pointer to install in the stack frame that we're |
// building, install a special marker there instead. |
- __ LoadSmiLiteral(ip, Smi::FromInt(StackFrame::STUB)); |
+ __ mov(ip, Operand(StackFrame::TypeToMarker(StackFrame::STUB))); |
__ push(ip); |
DCHECK(info()->IsStub()); |
} |
@@ -3129,7 +3129,8 @@ void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { |
__ LoadP( |
result, |
MemOperand(scratch, CommonFrameConstants::kContextOrFrameTypeOffset)); |
- __ CmpSmiLiteral(result, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR), r0); |
+ __ cmpi(result, |
+ Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR))); |
// Result is the frame pointer for the frame if not adapted and for the real |
// frame below the adaptor frame if adapted. |
@@ -3767,7 +3768,8 @@ void LCodeGen::PrepareForTailCall(const ParameterCount& actual, |
__ LoadP(scratch2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
__ LoadP(scratch3, |
MemOperand(scratch2, StandardFrameConstants::kContextOffset)); |
- __ 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. |