Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 32440bbcda38904cd3f918ec4f4835338f9ec470..b357bef3a18df468b88a281cb2494c5aa1bec4c4 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -2737,8 +2737,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ EmitLoadTypeFeedbackVector(x2); |
__ Mov(x3, SmiFromSlot(expr->CallNewFeedbackSlot())); |
- CallConstructStub stub(isolate()); |
- __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); |
+ Handle<Code> code = CodeFactory::ConstructIC(isolate()).code(); |
+ __ Call(code, RelocInfo::CODE_TARGET); |
PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
// Restore context register. |
__ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |