Skip to content

Commit 1d3362c

Browse files
sygV8 LUCI CQ
authored andcommitted
[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}
1 parent 7a9deb1 commit 1d3362c

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/flags/flag-definitions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ DEFINE_BOOL(js_shipping, true, "enable all shipped JavaScript features")
294294
// Features that are complete (but still behind the --harmony flag).
295295
#define HARMONY_STAGED_BASE(V)
296296
#define JAVASCRIPT_STAGED_FEATURES_BASE(V) \
297-
V(js_float16array, \
298-
"Float16Array, Math.f16round, DataView.getFloat16, DataView.setFloat16") \
299297
V(js_base_64, "Uint8Array to/from base64 and hex")
300298

301299
#ifdef V8_INTL_SUPPORT
@@ -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)

src/init/bootstrapper.cc

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

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

test/test262/test262.status

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,6 @@
23832383
'staging/sm/Temporal/PlainMonthDay/from-coptic': [FAIL],
23842384
'staging/sm/Temporal/PlainMonthDay/from-gregory': [FAIL],
23852385
'staging/sm/Temporal/PlainMonthDay/result-not-after-1972-dec-31': [FAIL],
2386-
'staging/sm/Math/f16round': [FAIL],
23872386
'staging/sm/RegExp/unicode-ignoreCase': [FAIL],
23882387
'staging/sm/String/string-code-point-upper-lower-mapping': [FAIL],
23892388
'staging/sm/String/string-upper-lower-mapping': [FAIL],
@@ -2394,13 +2393,10 @@
23942393
'staging/sm/TypedArray/prototype-constructor-identity': [FAIL],
23952394
'staging/sm/TypedArray/set-detached-bigint': [FAIL],
23962395
'staging/sm/TypedArray/seal-and-freeze': [FAIL],
2397-
'staging/sm/TypedArray/sort-negative-nan': [FAIL],
2398-
'staging/sm/TypedArray/sort_small': [FAIL],
23992396
'staging/sm/TypedArray/test-integrity-level': [FAIL],
24002397
'staging/sm/TypedArray/test-integrity-level-detached': [FAIL],
24012398
'staging/sm/TypedArray/toReversed-detached': [FAIL],
24022399
'staging/sm/TypedArray/toSorted-detached': [FAIL],
2403-
'staging/sm/TypedArray/toString': [FAIL],
24042400
'staging/sm/TypedArray/with': [FAIL],
24052401
'staging/sm/TypedArray/with-detached': [FAIL],
24062402
}],

0 commit comments

Comments
 (0)