Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 87aa3a225cdf6cb4e013ec4e5eefe0622f6bff72..18729c98392be87c0b8cc0935f3cda362fffcb2a 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -238,11 +238,6 @@ void FullCodeGenerator::Generate() { |
} |
} |
- Variable* home_object_var = scope()->home_object_var(); |
- if (home_object_var != nullptr) { |
- __ push(edi); |
- } |
- |
// 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(); |
@@ -327,19 +322,6 @@ void FullCodeGenerator::Generate() { |
SetVar(arguments, eax, ebx, edx); |
} |
- // 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()); |
- __ mov(LoadDescriptor::NameRegister(), Immediate(home_object_symbol)); |
- __ mov(LoadDescriptor::SlotRegister(), |
- Immediate(SmiFromSlot(function()->HomeObjectFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- |
- SetVar(home_object_var, eax, ebx, edx); |
- } |
- |
if (FLAG_trace) { |
__ CallRuntime(Runtime::kTraceEnter, 0); |
} |
@@ -1941,7 +1923,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()) { |
__ push(MemOperand(esp, kPointerSize)); |
@@ -1961,7 +1943,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()) { |
@@ -2587,7 +2569,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
__ push(eax); |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForAccumulatorValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
// stack: value, this; eax: home_object |
Register scratch = ecx; |
Register scratch2 = edx; |
@@ -2604,7 +2586,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, |
__ push(eax); |
VisitForStackValue(prop->obj()->AsSuperPropertyReference()->this_var()); |
VisitForStackValue( |
- prop->obj()->AsSuperPropertyReference()->home_object_var()); |
+ prop->obj()->AsSuperPropertyReference()->home_object()); |
VisitForAccumulatorValue(prop->key()); |
Register scratch = ecx; |
Register scratch2 = edx; |
@@ -2828,7 +2810,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 { |
@@ -2841,7 +2823,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); |
} |
@@ -2900,7 +2882,7 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) { |
DCHECK(!key->value()->IsSmi()); |
// Load the function from the receiver. |
SuperPropertyReference* super_ref = prop->obj()->AsSuperPropertyReference(); |
- VisitForStackValue(super_ref->home_object_var()); |
+ VisitForStackValue(super_ref->home_object()); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ push(eax); |
__ push(eax); |
@@ -2956,7 +2938,7 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
SetSourcePosition(prop->position()); |
// Load the function from the receiver. |
SuperPropertyReference* super_ref = prop->obj()->AsSuperPropertyReference(); |
- VisitForStackValue(super_ref->home_object_var()); |
+ VisitForStackValue(super_ref->home_object()); |
VisitForAccumulatorValue(super_ref->this_var()); |
__ push(eax); |
__ push(eax); |
@@ -4848,7 +4830,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()); |
__ push(MemOperand(esp, kPointerSize)); |
__ push(result_register()); |
@@ -4859,7 +4841,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()); |
__ push(MemOperand(esp, 2 * kPointerSize)); |