Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index faa8c9bdd8d8fc22a2f3f734d085839875eba1ea..21275dd5b390ed874024781718fb142c08c2b21f 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -142,8 +142,7 @@ bool LCodeGen::GeneratePrologue() { |
// Sloppy mode functions and builtins need to replace the receiver with the |
// global proxy when called as functions (without an explicit receiver |
// object). |
- if (info_->this_has_uses() && |
- info_->strict_mode() == SLOPPY && |
+ if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && |
!info_->is_native()) { |
Label ok; |
int receiver_offset = info_->scope()->num_parameters() * kPointerSize; |
@@ -4254,7 +4253,7 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
__ li(StoreDescriptor::NameRegister(), Operand(instr->name())); |
- Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); |
+ Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->language_mode()); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -4486,7 +4485,7 @@ void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
Handle<Code> ic = |
- CodeFactory::KeyedStoreIC(isolate(), instr->strict_mode()).code(); |
+ CodeFactory::KeyedStoreIC(isolate(), instr->language_mode()).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -5542,7 +5541,7 @@ void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { |
// space for nested functions that don't need literals cloning. |
bool pretenure = instr->hydrogen()->pretenure(); |
if (!pretenure && instr->hydrogen()->has_no_literals()) { |
- FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(), |
+ FastNewClosureStub stub(isolate(), instr->hydrogen()->language_mode(), |
instr->hydrogen()->kind()); |
__ li(a2, Operand(instr->hydrogen()->shared_info())); |
CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |