| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bf7aa9f commit 7197fce
47 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | 37 | # Reset this number to 0 on major V8 upgrades. | |
| 38 | 38 | # Increment by one for each non-official patch applied to deps/v8. | |
| 39 | - 'v8_embedder_string': '-node.7', | ||
| 39 | + 'v8_embedder_string': '-node.8', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -259,8 +259,6 @@ DEFINE_BOOL(use_strict, false, "enforce strict mode") | |||
| 259 | 259 | ||
| 260 | 260 | DEFINE_BOOL(harmony, false, "enable all completed harmony features") | |
| 261 | 261 | DEFINE_BOOL(harmony_shipping, true, "enable all shipped harmony features") | |
| 262 | - // Enabling FinalizationRegistry#cleanupSome also enables weak refs | ||
| 263 | - DEFINE_IMPLICATION(harmony_weak_refs_with_cleanup_some, harmony_weak_refs) | ||
| 264 | 262 | ||
| 265 | 263 | // Update bootstrapper.cc whenever adding a new feature flag. | |
| 266 | 264 | ||
@@ -298,7 +296,6 @@ DEFINE_IMPLICATION(harmony_weak_refs_with_cleanup_some, harmony_weak_refs) | |||
| 298 | 296 | #define HARMONY_SHIPPING_BASE(V) \ | |
| 299 | 297 | V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \ | |
| 300 | 298 | V(harmony_atomics, "harmony atomics") \ | |
| 301 | - V(harmony_weak_refs, "harmony weak references") \ | ||
| 302 | 299 | V(harmony_regexp_match_indices, "harmony regexp match indices") \ | |
| 303 | 300 | V(harmony_private_brand_checks, "harmony private brand checks") \ | |
| 304 | 301 | V(harmony_top_level_await, "harmony top level await") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6284,8 +6284,6 @@ MaybeHandle<JSFinalizationRegistry> Heap::DequeueDirtyJSFinalizationRegistry() { | |||
| 6284 | 6284 | } | |
| 6285 | 6285 | ||
| 6286 | 6286 | void Heap::RemoveDirtyFinalizationRegistriesOnContext(NativeContext context) { | |
| 6287 | - if (!FLAG_harmony_weak_refs) return; | ||
| 6288 | - | ||
| 6289 | 6287 | DisallowGarbageCollection no_gc; | |
| 6290 | 6288 | ||
| 6291 | 6289 | Isolate* isolate = this->isolate(); | |
@@ -6315,7 +6313,6 @@ void Heap::RemoveDirtyFinalizationRegistriesOnContext(NativeContext context) { | |||
| 6315 | 6313 | } | |
| 6316 | 6314 | ||
| 6317 | 6315 | void Heap::KeepDuringJob(Handle<JSReceiver> target) { | |
| 6318 | - DCHECK(FLAG_harmony_weak_refs); | ||
| 6319 | 6316 | DCHECK(weak_refs_keep_during_job().IsUndefined() || | |
| 6320 | 6317 | weak_refs_keep_during_job().IsOrderedHashSet()); | |
| 6321 | 6318 | Handle<OrderedHashSet> table; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2483,9 +2483,6 @@ void MarkCompactCollector::ClearWeakReferences() { | |||
| 2483 | 2483 | } | |
| 2484 | 2484 | ||
| 2485 | 2485 | void MarkCompactCollector::ClearJSWeakRefs() { | |
| 2486 | - if (!FLAG_harmony_weak_refs) { | ||
| 2487 | - return; | ||
| 2488 | - } | ||
| 2489 | 2486 | JSWeakRef weak_ref; | |
| 2490 | 2487 | while (weak_objects_.js_weak_refs.Pop(kMainThreadTask, &weak_ref)) { | |
| 2491 | 2488 | HeapObject target = HeapObject::cast(weak_ref.target()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,19 +115,17 @@ void WeakObjects::UpdateWeakObjectsInCode( | |||
| 115 | 115 | ||
| 116 | 116 | void WeakObjects::UpdateJSWeakRefs( | |
| 117 | 117 | WeakObjectWorklist<JSWeakRef>& js_weak_refs) { | |
| 118 | - if (FLAG_harmony_weak_refs) { | ||
| 119 | - js_weak_refs.Update( | ||
| 120 | - [](JSWeakRef js_weak_ref_in, JSWeakRef* js_weak_ref_out) -> bool { | ||
| 121 | - JSWeakRef forwarded = ForwardingAddress(js_weak_ref_in); | ||
| 122 | - | ||
| 123 | - if (!forwarded.is_null()) { | ||
| 124 | - *js_weak_ref_out = forwarded; | ||
| 125 | - return true; | ||
| 126 | - } | ||
| 127 | - | ||
| 128 | - return false; | ||
| 129 | - }); | ||
| 130 | - } | ||
| 118 | + js_weak_refs.Update( | ||
| 119 | + [](JSWeakRef js_weak_ref_in, JSWeakRef* js_weak_ref_out) -> bool { | ||
| 120 | + JSWeakRef forwarded = ForwardingAddress(js_weak_ref_in); | ||
| 121 | + | ||
| 122 | + if (!forwarded.is_null()) { | ||
| 123 | + *js_weak_ref_out = forwarded; | ||
| 124 | + return true; | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + return false; | ||
| 128 | + }); | ||
| 131 | 129 | } | |
| 132 | 130 | ||
| 133 | 131 | void WeakObjects::UpdateWeakCells(WeakObjectWorklist<WeakCell>& weak_cells) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3862,6 +3862,61 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, | |||
| 3862 | 3862 | native_context()->set_bound_function_with_constructor_map(*map); | |
| 3863 | 3863 | } | |
| 3864 | 3864 | ||
| 3865 | + { // -- F i n a l i z a t i o n R e g i s t r y | ||
| 3866 | + Handle<JSFunction> finalization_registry_fun = InstallFunction( | ||
| 3867 | + isolate_, global, factory->FinalizationRegistry_string(), | ||
| 3868 | + JS_FINALIZATION_REGISTRY_TYPE, JSFinalizationRegistry::kHeaderSize, 0, | ||
| 3869 | + factory->the_hole_value(), Builtins::kFinalizationRegistryConstructor); | ||
| 3870 | + InstallWithIntrinsicDefaultProto( | ||
| 3871 | + isolate_, finalization_registry_fun, | ||
| 3872 | + Context::JS_FINALIZATION_REGISTRY_FUNCTION_INDEX); | ||
| 3873 | + | ||
| 3874 | + finalization_registry_fun->shared().DontAdaptArguments(); | ||
| 3875 | + finalization_registry_fun->shared().set_length(1); | ||
| 3876 | + | ||
| 3877 | + Handle<JSObject> finalization_registry_prototype( | ||
| 3878 | + JSObject::cast(finalization_registry_fun->instance_prototype()), | ||
| 3879 | + isolate()); | ||
| 3880 | + | ||
| 3881 | + InstallToStringTag(isolate_, finalization_registry_prototype, | ||
| 3882 | + factory->FinalizationRegistry_string()); | ||
| 3883 | + | ||
| 3884 | + SimpleInstallFunction(isolate_, finalization_registry_prototype, "register", | ||
| 3885 | + Builtins::kFinalizationRegistryRegister, 2, false); | ||
| 3886 | + | ||
| 3887 | + SimpleInstallFunction(isolate_, finalization_registry_prototype, | ||
| 3888 | + "unregister", | ||
| 3889 | + Builtins::kFinalizationRegistryUnregister, 1, false); | ||
| 3890 | + | ||
| 3891 | + // The cleanupSome function is created but not exposed, as it is used | ||
| 3892 | + // internally by InvokeFinalizationRegistryCleanupFromTask. | ||
| 3893 | + // | ||
| 3894 | + // It is exposed by FLAG_harmony_weak_refs_with_cleanup_some. | ||
| 3895 | + Handle<JSFunction> cleanup_some_fun = SimpleCreateFunction( | ||
| 3896 | + isolate_, factory->InternalizeUtf8String("cleanupSome"), | ||
| 3897 | + Builtins::kFinalizationRegistryPrototypeCleanupSome, 0, false); | ||
| 3898 | + native_context()->set_finalization_registry_cleanup_some(*cleanup_some_fun); | ||
| 3899 | + } | ||
| 3900 | + | ||
| 3901 | + { // -- W e a k R e f | ||
| 3902 | + Handle<JSFunction> weak_ref_fun = InstallFunction( | ||
| 3903 | + isolate_, global, "WeakRef", JS_WEAK_REF_TYPE, JSWeakRef::kHeaderSize, | ||
| 3904 | + 0, factory->the_hole_value(), Builtins::kWeakRefConstructor); | ||
| 3905 | + InstallWithIntrinsicDefaultProto(isolate_, weak_ref_fun, | ||
| 3906 | + Context::JS_WEAK_REF_FUNCTION_INDEX); | ||
| 3907 | + | ||
| 3908 | + weak_ref_fun->shared().DontAdaptArguments(); | ||
| 3909 | + weak_ref_fun->shared().set_length(1); | ||
| 3910 | + | ||
| 3911 | + Handle<JSObject> weak_ref_prototype( | ||
| 3912 | + JSObject::cast(weak_ref_fun->instance_prototype()), isolate()); | ||
| 3913 | + | ||
| 3914 | + InstallToStringTag(isolate_, weak_ref_prototype, factory->WeakRef_string()); | ||
| 3915 | + | ||
| 3916 | + SimpleInstallFunction(isolate_, weak_ref_prototype, "deref", | ||
| 3917 | + Builtins::kWeakRefDeref, 0, true); | ||
| 3918 | + } | ||
| 3919 | + | ||
| 3865 | 3920 | { // --- sloppy arguments map | |
| 3866 | 3921 | Handle<String> arguments_string = factory->Arguments_string(); | |
| 3867 | 3922 | Handle<JSFunction> function = CreateFunctionForBuiltinWithPrototype( | |
@@ -4353,75 +4408,8 @@ void Genesis::InitializeGlobal_harmony_atomics() { | |||
| 4353 | 4408 | InstallToStringTag(isolate_, isolate()->atomics_object(), "Atomics"); | |
| 4354 | 4409 | } | |
| 4355 | 4410 | ||
| 4356 | - void Genesis::InitializeGlobal_harmony_weak_refs() { | ||
| 4357 | - if (!FLAG_harmony_weak_refs) return; | ||
| 4358 | - | ||
| 4359 | - Factory* factory = isolate()->factory(); | ||
| 4360 | - Handle<JSGlobalObject> global(native_context()->global_object(), isolate()); | ||
| 4361 | - | ||
| 4362 | - { | ||
| 4363 | - // Create %FinalizationRegistry% | ||
| 4364 | - Handle<JSFunction> finalization_registry_fun = InstallFunction( | ||
| 4365 | - isolate(), global, factory->FinalizationRegistry_string(), | ||
| 4366 | - JS_FINALIZATION_REGISTRY_TYPE, JSFinalizationRegistry::kHeaderSize, 0, | ||
| 4367 | - factory->the_hole_value(), Builtins::kFinalizationRegistryConstructor); | ||
| 4368 | - InstallWithIntrinsicDefaultProto( | ||
| 4369 | - isolate(), finalization_registry_fun, | ||
| 4370 | - Context::JS_FINALIZATION_REGISTRY_FUNCTION_INDEX); | ||
| 4371 | - | ||
| 4372 | - finalization_registry_fun->shared().DontAdaptArguments(); | ||
| 4373 | - finalization_registry_fun->shared().set_length(1); | ||
| 4374 | - | ||
| 4375 | - Handle<JSObject> finalization_registry_prototype( | ||
| 4376 | - JSObject::cast(finalization_registry_fun->instance_prototype()), | ||
| 4377 | - isolate()); | ||
| 4378 | - | ||
| 4379 | - InstallToStringTag(isolate(), finalization_registry_prototype, | ||
| 4380 | - factory->FinalizationRegistry_string()); | ||
| 4381 | - | ||
| 4382 | - SimpleInstallFunction(isolate(), finalization_registry_prototype, | ||
| 4383 | - "register", Builtins::kFinalizationRegistryRegister, | ||
| 4384 | - 2, false); | ||
| 4385 | - | ||
| 4386 | - SimpleInstallFunction(isolate(), finalization_registry_prototype, | ||
| 4387 | - "unregister", | ||
| 4388 | - Builtins::kFinalizationRegistryUnregister, 1, false); | ||
| 4389 | - | ||
| 4390 | - // The cleanupSome function is created but not exposed, as it is used | ||
| 4391 | - // internally by InvokeFinalizationRegistryCleanupFromTask. | ||
| 4392 | - // | ||
| 4393 | - // It is exposed by FLAG_harmony_weak_refs_with_cleanup_some. | ||
| 4394 | - Handle<JSFunction> cleanup_some_fun = SimpleCreateFunction( | ||
| 4395 | - isolate(), factory->InternalizeUtf8String("cleanupSome"), | ||
| 4396 | - Builtins::kFinalizationRegistryPrototypeCleanupSome, 0, false); | ||
| 4397 | - native_context()->set_finalization_registry_cleanup_some(*cleanup_some_fun); | ||
| 4398 | - } | ||
| 4399 | - { | ||
| 4400 | - // Create %WeakRef% | ||
| 4401 | - Handle<JSFunction> weak_ref_fun = InstallFunction( | ||
| 4402 | - isolate(), global, factory->WeakRef_string(), JS_WEAK_REF_TYPE, | ||
| 4403 | - JSWeakRef::kHeaderSize, 0, factory->the_hole_value(), | ||
| 4404 | - Builtins::kWeakRefConstructor); | ||
| 4405 | - InstallWithIntrinsicDefaultProto(isolate(), weak_ref_fun, | ||
| 4406 | - Context::JS_WEAK_REF_FUNCTION_INDEX); | ||
| 4407 | - | ||
| 4408 | - weak_ref_fun->shared().DontAdaptArguments(); | ||
| 4409 | - weak_ref_fun->shared().set_length(1); | ||
| 4410 | - | ||
| 4411 | - Handle<JSObject> weak_ref_prototype( | ||
| 4412 | - JSObject::cast(weak_ref_fun->instance_prototype()), isolate()); | ||
| 4413 | - | ||
| 4414 | - InstallToStringTag(isolate(), weak_ref_prototype, | ||
| 4415 | - factory->WeakRef_string()); | ||
| 4416 | - | ||
| 4417 | - SimpleInstallFunction(isolate(), weak_ref_prototype, "deref", | ||
| 4418 | - Builtins::kWeakRefDeref, 0, true); | ||
| 4419 | - } | ||
| 4420 | - } | ||
| 4421 | - | ||
| 4422 | 4411 | void Genesis::InitializeGlobal_harmony_weak_refs_with_cleanup_some() { | |
| 4423 | 4412 | if (!FLAG_harmony_weak_refs_with_cleanup_some) return; | |
| 4424 | - DCHECK(FLAG_harmony_weak_refs); | ||
| 4425 | 4413 | ||
| 4426 | 4414 | Handle<JSFunction> finalization_registry_fun = | |
| 4427 | 4415 | isolate()->js_finalization_registry_fun(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -209,7 +209,6 @@ Handle<JSWeakRef> MakeWeakRefAndKeepDuringJob(Isolate* isolate) { | |||
| 209 | 209 | } // namespace | |
| 210 | 210 | ||
| 211 | 211 | TEST(TestRegister) { | |
| 212 | - FLAG_harmony_weak_refs = true; | ||
| 213 | 212 | CcTest::InitializeVM(); | |
| 214 | 213 | LocalContext context; | |
| 215 | 214 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -247,7 +246,6 @@ TEST(TestRegister) { | |||
| 247 | 246 | } | |
| 248 | 247 | ||
| 249 | 248 | TEST(TestRegisterWithKey) { | |
| 250 | - FLAG_harmony_weak_refs = true; | ||
| 251 | 249 | CcTest::InitializeVM(); | |
| 252 | 250 | LocalContext context; | |
| 253 | 251 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -300,7 +298,6 @@ TEST(TestRegisterWithKey) { | |||
| 300 | 298 | } | |
| 301 | 299 | ||
| 302 | 300 | TEST(TestWeakCellNullify1) { | |
| 303 | - FLAG_harmony_weak_refs = true; | ||
| 304 | 301 | CcTest::InitializeVM(); | |
| 305 | 302 | LocalContext context; | |
| 306 | 303 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -335,7 +332,6 @@ TEST(TestWeakCellNullify1) { | |||
| 335 | 332 | } | |
| 336 | 333 | ||
| 337 | 334 | TEST(TestWeakCellNullify2) { | |
| 338 | - FLAG_harmony_weak_refs = true; | ||
| 339 | 335 | CcTest::InitializeVM(); | |
| 340 | 336 | LocalContext context; | |
| 341 | 337 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -369,7 +365,6 @@ TEST(TestWeakCellNullify2) { | |||
| 369 | 365 | } | |
| 370 | 366 | ||
| 371 | 367 | TEST(TestJSFinalizationRegistryPopClearedCellHoldings1) { | |
| 372 | - FLAG_harmony_weak_refs = true; | ||
| 373 | 368 | CcTest::InitializeVM(); | |
| 374 | 369 | LocalContext context; | |
| 375 | 370 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -425,7 +420,6 @@ TEST(TestJSFinalizationRegistryPopClearedCellHoldings1) { | |||
| 425 | 420 | TEST(TestJSFinalizationRegistryPopClearedCellHoldings2) { | |
| 426 | 421 | // Test that when all WeakCells for a key are popped, the key is removed from | |
| 427 | 422 | // the key map. | |
| 428 | - FLAG_harmony_weak_refs = true; | ||
| 429 | 423 | CcTest::InitializeVM(); | |
| 430 | 424 | LocalContext context; | |
| 431 | 425 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -476,7 +470,6 @@ TEST(TestJSFinalizationRegistryPopClearedCellHoldings2) { | |||
| 476 | 470 | } | |
| 477 | 471 | ||
| 478 | 472 | TEST(TestUnregisterActiveCells) { | |
| 479 | - FLAG_harmony_weak_refs = true; | ||
| 480 | 473 | CcTest::InitializeVM(); | |
| 481 | 474 | LocalContext context; | |
| 482 | 475 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -529,7 +522,6 @@ TEST(TestUnregisterActiveCells) { | |||
| 529 | 522 | } | |
| 530 | 523 | ||
| 531 | 524 | TEST(TestUnregisterActiveAndClearedCells) { | |
| 532 | - FLAG_harmony_weak_refs = true; | ||
| 533 | 525 | CcTest::InitializeVM(); | |
| 534 | 526 | LocalContext context; | |
| 535 | 527 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -585,7 +577,6 @@ TEST(TestUnregisterActiveAndClearedCells) { | |||
| 585 | 577 | } | |
| 586 | 578 | ||
| 587 | 579 | TEST(TestWeakCellUnregisterTwice) { | |
| 588 | - FLAG_harmony_weak_refs = true; | ||
| 589 | 580 | CcTest::InitializeVM(); | |
| 590 | 581 | LocalContext context; | |
| 591 | 582 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -633,7 +624,6 @@ TEST(TestWeakCellUnregisterTwice) { | |||
| 633 | 624 | } | |
| 634 | 625 | ||
| 635 | 626 | TEST(TestWeakCellUnregisterPopped) { | |
| 636 | - FLAG_harmony_weak_refs = true; | ||
| 637 | 627 | CcTest::InitializeVM(); | |
| 638 | 628 | LocalContext context; | |
| 639 | 629 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -674,7 +664,6 @@ TEST(TestWeakCellUnregisterPopped) { | |||
| 674 | 664 | } | |
| 675 | 665 | ||
| 676 | 666 | TEST(TestWeakCellUnregisterNonexistentKey) { | |
| 677 | - FLAG_harmony_weak_refs = true; | ||
| 678 | 667 | CcTest::InitializeVM(); | |
| 679 | 668 | LocalContext context; | |
| 680 | 669 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -687,7 +676,6 @@ TEST(TestWeakCellUnregisterNonexistentKey) { | |||
| 687 | 676 | } | |
| 688 | 677 | ||
| 689 | 678 | TEST(TestJSWeakRef) { | |
| 690 | - FLAG_harmony_weak_refs = true; | ||
| 691 | 679 | CcTest::InitializeVM(); | |
| 692 | 680 | LocalContext context; | |
| 693 | 681 | ||
@@ -716,7 +704,6 @@ TEST(TestJSWeakRef) { | |||
| 716 | 704 | } | |
| 717 | 705 | ||
| 718 | 706 | TEST(TestJSWeakRefIncrementalMarking) { | |
| 719 | - FLAG_harmony_weak_refs = true; | ||
| 720 | 707 | if (!FLAG_incremental_marking) { | |
| 721 | 708 | return; | |
| 722 | 709 | } | |
@@ -752,7 +739,6 @@ TEST(TestJSWeakRefIncrementalMarking) { | |||
| 752 | 739 | } | |
| 753 | 740 | ||
| 754 | 741 | TEST(TestJSWeakRefKeepDuringJob) { | |
| 755 | - FLAG_harmony_weak_refs = true; | ||
| 756 | 742 | CcTest::InitializeVM(); | |
| 757 | 743 | LocalContext context; | |
| 758 | 744 | ||
@@ -790,7 +776,6 @@ TEST(TestJSWeakRefKeepDuringJob) { | |||
| 790 | 776 | } | |
| 791 | 777 | ||
| 792 | 778 | TEST(TestJSWeakRefKeepDuringJobIncrementalMarking) { | |
| 793 | - FLAG_harmony_weak_refs = true; | ||
| 794 | 779 | if (!FLAG_incremental_marking) { | |
| 795 | 780 | return; | |
| 796 | 781 | } | |
@@ -819,7 +804,6 @@ TEST(TestJSWeakRefKeepDuringJobIncrementalMarking) { | |||
| 819 | 804 | } | |
| 820 | 805 | ||
| 821 | 806 | TEST(TestRemoveUnregisterToken) { | |
| 822 | - FLAG_harmony_weak_refs = true; | ||
| 823 | 807 | CcTest::InitializeVM(); | |
| 824 | 808 | LocalContext context; | |
| 825 | 809 | Isolate* isolate = CcTest::i_isolate(); | |
@@ -883,7 +867,6 @@ TEST(TestRemoveUnregisterToken) { | |||
| 883 | 867 | } | |
| 884 | 868 | ||
| 885 | 869 | TEST(JSWeakRefScavengedInWorklist) { | |
| 886 | - FLAG_harmony_weak_refs = true; | ||
| 887 | 870 | if (!FLAG_incremental_marking || FLAG_single_generation) { | |
| 888 | 871 | return; | |
| 889 | 872 | } | |
@@ -928,7 +911,6 @@ TEST(JSWeakRefScavengedInWorklist) { | |||
| 928 | 911 | } | |
| 929 | 912 | ||
| 930 | 913 | TEST(JSWeakRefTenuredInWorklist) { | |
| 931 | - FLAG_harmony_weak_refs = true; | ||
| 932 | 914 | if (!FLAG_incremental_marking || FLAG_single_generation) { | |
| 933 | 915 | return; | |
| 934 | 916 | } | |
@@ -976,7 +958,6 @@ TEST(JSWeakRefTenuredInWorklist) { | |||
| 976 | 958 | } | |
| 977 | 959 | ||
| 978 | 960 | TEST(UnregisterTokenHeapVerifier) { | |
| 979 | - FLAG_harmony_weak_refs = true; | ||
| 980 | 961 | if (!FLAG_incremental_marking) return; | |
| 981 | 962 | ManualGCScope manual_gc_scope; | |
| 982 | 963 | #ifdef VERIFY_HEAP | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,4 @@ | |||
| 2 | 2 | // Use of this source code is governed by a BSD-style license that can be | |
| 3 | 3 | // found in the LICENSE file. | |
| 4 | 4 | ||
| 5 | - // Flags: --harmony-weak-refs | ||
| 6 | - | ||
| 7 | 5 | let fg = new FinalizationRegistry(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | - *%(basename)s:7: TypeError: FinalizationRegistry: cleanup must be callable | ||
| 1 | + *%(basename)s:*: TypeError: FinalizationRegistry: cleanup must be callable | ||
| 2 | 2 | let fg = new FinalizationRegistry(); | |
| 3 | 3 | ^ | |
| 4 | 4 | TypeError: FinalizationRegistry: cleanup must be callable | |
| 5 | 5 | at new FinalizationRegistry (<anonymous>) | |
| 6 | - at *%(basename)s:7:10 | ||
| 6 | + at *%(basename)s:*:10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,4 @@ | |||
| 2 | 2 | // Use of this source code is governed by a BSD-style license that can be | |
| 3 | 3 | // found in the LICENSE file. | |
| 4 | 4 | ||
| 5 | - // Flags: --harmony-weak-refs | ||
| 6 | - | ||
| 7 | 5 | let fg = new FinalizationRegistry({}); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments