Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index e1264dcc5cde90252892b2479c18278b0adab43a..bc0b106cdb7f7a6e10a26fa134ba32713d4f9766 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -675,7 +675,7 @@ bool LCodeGen::GeneratePrologue() { |
// global proxy when called as functions (without an explicit receiver |
// object). |
if (info_->this_has_uses() && |
- info_->is_sloppy_mode() && |
+ info_->strict_mode() == SLOPPY && |
!info_->is_native()) { |
Label ok; |
int receiver_offset = info_->scope()->num_parameters() * kXRegSizeInBytes; |
@@ -2736,7 +2736,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(instr->hydrogen()->language_mode(), |
+ FastNewClosureStub stub(instr->hydrogen()->strict_mode(), |
instr->hydrogen()->is_generator()); |
__ Mov(x2, Operand(instr->hydrogen()->shared_info())); |
CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
@@ -5031,7 +5031,7 @@ void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
ASSERT(ToRegister(instr->key()).Is(x1)); |
ASSERT(ToRegister(instr->value()).Is(x0)); |
- Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
+ Handle<Code> ic = instr->strict_mode() == STRICT |
? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
: isolate()->builtins()->KeyedStoreIC_Initialize(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
@@ -5138,8 +5138,7 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
// Name must be in x2. |
__ Mov(x2, Operand(instr->name())); |
- Handle<Code> ic = StoreIC::initialize_stub(isolate(), |
- instr->strict_mode_flag()); |
+ Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |