Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index ee280b40617521ea4d95511cd69652bc7cd37fac..0fc556f49dafb92dd0130dfb72e8e3a7707c23e0 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -3918,17 +3918,15 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
} |
-void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
- __ LoadP(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- context()->Plug(r3); |
-} |
- |
- |
Register FullCodeGenerator::result_register() { return r3; } |
Register FullCodeGenerator::context_register() { return cp; } |
+void FullCodeGenerator::LoadFromFrameField(int frame_offset, Register value) { |
+ DCHECK_EQ(static_cast<int>(POINTER_SIZE_ALIGN(frame_offset)), frame_offset); |
+ __ LoadP(value, MemOperand(fp, frame_offset), r0); |
+} |
void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { |
DCHECK_EQ(static_cast<int>(POINTER_SIZE_ALIGN(frame_offset)), frame_offset); |