Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index acd8baad1619d43521abd344d36e130e7c1faf44..9e27b041bad8f95aa8c9aff7eda56c2a24b4aad3 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2091,7 +2091,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
__ Mov(LoadDescriptor::NameRegister(), Operand(key->value())); |
__ Mov(LoadDescriptor::SlotRegister(), |
SmiFromSlot(prop->PropertyFeedbackSlot())); |
- CallLoadIC(NOT_CONTEXTUAL, language_mode()); |
+ CallLoadIC(NOT_CONTEXTUAL); |
} |
@@ -2103,15 +2103,14 @@ void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { |
DCHECK(prop->IsSuperAccess()); |
__ Push(key->value()); |
- __ Push(Smi::FromInt(language_mode())); |
- __ CallRuntime(Runtime::kLoadFromSuper, 4); |
+ __ CallRuntime(Runtime::kLoadFromSuper, 3); |
} |
void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
SetSourcePosition(prop->position()); |
// Call keyed load IC. It has arguments key and receiver in x0 and x1. |
- Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate(), language_mode()).code(); |
+ Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code(); |
__ Mov(LoadDescriptor::SlotRegister(), |
SmiFromSlot(prop->PropertyFeedbackSlot())); |
CallIC(ic); |
@@ -2120,10 +2119,9 @@ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { |
// Stack: receiver, home_object, key. |
- __ Push(Smi::FromInt(language_mode())); |
SetSourcePosition(prop->position()); |
- __ CallRuntime(Runtime::kLoadKeyedFromSuper, 4); |
+ __ CallRuntime(Runtime::kLoadKeyedFromSuper, 3); |
} |
@@ -2685,15 +2683,14 @@ void FullCodeGenerator::EmitSuperCallWithLoadIC(Call* expr) { |
__ Peek(scratch, kPointerSize); |
__ Push(x0, scratch); |
__ Push(key->value()); |
- __ Push(Smi::FromInt(language_mode())); |
// Stack here: |
// - home_object |
// - this (receiver) |
// - this (receiver) <-- LoadFromSuper will pop here and below. |
// - home_object |
- // - language_mode |
- __ CallRuntime(Runtime::kLoadFromSuper, 4); |
+ // - key |
+ __ CallRuntime(Runtime::kLoadFromSuper, 3); |
// Replace home_object with target function. |
__ Poke(x0, kPointerSize); |
@@ -2746,7 +2743,6 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
__ Peek(scratch, kPointerSize); |
__ Push(x0, scratch); |
VisitForStackValue(prop->key()); |
- __ Push(Smi::FromInt(language_mode())); |
// Stack here: |
// - home_object |
@@ -2754,8 +2750,7 @@ void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
// - this (receiver) <-- LoadKeyedFromSuper will pop here and below. |
// - home_object |
// - key |
- // - language_mode |
- __ CallRuntime(Runtime::kLoadKeyedFromSuper, 4); |
+ __ CallRuntime(Runtime::kLoadKeyedFromSuper, 3); |
// Replace home_object with target function. |
__ Poke(x0, kPointerSize); |
@@ -5203,7 +5198,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ Peek(load_name, 2 * kPointerSize); |
__ Mov(LoadDescriptor::SlotRegister(), |
SmiFromSlot(expr->KeyedLoadFeedbackSlot())); |
- Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate(), SLOPPY).code(); |
+ Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code(); |
CallIC(ic, TypeFeedbackId::None()); |
__ Mov(x1, x0); |
__ Poke(x1, 2 * kPointerSize); |