deps: V8: cherry-pick 3cab84c24723

Original commit message:

    [riscv64] Use s1 to save code_obj

    The caller saved a4 may be clobbered by the callee function.
    So we substitute it with the callee saved s1 to save code_obj.

    Change-Id: Iebe707cbaa62d47fdee0aa117e32e88f67dac743
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3096886
    Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn>
    Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn>
    Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
    Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
    Cr-Commit-Position: refs/heads/master@{#76294}

Refs:  v8/v8@3cab84c247

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:
Lu Yahan authored and Danielle Adams committed 2022-01-29 21:41:22 -05:00
1 parent e391da45cf
commit dc6843cabe
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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.15',
'v8_embedder_string': '-node.16',
##### V8 defaults for Node.js #####
+1 -1
View File
@@ -3642,7 +3642,7 @@ void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm,
__ Ld(closure, MemOperand(fp, StandardFrameConstants::kFunctionOffset));
// Get the Code object from the shared function info.
Register code_obj = a4;
Register code_obj = s1;
__ LoadTaggedPointerField(
code_obj,
FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));