Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index df37b38a42fa84420d26b2fdcc358b1fd55f34e5..568db17ed27c77422dc42dec2e67c27a926742ff 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1149,8 +1149,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); |
@@ -1282,8 +1283,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); |