Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index 6a3936a87fa0f73d85c6e6bc16ed37b427bd87f2..b34e53a04c824603c450afe7c704fb55e19b2adc 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -109,8 +109,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; |
// +1 for return address. |
@@ -4571,7 +4570,7 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
__ mov(StoreDescriptor::NameRegister(), 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); |
} |
@@ -4802,7 +4801,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); |
} |
@@ -5974,7 +5973,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()); |
__ mov(ebx, Immediate(instr->hydrogen()->shared_info())); |
CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |