mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
deps: V8: cherry-pick 394a8053b59e
Original commit message:
[riscv] Check trampoline before Constant pool in Release mode
Change-Id: I9645cded9328dabb2c11c7859b998c838b95f97b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6653368
Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn>
Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#100935}
Refs: https://github.com/v8/v8/commit/394a8053b59e719f9347a9695062acafe6007def
PR-URL: https://github.com/nodejs/node/pull/60962
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Stewart X Addison <sxa@redhat.com>
This commit is contained in:
1 parent
c95a4a0f43
commit
155eaedff2
2 files changed
+3
-4
No files matched your search
+1
-1
@@ -38,7 +38,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.38',
|
||||
'v8_embedder_string': '-node.39',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
+2
-3
@@ -4930,10 +4930,9 @@ void MacroAssembler::Jump(Register target, Condition cond, Register rs,
|
||||
jr(target);
|
||||
DEBUG_PRINTF("\tCheckTrampolinePool pc_offset:%d %d\n", pc_offset(),
|
||||
next_buffer_check() - ConstpoolComputesize());
|
||||
if (!is_trampoline_emitted() && v8_flags.debug_code &&
|
||||
if (!is_trampoline_emitted() &&
|
||||
pc_offset() >= (next_buffer_check() - ConstpoolComputesize())) {
|
||||
// Debug mode will emit more instrs than Release mode.
|
||||
// so we need to check trampoline pool before Constant pool.
|
||||
// We need to check trampoline pool before Constant pool.
|
||||
// Here need to emit trampoline first.
|
||||
// Jump(ra, al) will block trampoline pool for 1 instr.
|
||||
nop();
|
||||
|
||||
Reference in new issue
Block a user