Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 35f1e89f8b50b164b09ad62749b28468a1d6618b..b8ca63b656116692f4d54658a2d339f3fbfe820b 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1138,8 +1138,9 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ mov(ebx, Immediate(Smi::FromInt(expr->literal_index()))); |
__ mov(ecx, Immediate(constant_properties)); |
__ mov(edx, Immediate(Smi::FromInt(flags))); |
- 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); |
@@ -1271,8 +1272,9 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
__ mov(ebx, Immediate(Smi::FromInt(expr->literal_index()))); |
__ mov(ecx, Immediate(constant_elements)); |
- 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); |