Skip to content

Commit fc088cd

Browse files
fgmccabeCommit Bot
authored andcommitted
Revert "[weakrefs] Ship WeakRef and FinalizationRegistry."
This reverts commit 30c6bd4. Reason for revert: Breaks https://ci.chromium.org/p/v8/builders/ci/V8%20Linux64%20GC%20Stress%20-%20custom%20snapshot/30797? and https://ci.chromium.org/p/v8/builders/ci/V8%20Blink%20Linux/4190 and https://test-results.appspot.com/data/layout_results/V8_Blink_Linux/4190/blink_web_tests%20%28retry%20shards%20with%20patch%29/layout-test-results/results.html Original change's description: > [weakrefs] Ship WeakRef and FinalizationRegistry. > > I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/L04PqDk9eMU > Bug: v8:8179 > Change-Id: I52aaa62cdab981b802fa4a986d60421ef6efcfbb > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2158371 > Commit-Queue: Shu-yu Guo <syg@chromium.org> > Reviewed-by: Ulan Degenbaev <ulan@chromium.org> > Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> > Cr-Commit-Position: refs/heads/master@{#67295} TBR=ulan@chromium.org,rmcilroy@chromium.org,syg@chromium.org Change-Id: I22b7d91fcde9761c40d4ccaaccab24629cdb4249 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: v8:8179 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2158924 Reviewed-by: Francis McCabe <fgm@chromium.org> Commit-Queue: Francis McCabe <fgm@chromium.org> Cr-Commit-Position: refs/heads/master@{#67297}
1 parent b00a531 commit fc088cd

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

src/flags/flag-definitions.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ DEFINE_IMPLICATION(harmony_weak_refs_with_cleanup_some, harmony_weak_refs)
217217
V(harmony_promise_any, "harmony Promise.any") \
218218
V(harmony_string_replaceall, "harmony String.prototype.replaceAll") \
219219
V(harmony_regexp_sequence, "RegExp Unicode sequence properties") \
220+
V(harmony_weak_refs, "harmony weak references") \
220221
V(harmony_weak_refs_with_cleanup_some, \
221222
"harmony weak references with FinalizationRegistry.prototype.cleanupSome") \
222223
V(harmony_regexp_match_indices, "harmony regexp match indices") \
@@ -246,15 +247,14 @@ DEFINE_IMPLICATION(harmony_weak_refs_with_cleanup_some, harmony_weak_refs)
246247
#endif
247248

248249
// Features that are shipping (turned on by default, but internal flag remains).
249-
#define HARMONY_SHIPPING_BASE(V) \
250-
V(harmony_namespace_exports, \
251-
"harmony namespace exports (export * as foo from 'bar')") \
252-
V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \
253-
V(harmony_import_meta, "harmony import.meta property") \
254-
V(harmony_dynamic_import, "harmony dynamic import") \
255-
V(harmony_promise_all_settled, "harmony Promise.allSettled") \
256-
V(harmony_private_methods, "harmony private methods in class literals") \
257-
V(harmony_weak_refs, "harmony weak references")
250+
#define HARMONY_SHIPPING_BASE(V) \
251+
V(harmony_namespace_exports, \
252+
"harmony namespace exports (export * as foo from 'bar')") \
253+
V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \
254+
V(harmony_import_meta, "harmony import.meta property") \
255+
V(harmony_dynamic_import, "harmony dynamic import") \
256+
V(harmony_promise_all_settled, "harmony Promise.allSettled") \
257+
V(harmony_private_methods, "harmony private methods in class literals")
258258

259259
#ifdef V8_INTL_SUPPORT
260260
#define HARMONY_SHIPPING(V) \

src/init/bootstrapper.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3944,12 +3944,9 @@ Handle<JSFunction> Genesis::InstallTypedArray(const char* name,
39443944
void Genesis::InitializeExperimentalGlobal() {
39453945
#define FEATURE_INITIALIZE_GLOBAL(id, descr) InitializeGlobal_##id();
39463946

3947-
// Initialize features from more mature to less mature, because less mature
3948-
// features may depend on more mature features having been initialized
3949-
// already.
3950-
HARMONY_SHIPPING(FEATURE_INITIALIZE_GLOBAL)
3951-
HARMONY_STAGED(FEATURE_INITIALIZE_GLOBAL)
39523947
HARMONY_INPROGRESS(FEATURE_INITIALIZE_GLOBAL)
3948+
HARMONY_STAGED(FEATURE_INITIALIZE_GLOBAL)
3949+
HARMONY_SHIPPING(FEATURE_INITIALIZE_GLOBAL)
39533950
#undef FEATURE_INITIALIZE_GLOBAL
39543951
}
39553952

0 commit comments

Comments
 (0)