Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 9d93aafb9d6aed3b8148de70d9ddae680b0f899f..944a5e7cd0b4f85290ceb408286f77e0f2065832 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1645,8 +1645,7 @@ void FullCodeGenerator::EmitAccessor(Expression* expression) { |
void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
Comment cmnt(masm_, "[ ObjectLiteral"); |
- int depth = 1; |
- expr->BuildConstantProperties(isolate(), &depth); |
+ expr->BuildConstantProperties(isolate()); |
Handle<FixedArray> constant_properties = expr->constant_properties(); |
__ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
__ lw(a3, FieldMemOperand(a3, JSFunction::kLiteralsOffset)); |
@@ -1661,7 +1660,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ li(a0, Operand(Smi::FromInt(flags))); |
int properties_count = constant_properties->length() / 2; |
if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
- depth > 1 || Serializer::enabled() || |
+ expr->depth() > 1 || Serializer::enabled() || |
flags != ObjectLiteral::kFastElements || |
properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
__ Push(a3, a2, a1, a0); |
@@ -1780,8 +1779,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
Comment cmnt(masm_, "[ ArrayLiteral"); |
- int depth = 1; |
- expr->BuildConstantElements(isolate(), &depth); |
+ expr->BuildConstantElements(isolate()); |
ZoneList<Expression*>* subexprs = expr->values(); |
int length = subexprs->length(); |
@@ -1808,7 +1806,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ CallStub(&stub); |
__ IncrementCounter(isolate()->counters()->cow_arrays_created_stub(), |
1, a1, a2); |
- } else if (depth > 1 || Serializer::enabled() || |
+ } else if (expr->depth() > 1 || Serializer::enabled() || |
length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
__ Push(a3, a2, a1); |
__ CallRuntime(Runtime::kCreateArrayLiteral, 3); |