Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index 78132a06ccfc0050543db143d1e9a9d2b29a05b8..aea08fd3d2b88a4f23cb993bc21d08e2a308c54d 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -247,11 +247,6 @@ void FullCodeGenerator::Generate() { |
} |
} |
- Variable* home_object_var = scope()->home_object_var(); |
- if (home_object_var != nullptr) { |
- __ Push(r4); |
- } |
- |
ArgumentsAccessStub::HasNewTarget has_new_target = |
IsSubclassConstructor(info->function()->kind()) |
? ArgumentsAccessStub::HAS_NEW_TARGET |
@@ -317,19 +312,6 @@ void FullCodeGenerator::Generate() { |
SetVar(arguments, r3, r4, r5); |
} |
- // Possibly set up a local binding to the [[HomeObject]]. |
- if (home_object_var != nullptr) { |
- Comment cmnt(masm_, "[ Home object"); |
- __ Pop(LoadDescriptor::ReceiverRegister()); |
- Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); |
- __ Move(LoadDescriptor::NameRegister(), home_object_symbol); |
- __ mov(LoadDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(function()->HomeObjectFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- |
- SetVar(home_object_var, r3, r4, r5); |
- } |
- |
if (FLAG_trace) { |
__ CallRuntime(Runtime::kTraceEnter, 0); |
} |
@@ -1957,7 +1939,7 @@ void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
case NAMED_SUPER_PROPERTY: |
VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
VisitForAccumulatorValue( |
- property->obj()->AsSuperReference()->home_object_var()); |
+ property->obj()->AsSuperReference()->home_object()); |
__ Push(result_register()); |
if (expr->is_compound()) { |
const Register scratch = r4; |
@@ -1969,7 +1951,7 @@ void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
const Register scratch = r4; |
VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
VisitForAccumulatorValue( |
- property->obj()->AsSuperReference()->home_object_var()); |
+ property->obj()->AsSuperReference()->home_object()); |
__ mr(scratch, result_register()); |
VisitForAccumulatorValue(property->key()); |
__ Push(scratch, result_register()); |
@@ -2649,8 +2631,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
case NAMED_SUPER_PROPERTY: { |
__ Push(r3); |
VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
- VisitForAccumulatorValue( |
- prop->obj()->AsSuperReference()->home_object_var()); |
+ VisitForAccumulatorValue(prop->obj()->AsSuperReference()->home_object()); |
// stack: value, this; r3: home_object |
Register scratch = r5; |
Register scratch2 = r6; |
@@ -2666,7 +2647,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
case KEYED_SUPER_PROPERTY: { |
__ Push(r3); |
VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
- VisitForStackValue(prop->obj()->AsSuperReference()->home_object_var()); |
+ VisitForStackValue(prop->obj()->AsSuperReference()->home_object()); |
VisitForAccumulatorValue(prop->key()); |
Register scratch = r5; |
Register scratch2 = r6; |
@@ -2890,7 +2871,7 @@ void FullCodeGenerator::VisitProperty(Property* expr) { |
EmitNamedPropertyLoad(expr); |
} else { |
VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
- VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
+ VisitForStackValue(expr->obj()->AsSuperReference()->home_object()); |
EmitNamedSuperPropertyLoad(expr); |
} |
} else { |
@@ -2902,7 +2883,7 @@ void FullCodeGenerator::VisitProperty(Property* expr) { |
EmitKeyedPropertyLoad(expr); |
} else { |
VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
- VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
+ VisitForStackValue(expr->obj()->AsSuperReference()->home_object()); |
VisitForStackValue(expr->key()); |
EmitKeyedSuperPropertyLoad(expr); |
} |
@@ -2965,7 +2946,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) { |
// Load the function from the receiver. |
const Register scratch = r4; |
SuperReference* super_ref = prop->obj()->AsSuperReference(); |
- VisitForAccumulatorValue(super_ref->home_object_var()); |
+ VisitForAccumulatorValue(super_ref->home_object()); |
__ mr(scratch, r3); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ Push(scratch, r3, r3, scratch); |
@@ -3022,7 +3003,7 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
// Load the function from the receiver. |
const Register scratch = r4; |
SuperReference* super_ref = prop->obj()->AsSuperReference(); |
- VisitForAccumulatorValue(super_ref->home_object_var()); |
+ VisitForAccumulatorValue(super_ref->home_object()); |
__ mr(scratch, r3); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ Push(scratch, r3, r3, scratch); |
@@ -4894,7 +4875,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case NAMED_SUPER_PROPERTY: { |
VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
VisitForAccumulatorValue( |
- prop->obj()->AsSuperReference()->home_object_var()); |
+ prop->obj()->AsSuperReference()->home_object()); |
__ Push(result_register()); |
const Register scratch = r4; |
__ LoadP(scratch, MemOperand(sp, kPointerSize)); |
@@ -4906,7 +4887,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case KEYED_SUPER_PROPERTY: { |
VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
VisitForAccumulatorValue( |
- prop->obj()->AsSuperReference()->home_object_var()); |
+ prop->obj()->AsSuperReference()->home_object()); |
const Register scratch = r4; |
const Register scratch1 = r5; |
__ mr(scratch, result_register()); |