mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
deps: V8: backport 77599ffe0a74
Original commit message:
[riscv64] Add block before LoadAddress
fix node.js DCHECK failed
issue: https://github.com/riscv-collab/v8/issues/514
Change-Id: I07f40e6aca05be3eb7304a43235185fd40ebc1f2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3260979
Reviewed-by: ji qiu <qiuji@iscas.ac.cn>
Commit-Queue: ji qiu <qiuji@iscas.ac.cn>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#77750}
Refs: v8/v8@77599ffe0a
PR-URL: https://github.com/nodejs/node/pull/41566
Refs: https://github.com/v8/v8/commit/d8dc66f
Refs: https://github.com/v8/v8/commit/3cab84c
Refs: https://github.com/v8/v8/commit/471f862
Refs: https://github.com/v8/v8/commit/77599ff
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
0b27486895
commit
036650e046
3 files changed
+3
-1
No files matched your search
+1
-1
@@ -36,7 +36,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.18',
|
||||
'v8_embedder_string': '-node.19',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
@@ -438,6 +438,7 @@ void BaselineAssembler::Switch(Register reg, int case_value_base,
|
||||
DCHECK(is_int32(imm64));
|
||||
int32_t Hi20 = (((int32_t)imm64 + 0x800) >> 12);
|
||||
int32_t Lo12 = (int32_t)imm64 << 20 >> 20;
|
||||
__ BlockTrampolinePoolFor(2);
|
||||
__ auipc(temp, Hi20); // Read PC + Hi20 into t6
|
||||
__ addi(temp, temp, Lo12); // jump PC + Hi20 + Lo12
|
||||
|
||||
|
||||
@@ -3485,6 +3485,7 @@ void TurboAssembler::LoadAddress(Register dst, Label* target,
|
||||
if (CalculateOffset(target, &offset, OffsetSize::kOffset32)) {
|
||||
int32_t Hi20 = (((int32_t)offset + 0x800) >> 12);
|
||||
int32_t Lo12 = (int32_t)offset << 20 >> 20;
|
||||
BlockTrampolinePoolScope block_trampoline_pool(this);
|
||||
auipc(dst, Hi20);
|
||||
addi(dst, dst, Lo12);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user