Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index de22cee2d727f2f28cc5dc069454060f6a8f67aa..4c25738349cb0accea6cadb6c4a007ea0af04ccd 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1217,8 +1217,9 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ Push(a3, a2, a1, a0); |
__ CallRuntime(Runtime::kCreateObjectLiteral); |
} else { |
- FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); |
- __ CallStub(&stub); |
+ Callable callable = CodeFactory::FastCloneShallowObject( |
+ isolate(), expr->properties_count()); |
+ __ Call(callable.code(), RelocInfo::CODE_TARGET); |
RestoreContext(); |
} |
PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); |
@@ -1356,8 +1357,9 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ Push(a3, a2, a1, a0); |
__ CallRuntime(Runtime::kCreateArrayLiteral); |
} else { |
- FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); |
- __ CallStub(&stub); |
+ Callable callable = |
+ CodeFactory::FastCloneShallowArray(isolate(), allocation_site_mode); |
+ __ Call(callable.code(), RelocInfo::CODE_TARGET); |
RestoreContext(); |
} |
PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); |