Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (250188 => 250189)
--- trunk/Source/_javascript_Core/ChangeLog 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-09-22 04:01:23 UTC (rev 250189)
@@ -1,3 +1,20 @@
+2019-09-21 Mark Lam <[email protected]>
+
+ Move JSLexicalEnvironment, DirectArguments, and ScopedArguments cells out of the Gigacage.
+ https://bugs.webkit.org/show_bug.cgi?id=202082
+
+ Reviewed by Tadeu Zagallo.
+
+ They are not being caged anyway.
+
+ * runtime/DirectArguments.h:
+ * runtime/JSLexicalEnvironment.h:
+ (JSC::JSLexicalEnvironment::subspaceFor):
+ * runtime/ScopedArguments.h:
+ * runtime/VM.cpp:
+ (JSC::VM::VM):
+ * runtime/VM.h:
+
2019-09-21 Tadeu Zagallo <[email protected]>
AccessCase should strongly visit its dependencies while on stack
Modified: trunk/Source/_javascript_Core/runtime/DirectArguments.h (250188 => 250189)
--- trunk/Source/_javascript_Core/runtime/DirectArguments.h 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/runtime/DirectArguments.h 2019-09-22 04:01:23 UTC (rev 250189)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015-2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2019 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -50,7 +50,7 @@
static CompleteSubspace* subspaceFor(VM& vm)
{
static_assert(!CellType::needsDestruction, "");
- return &vm.jsValueGigacageCellSpace;
+ return &vm.variableSizedCellSpace;
}
// Creates an arguments object but leaves it uninitialized. This is dangerous if we GC right
Modified: trunk/Source/_javascript_Core/runtime/JSLexicalEnvironment.h (250188 => 250189)
--- trunk/Source/_javascript_Core/runtime/JSLexicalEnvironment.h 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/runtime/JSLexicalEnvironment.h 2019-09-22 04:01:23 UTC (rev 250189)
@@ -44,7 +44,7 @@
static CompleteSubspace* subspaceFor(VM& vm)
{
static_assert(!CellType::needsDestruction, "");
- return &vm.jsValueGigacageCellSpace;
+ return &vm.variableSizedCellSpace;
}
using Base = JSSymbolTableObject;
Modified: trunk/Source/_javascript_Core/runtime/ScopedArguments.h (250188 => 250189)
--- trunk/Source/_javascript_Core/runtime/ScopedArguments.h 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/runtime/ScopedArguments.h 2019-09-22 04:01:23 UTC (rev 250189)
@@ -47,7 +47,7 @@
static CompleteSubspace* subspaceFor(VM& vm)
{
static_assert(!CellType::needsDestruction, "");
- return &vm.jsValueGigacageCellSpace;
+ return &vm.variableSizedCellSpace;
}
// Creates an arguments object but leaves it uninitialized. This is dangerous if we GC right
Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (250188 => 250189)
--- trunk/Source/_javascript_Core/runtime/VM.cpp 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp 2019-09-22 04:01:23 UTC (rev 250189)
@@ -269,7 +269,7 @@
, jsValueGigacageAuxiliarySpace("JSValue Gigacage Auxiliary", heap, auxiliaryHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x241e946
, immutableButterflyJSValueGigacageAuxiliarySpace("ImmutableButterfly Gigacage JSCellWithInteriorPointers", heap, immutableButterflyHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x7a945300
, cellSpace("JSCell", heap, cellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xadfb5a79
- , jsValueGigacageCellSpace("JSValue Gigacage JSCell", heap, cellHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x2f5b102b
+ , variableSizedCellSpace("Variable Sized JSCell", heap, cellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xbcd769cc
, destructibleCellSpace("Destructible JSCell", heap, destructibleCellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xbfff3d73
, stringSpace("JSString", heap, stringHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x90cf758f
, destructibleObjectSpace("JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x4f5ed7a9
Modified: trunk/Source/_javascript_Core/runtime/VM.h (250188 => 250189)
--- trunk/Source/_javascript_Core/runtime/VM.h 2019-09-22 02:40:44 UTC (rev 250188)
+++ trunk/Source/_javascript_Core/runtime/VM.h 2019-09-22 04:01:23 UTC (rev 250189)
@@ -366,7 +366,7 @@
// Whenever possible, use subspaceFor<CellType>(vm) to get one of these subspaces.
CompleteSubspace cellSpace;
- CompleteSubspace jsValueGigacageCellSpace; // FIXME: This space is problematic because we have things in here like DirectArguments and ScopedArguments; those should be split into JSValueOOB cells and JSValueStrict auxiliaries. https://bugs.webkit.org/show_bug.cgi?id=182858
+ CompleteSubspace variableSizedCellSpace; // FIXME: This space is problematic because we have things in here like DirectArguments and ScopedArguments; those should be split into JSValueOOB cells and JSValueStrict auxiliaries. https://bugs.webkit.org/show_bug.cgi?id=182858
CompleteSubspace destructibleCellSpace;
CompleteSubspace stringSpace;
CompleteSubspace destructibleObjectSpace;