Skip to content

Commit 30897d9

Browse files
sygtargos
andcommitted
deps: V8: backport 1d3362c55396
Original commit message: [float16array] Turn flag on by default Float16Array has shipped in blink since M135. It is unlikely it'll unship by now, so turn the flag on by default. Bug: 42203953 Change-Id: Ibd9de407b8810dd7bcdb46194fe04fc290ff8fb8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6513988 Reviewed-by: Rezvan Mahdavi Hezaveh <[email protected]> Commit-Queue: Shu-yu Guo <[email protected]> Cr-Commit-Position: refs/heads/main@{#100104} Refs: v8/v8@1d3362c Co-authored-by: Michaël Zasso <[email protected]> PR-URL: #58230 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 63f5d69 commit 30897d9

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

common.gypi

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

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

4343
##### V8 defaults for Node.js #####
4444

deps/v8/src/flags/flag-definitions.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,7 @@ DEFINE_BOOL(js_shipping, true, "enable all shipped JavaScript features")
294294

295295
// Features that are complete (but still behind the --harmony flag).
296296
#define HARMONY_STAGED_BASE(V)
297-
#define JAVASCRIPT_STAGED_FEATURES_BASE(V) \
298-
V(js_float16array, \
299-
"Float16Array, Math.f16round, DataView.getFloat16, DataView.setFloat16")
297+
#define JAVASCRIPT_STAGED_FEATURES_BASE(V)
300298

301299
#ifdef V8_INTL_SUPPORT
302300
#define HARMONY_STAGED(V) \
@@ -320,7 +318,9 @@ DEFINE_BOOL(js_shipping, true, "enable all shipped JavaScript features")
320318
V(js_atomics_pause, "Atomics.pause") \
321319
V(js_error_iserror, "Error.isError") \
322320
V(js_regexp_escape, "RegExp.escape") \
323-
V(js_explicit_resource_management, "explicit resource management")
321+
V(js_explicit_resource_management, "explicit resource management") \
322+
V(js_float16array, \
323+
"Float16Array, Math.f16round, DataView.getFloat16, DataView.setFloat16")
324324

325325
#ifdef V8_INTL_SUPPORT
326326
#define HARMONY_SHIPPING(V) HARMONY_SHIPPING_BASE(V)

deps/v8/src/init/bootstrapper.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5211,6 +5211,11 @@ DirectHandle<JSFunction> Genesis::InstallTypedArray(
52115211
GetCorrespondingRabGsabElementsKind(elements_kind), 0);
52125212
rab_gsab_initial_map->SetConstructor(*result);
52135213

5214+
if (rab_gsab_initial_map_index == Context::RAB_GSAB_FLOAT16_ARRAY_MAP_INDEX &&
5215+
v8_flags.js_float16array) {
5216+
LOG(isolate(), MapDetails(*rab_gsab_initial_map));
5217+
}
5218+
52145219
native_context()->set(rab_gsab_initial_map_index, *rab_gsab_initial_map,
52155220
UPDATE_WRITE_BARRIER, kReleaseStore);
52165221
Map::SetPrototype(isolate(), rab_gsab_initial_map, prototype);

deps/v8/test/test262/test262.status

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,7 +2500,6 @@
25002500
'staging/sm/Temporal/PlainMonthDay/from-coptic': [FAIL],
25012501
'staging/sm/Temporal/PlainMonthDay/from-gregory': [FAIL],
25022502
'staging/sm/Temporal/PlainMonthDay/result-not-after-1972-dec-31': [FAIL],
2503-
'staging/sm/Math/f16round': [FAIL],
25042503
'staging/sm/RegExp/unicode-ignoreCase': [FAIL],
25052504
'staging/sm/String/string-code-point-upper-lower-mapping': [FAIL],
25062505
'staging/sm/String/string-upper-lower-mapping': [FAIL],
@@ -2511,13 +2510,10 @@
25112510
'staging/sm/TypedArray/prototype-constructor-identity': [FAIL],
25122511
'staging/sm/TypedArray/set-detached-bigint': [FAIL],
25132512
'staging/sm/TypedArray/seal-and-freeze': [FAIL],
2514-
'staging/sm/TypedArray/sort-negative-nan': [FAIL],
2515-
'staging/sm/TypedArray/sort_small': [FAIL],
25162513
'staging/sm/TypedArray/test-integrity-level': [FAIL],
25172514
'staging/sm/TypedArray/test-integrity-level-detached': [FAIL],
25182515
'staging/sm/TypedArray/toReversed-detached': [FAIL],
25192516
'staging/sm/TypedArray/toSorted-detached': [FAIL],
2520-
'staging/sm/TypedArray/toString': [FAIL],
25212517
'staging/sm/TypedArray/with': [FAIL],
25222518
'staging/sm/TypedArray/with-detached': [FAIL],
25232519
}],

0 commit comments

Comments
 (0)