diff options
Diffstat (limited to 'deps/v8/src/full-codegen/mips/full-codegen-mips.cc')
-rw-r--r-- | deps/v8/src/full-codegen/mips/full-codegen-mips.cc | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/deps/v8/src/full-codegen/mips/full-codegen-mips.cc b/deps/v8/src/full-codegen/mips/full-codegen-mips.cc index 4725d3c3d4..e051b0b158 100644 --- a/deps/v8/src/full-codegen/mips/full-codegen-mips.cc +++ b/deps/v8/src/full-codegen/mips/full-codegen-mips.cc @@ -1023,7 +1023,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { __ Branch(&no_descriptors, eq, a1, Operand(Smi::kZero)); __ LoadInstanceDescriptors(v0, a2); - __ lw(a2, FieldMemOperand(a2, DescriptorArray::kEnumCacheOffset)); + __ lw(a2, FieldMemOperand(a2, DescriptorArray::kEnumCacheBridgeOffset)); __ lw(a2, FieldMemOperand(a2, DescriptorArray::kEnumCacheBridgeCacheOffset)); // Set up the four remaining stack slots. @@ -1222,8 +1222,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { __ Push(a3, a2, a1, a0); __ CallRuntime(Runtime::kCreateObjectLiteral); } else { - Callable callable = CodeFactory::FastCloneShallowObject( - isolate(), expr->properties_count()); + Callable callable = CodeFactory::FastCloneShallowObject(isolate()); __ Call(callable.code(), RelocInfo::CODE_TARGET); RestoreContext(); } @@ -1776,12 +1775,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, // Assignment to var or initializing assignment to let/const in harmony // mode. MemOperand location = VarOperand(var, a1); - if (FLAG_debug_code && var->mode() == LET && op == Token::INIT) { - // Check for an uninitialized let binding. - __ lw(a2, location); - __ LoadRoot(t0, Heap::kTheHoleValueRootIndex); - __ Check(eq, kLetBindingReInitialization, a2, Operand(t0)); - } EmitStoreToStackLocalOrContextSlot(var, location); } } @@ -2259,9 +2252,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { if (property != NULL) { VisitForStackValue(property->obj()); VisitForStackValue(property->key()); - CallRuntimeWithOperands(is_strict(language_mode()) - ? Runtime::kDeleteProperty_Strict - : Runtime::kDeleteProperty_Sloppy); + PushOperand(Smi::FromInt(language_mode())); + CallRuntimeWithOperands(Runtime::kDeleteProperty); context()->Plug(v0); } else if (proxy != NULL) { Variable* var = proxy->var(); @@ -2273,7 +2265,8 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { __ LoadGlobalObject(a2); __ li(a1, Operand(var->name())); __ Push(a2, a1); - __ CallRuntime(Runtime::kDeleteProperty_Sloppy); + __ Push(Smi::FromInt(SLOPPY)); + __ CallRuntime(Runtime::kDeleteProperty); context()->Plug(v0); } else { DCHECK(!var->IsLookupSlot()); |