Skip to content

Commit bd68888

Browse files
kxxttargos
authored andcommitted
deps: V8: cherry-pick a3cc8522a4c8
Original commit message: [riscv] avoid cpu probing in li_ptr CPU probing is an expensive thing to do and we should avoid doing it upon every li_ptr call. Fixes performance regresion bisected in riscv-forks/electron#1 Change-Id: Ib5ff89b2a730e08de6735123ae60adeffe811ed8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5612950 Commit-Queue: Yahan Lu <[email protected]> Reviewed-by: Yahan Lu <[email protected]> Reviewed-by: Michael Lippautz <[email protected]> Cr-Commit-Position: refs/heads/main@{#94349} Refs: v8/v8@a3cc852 PR-URL: #53412 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2defaaf commit bd68888

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

common.gypi

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

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.14',
39+
'v8_embedder_string': '-node.15',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Kevin Gibbons <[email protected]>
181181
Keyhan Vakil <[email protected]>
182182
Kris Selden <[email protected]>
183183
Kyounga Ra <[email protected]>
184+
184185
Loo Rong Jie <[email protected]>
185186
186187
Ludovic Mermod <[email protected]>

deps/v8/src/codegen/riscv/assembler-riscv.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,6 @@ void Assembler::GeneralLi(Register rd, int64_t imm) {
10871087
}
10881088

10891089
void Assembler::li_ptr(Register rd, int64_t imm) {
1090-
base::CPU cpu;
10911090
// Initialize rd with an address
10921091
// Pointers are 48 bits
10931092
// 6 fixed instructions are generated

0 commit comments

Comments
 (0)