From 359c48d908a7cbad594b801713125c91b9c7581e Mon Sep 17 00:00:00 2001 From: Lu Yahan Date: Thu, 28 Apr 2022 10:42:35 +0800 Subject: [PATCH] [riscv64] Delete extra scratch reg Change-Id: Ib145fcc89ff15d06de8205e67280798ed8f36aac Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3612667 Reviewed-by: ji qiu Commit-Queue: ji qiu Auto-Submit: Yahan Lu Cr-Commit-Position: refs/heads/main@{#80242} --- src/builtins/riscv64/builtins-riscv64.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/builtins/riscv64/builtins-riscv64.cc b/src/builtins/riscv64/builtins-riscv64.cc index 49432f956c..2f44abfcee 100644 --- a/src/builtins/riscv64/builtins-riscv64.cc +++ b/src/builtins/riscv64/builtins-riscv64.cc @@ -192,8 +192,6 @@ void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { static_cast(FunctionKind::kDefaultDerivedConstructor), static_cast(FunctionKind::kDerivedConstructor), ¬_create_implicit_receiver); - Register scratch = func_info; - Register scratch2 = temps.Acquire(); // If not derived class constructor: Allocate the new receiver object. __ Call(BUILTIN_CODE(masm->isolate(), FastNewObject), RelocInfo::CODE_TARGET);