Index: src/a64/full-codegen-a64.cc |
diff --git a/src/a64/full-codegen-a64.cc b/src/a64/full-codegen-a64.cc |
index 41ee16e1a92be4aadaed95a3435e2722c9524890..8cf80dcaf1b498c8b31cfd4bad0774766dc4b045 100644 |
--- a/src/a64/full-codegen-a64.cc |
+++ b/src/a64/full-codegen-a64.cc |
@@ -145,10 +145,10 @@ void FullCodeGenerator::Generate() { |
} |
#endif |
- // Classic mode functions and builtins need to replace the receiver with the |
+ // 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->is_classic_mode() && !info->is_native()) { |
+ if (info->is_sloppy_mode() && !info->is_native()) { |
Label ok; |
int receiver_offset = info->scope()->num_parameters() * kXRegSizeInBytes; |
__ Peek(x10, receiver_offset); |
@@ -251,12 +251,12 @@ void FullCodeGenerator::Generate() { |
// The stub will rewrite receiver and parameter count if the previous |
// stack frame was an arguments adapter frame. |
ArgumentsAccessStub::Type type; |
- if (!is_classic_mode()) { |
+ if (!is_sloppy_mode()) { |
type = ArgumentsAccessStub::NEW_STRICT; |
} else if (function()->has_duplicate_parameters()) { |
- type = ArgumentsAccessStub::NEW_NON_STRICT_SLOW; |
+ type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
} else { |
- type = ArgumentsAccessStub::NEW_NON_STRICT_FAST; |
+ type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
} |
ArgumentsAccessStub stub(type); |
__ CallStub(&stub); |
@@ -1356,7 +1356,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, |
Scope* s = scope(); |
while (s != NULL) { |
if (s->num_heap_slots() > 0) { |
- if (s->calls_non_strict_eval()) { |
+ if (s->calls_sloppy_eval()) { |
// Check that extension is NULL. |
__ Ldr(temp, ContextMemOperand(current, Context::EXTENSION_INDEX)); |
__ Cbnz(temp, slow); |
@@ -1368,7 +1368,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, |
} |
// If no outer scope calls eval, we do not need to check more |
// context extensions. |
- if (!s->outer_scope_calls_non_strict_eval() || s->is_eval_scope()) break; |
+ if (!s->outer_scope_calls_sloppy_eval() || s->is_eval_scope()) break; |
s = s->outer_scope(); |
} |
@@ -1406,7 +1406,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, |
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { |
if (s->num_heap_slots() > 0) { |
- if (s->calls_non_strict_eval()) { |
+ if (s->calls_sloppy_eval()) { |
// Check that extension is NULL. |
__ Ldr(temp, ContextMemOperand(context, Context::EXTENSION_INDEX)); |
__ Cbnz(temp, slow); |
@@ -2144,7 +2144,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr) { |
VisitForAccumulatorValue(prop->key()); |
__ Mov(x1, x0); |
__ Pop(x2, x0); |
- Handle<Code> ic = is_classic_mode() |
+ Handle<Code> ic = is_sloppy_mode() |
? isolate()->builtins()->KeyedStoreIC_Initialize() |
: isolate()->builtins()->KeyedStoreIC_Initialize_Strict(); |
CallIC(ic); |
@@ -2274,7 +2274,7 @@ void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
// TODO(all): Could we pass this in registers rather than on the stack? |
__ Pop(x1, x2); // Key and object holding the property. |
- Handle<Code> ic = is_classic_mode() |
+ Handle<Code> ic = is_sloppy_mode() |
? isolate()->builtins()->KeyedStoreIC_Initialize() |
: isolate()->builtins()->KeyedStoreIC_Initialize_Strict(); |
CallIC(ic, expr->AssignmentFeedbackId()); |
@@ -2328,7 +2328,7 @@ void FullCodeGenerator::EmitCallWithIC(Call* expr) { |
PrepareForBailout(callee, NO_REGISTERS); |
} |
// Push undefined as receiver. This is patched in the method prologue if it |
- // is a classic mode method. |
+ // is a sloppy mode method. |
__ Push(isolate()->factory()->undefined_value()); |
flags = NO_CALL_FUNCTION_FLAGS; |
} else { |
@@ -3892,8 +3892,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
if (property != NULL) { |
VisitForStackValue(property->obj()); |
VisitForStackValue(property->key()); |
- StrictModeFlag strict_mode_flag = (language_mode() == CLASSIC_MODE) |
- ? kNonStrictMode : kStrictMode; |
+ StrictModeFlag strict_mode_flag = (language_mode() == SLOPPY_MODE) |
+ ? kSloppyMode : kStrictMode; |
__ Mov(x10, Operand(Smi::FromInt(strict_mode_flag))); |
__ Push(x10); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
@@ -3902,11 +3902,11 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
Variable* var = proxy->var(); |
// Delete of an unqualified identifier is disallowed in strict mode |
// but "delete this" is allowed. |
- ASSERT(language_mode() == CLASSIC_MODE || var->is_this()); |
+ ASSERT(language_mode() == SLOPPY_MODE || var->is_this()); |
if (var->IsUnallocated()) { |
__ Ldr(x12, GlobalObjectMemOperand()); |
__ Mov(x11, Operand(var->name())); |
- __ Mov(x10, Operand(Smi::FromInt(kNonStrictMode))); |
+ __ Mov(x10, Operand(Smi::FromInt(kSloppyMode))); |
__ Push(x12, x11, x10); |
__ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION); |
context()->Plug(x0); |
@@ -4163,7 +4163,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case KEYED_PROPERTY: { |
__ Pop(x1); // Key. |
__ Pop(x2); // Receiver. |
- Handle<Code> ic = is_classic_mode() |
+ Handle<Code> ic = is_sloppy_mode() |
? isolate()->builtins()->KeyedStoreIC_Initialize() |
: isolate()->builtins()->KeyedStoreIC_Initialize_Strict(); |
CallIC(ic, expr->CountStoreFeedbackId()); |