Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 6aac79ec11ffd966d87ad7a6ba30e7d0d82a31ef..c9c8eafc470b6e5c05e1f14392282abce7c453b5 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -242,11 +242,6 @@ void FullCodeGenerator::Generate() { |
} |
} |
- Variable* home_object_var = scope()->home_object_var(); |
- if (home_object_var != nullptr) { |
- __ Push(r1); |
- } |
- |
// Possibly set up a local binding to the this function which is used in |
// derived constructors with super calls. |
Variable* this_function_var = scope()->this_function_var(); |
@@ -331,18 +326,6 @@ void FullCodeGenerator::Generate() { |
SetVar(arguments, r0, r1, r2); |
} |
- // 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); |
- __ Move(LoadDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(function()->HomeObjectFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- |
- SetVar(home_object_var, r0, r1, r2); |
- } |
if (FLAG_trace) { |
__ CallRuntime(Runtime::kTraceEnter, 0); |
@@ -2023,7 +2006,7 @@ void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
VisitForStackValue( |
property->obj()->AsSuperPropertyReference()->this_var()); |
VisitForAccumulatorValue( |
- property->obj()->AsSuperPropertyReference()->home_object_var()); |
+ property->obj()->AsSuperPropertyReference()->home_object()); |
__ Push(result_register()); |
if (expr->is_compound()) { |
const Register scratch = r1; |
@@ -2036,7 +2019,7 @@ void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
VisitForStackValue( |
property->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- property->obj()->AsSuperPropertyReference()->home_object_var()); |
+ property->obj()->AsSuperPropertyReference()->home_object()); |
VisitForAccumulatorValue(property->key()); |
__ Push(result_register()); |
if (expr->is_compound()) { |
@@ -2680,7 +2663,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
__ Push(r0); |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForAccumulatorValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
// stack: value, this; r0: home_object |
Register scratch = r2; |
Register scratch2 = r3; |
@@ -2697,7 +2680,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
__ Push(r0); |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
VisitForAccumulatorValue(prop->key()); |
Register scratch = r2; |
Register scratch2 = r3; |
@@ -2923,7 +2906,7 @@ void FullCodeGenerator::VisitProperty(Property* expr) { |
} else { |
VisitForStackValue(expr->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- expr->obj()->AsSuperPropertyReference()->home_object_var()); |
+ expr->obj()->AsSuperPropertyReference()->home_object()); |
EmitNamedSuperPropertyLoad(expr); |
} |
} else { |
@@ -2936,7 +2919,7 @@ void FullCodeGenerator::VisitProperty(Property* expr) { |
} else { |
VisitForStackValue(expr->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- expr->obj()->AsSuperPropertyReference()->home_object_var()); |
+ expr->obj()->AsSuperPropertyReference()->home_object()); |
VisitForStackValue(expr->key()); |
EmitKeyedSuperPropertyLoad(expr); |
} |
@@ -3002,7 +2985,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) { |
// Load the function from the receiver. |
const Register scratch = r1; |
SuperPropertyReference* super_ref = prop->obj()->AsSuperPropertyReference(); |
- VisitForStackValue(super_ref->home_object_var()); |
+ VisitForStackValue(super_ref->home_object()); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ Push(r0); |
__ Push(r0); |
@@ -3062,7 +3045,7 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
// Load the function from the receiver. |
const Register scratch = r1; |
SuperPropertyReference* super_ref = prop->obj()->AsSuperPropertyReference(); |
- VisitForStackValue(super_ref->home_object_var()); |
+ VisitForStackValue(super_ref->home_object()); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ Push(r0); |
__ Push(r0); |
@@ -4923,7 +4906,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case NAMED_SUPER_PROPERTY: { |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForAccumulatorValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
__ Push(result_register()); |
const Register scratch = r1; |
__ ldr(scratch, MemOperand(sp, kPointerSize)); |
@@ -4936,7 +4919,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case KEYED_SUPER_PROPERTY: { |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
VisitForAccumulatorValue(prop->key()); |
__ Push(result_register()); |
const Register scratch = r1; |