Skip to content

Commit dcf6977

Browse files
deps: V8: backport c4d06ba586f3
Original commit message: [loong64][compiler] Extend Word64Select instruction functionality Change-Id: Iba762777642d2d2d3aa904f9afc1e9005139992e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7801520 Reviewed-by: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn> Commit-Queue: Liu Yu <liuyu@loongson.cn> Reviewed-by: Darius Mercadier <dmercadier@chromium.org> Auto-Submit: Liu Yu <liuyu@loongson.cn> Cr-Commit-Position: refs/heads/main@{#107619} Refs: v8/v8@c4d06ba Co-authored-by: liujiahui <liujiahui@loongson.cn>
1 parent 4899634 commit dcf6977

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# Reset this number to 0 on major V8 upgrades.
4242
# Increment by one for each non-official patch applied to deps/v8.
43-
'v8_embedder_string': '-node.20',
43+
'v8_embedder_string': '-node.21',
4444

4545
##### V8 defaults for Node.js #####
4646

deps/v8/src/compiler/backend/loong64/code-generator-loong64.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,10 +1363,14 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
13631363
case kLoong64Sub_d:
13641364
__ Sub_d(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
13651365
break;
1366-
case kLoong64SubOvf_d:
1366+
case kLoong64SubOvf_d: {
1367+
UseScratchRegisterScope temps(masm());
1368+
DCHECK(temps.hasAvailable());
1369+
temps.Exclude(t8);
13671370
__ SubOverflow_d(i.OutputRegister(), i.InputRegister(0),
13681371
i.InputOperand(1), t8);
13691372
break;
1373+
}
13701374
case kLoong64Mul_w:
13711375
__ Mul_w(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
13721376
break;

0 commit comments

Comments
 (0)