Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (253343 => 253344)
--- trunk/Source/_javascript_Core/ChangeLog 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-12-10 21:56:03 UTC (rev 253344)
@@ -1,3 +1,17 @@
+2019-12-10 Commit Queue <[email protected]>
+
+ Unreviewed, rolling out r253321.
+ https://bugs.webkit.org/show_bug.cgi?id=205084
+
+ 1% regression in RAMification (Requested by yusukesuzuki on
+ #webkit).
+
+ Reverted changeset:
+
+ "[JSC] Put JSArray in IsoSubspace"
+ https://bugs.webkit.org/show_bug.cgi?id=205049
+ https://trac.webkit.org/changeset/253321
+
2019-12-10 Tadeu Zagallo <[email protected]>
Reduce JSC's binary size
Modified: trunk/Source/_javascript_Core/runtime/ArrayPrototype.h (253343 => 253344)
--- trunk/Source/_javascript_Core/runtime/ArrayPrototype.h 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/runtime/ArrayPrototype.h 2019-12-10 21:56:03 UTC (rev 253344)
@@ -29,7 +29,7 @@
ArrayPrototype(VM&, Structure*);
public:
- using Base = JSArray;
+ typedef JSArray Base;
enum class SpeciesWatchpointStatus {
Uninitialized,
@@ -49,7 +49,6 @@
protected:
void finishCreation(VM&, JSGlobalObject*);
};
-STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(ArrayPrototype, JSArray);
EncodedJSValue JSC_HOST_CALL arrayProtoFuncSpeciesCreate(JSGlobalObject*, CallFrame*);
EncodedJSValue JSC_HOST_CALL arrayProtoFuncToString(JSGlobalObject*, CallFrame*);
Modified: trunk/Source/_javascript_Core/runtime/JSArray.h (253343 => 253344)
--- trunk/Source/_javascript_Core/runtime/JSArray.h 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/runtime/JSArray.h 2019-12-10 21:56:03 UTC (rev 253344)
@@ -39,7 +39,7 @@
friend class JIT;
public:
- using Base = JSNonFinalObject;
+ typedef JSNonFinalObject Base;
static constexpr unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | OverridesGetPropertyNames;
static size_t allocationSize(Checked<size_t> inlineCapacity)
@@ -47,12 +47,6 @@
ASSERT_UNUSED(inlineCapacity, !inlineCapacity);
return sizeof(JSArray);
}
-
- template<typename CellType, SubspaceAccess mode>
- static IsoSubspace* subspaceFor(VM& vm)
- {
- return &vm.arraySpace;
- }
protected:
explicit JSArray(VM& vm, Structure* structure, Butterfly* butterfly)
Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (253343 => 253344)
--- trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 21:56:03 UTC (rev 253344)
@@ -331,7 +331,6 @@
, variableSizedCellSpace("Variable Sized JSCell", heap, cellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xbcd769cc
, destructibleCellSpace("Destructible JSCell", heap, destructibleCellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xbfff3d73
, destructibleObjectSpace("JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x4f5ed7a9
- , arraySpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSArray)
, bigIntSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), JSBigInt)
, calleeSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSCallee)
, clonedArgumentsSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), ClonedArguments)
Modified: trunk/Source/_javascript_Core/runtime/VM.h (253343 => 253344)
--- trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 21:56:03 UTC (rev 253344)
@@ -421,7 +421,6 @@
CompleteSubspace destructibleCellSpace;
CompleteSubspace destructibleObjectSpace;
- IsoSubspace arraySpace;
IsoSubspace bigIntSpace;
IsoSubspace calleeSpace;
IsoSubspace clonedArgumentsSpace;
Modified: trunk/Source/_javascript_Core/tools/JSDollarVM.cpp (253343 => 253344)
--- trunk/Source/_javascript_Core/tools/JSDollarVM.cpp 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/_javascript_Core/tools/JSDollarVM.cpp 2019-12-10 21:56:03 UTC (rev 253344)
@@ -492,17 +492,11 @@
}
};
-class RuntimeArray final : public JSArray {
+class RuntimeArray : public JSArray {
public:
- using Base = JSArray;
+ typedef JSArray Base;
static constexpr unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | OverridesGetPropertyNames;
- template<typename CellType, SubspaceAccess>
- static CompleteSubspace* subspaceFor(VM& vm)
- {
- return &vm.cellSpace;
- }
-
static RuntimeArray* create(JSGlobalObject* globalObject, CallFrame* callFrame)
{
DollarVMAssertScope assertScope;
Modified: trunk/Source/WebCore/ChangeLog (253343 => 253344)
--- trunk/Source/WebCore/ChangeLog 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/WebCore/ChangeLog 2019-12-10 21:56:03 UTC (rev 253344)
@@ -1,3 +1,17 @@
+2019-12-10 Commit Queue <[email protected]>
+
+ Unreviewed, rolling out r253321.
+ https://bugs.webkit.org/show_bug.cgi?id=205084
+
+ 1% regression in RAMification (Requested by yusukesuzuki on
+ #webkit).
+
+ Reverted changeset:
+
+ "[JSC] Put JSArray in IsoSubspace"
+ https://bugs.webkit.org/show_bug.cgi?id=205049
+ https://trac.webkit.org/changeset/253321
+
2019-12-10 Zalan Bujtas <[email protected]>
[LFC][IFC] Call RenderText:text() to get the rendered content instead of ::originalText()
Modified: trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp (253343 => 253344)
--- trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp 2019-12-10 21:56:03 UTC (rev 253344)
@@ -28,8 +28,6 @@
#include "DOMGCOutputConstraint.h"
#include "JSDOMBinding.h"
-#include "runtime_array.h"
-#include "runtime_method.h"
#include <_javascript_Core/FastMallocAlignedMemoryAllocator.h>
#include <_javascript_Core/HeapInlines.h>
#include <_javascript_Core/JSDestructibleObjectHeapCellType.h>
@@ -36,6 +34,7 @@
#include <_javascript_Core/MarkingConstraint.h>
#include <_javascript_Core/SubspaceInlines.h>
#include <_javascript_Core/VM.h>
+#include "runtime_method.h"
#include <wtf/MainThread.h>
namespace WebCore {
@@ -44,7 +43,6 @@
JSVMClientData::JSVMClientData(VM& vm)
: m_builtinFunctions(vm)
, m_builtinNames(vm)
- , m_runtimeArraySpace ISO_SUBSPACE_INIT(vm.heap, vm.cellHeapCellType.get(), RuntimeArray)
, m_runtimeMethodSpace ISO_SUBSPACE_INIT(vm.heap, vm.cellHeapCellType.get(), RuntimeMethod) // Hash:0xf70c4a85
, m_outputConstraintSpace("WebCore Wrapper w/ Output Constraint", vm.heap, vm.destructibleObjectHeapCellType.get(), vm.fastMallocAllocator.get()) // Hash:0x7724c2e4
, m_globalObjectOutputConstraintSpace("WebCore Global Object w/ Output Constraint", vm.heap, vm.cellHeapCellType.get(), vm.fastMallocAllocator.get()) // Hash:0x522d6ec9
Modified: trunk/Source/WebCore/bindings/js/WebCoreJSClientData.h (253343 => 253344)
--- trunk/Source/WebCore/bindings/js/WebCoreJSClientData.h 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/WebCore/bindings/js/WebCoreJSClientData.h 2019-12-10 21:56:03 UTC (rev 253344)
@@ -59,7 +59,6 @@
WebCoreBuiltinNames& builtinNames() { return m_builtinNames; }
JSBuiltinFunctions& builtinFunctions() { return m_builtinFunctions; }
- JSC::IsoSubspace& runtimeArraySpace() { return m_runtimeArraySpace; }
JSC::IsoSubspace& runtimeMethodSpace() { return m_runtimeMethodSpace; }
JSC::CompleteSubspace& outputConstraintSpace() { return m_outputConstraintSpace; }
@@ -79,7 +78,6 @@
JSBuiltinFunctions m_builtinFunctions;
WebCoreBuiltinNames m_builtinNames;
- JSC::IsoSubspace m_runtimeArraySpace;
JSC::IsoSubspace m_runtimeMethodSpace;
JSC::CompleteSubspace m_outputConstraintSpace;
Modified: trunk/Source/WebCore/bridge/runtime_array.cpp (253343 => 253344)
--- trunk/Source/WebCore/bridge/runtime_array.cpp 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/WebCore/bridge/runtime_array.cpp 2019-12-10 21:56:03 UTC (rev 253344)
@@ -27,7 +27,6 @@
#include "runtime_array.h"
#include "JSDOMBinding.h"
-#include "WebCoreJSClientData.h"
#include <_javascript_Core/ArrayPrototype.h>
#include <_javascript_Core/Error.h>
#include <_javascript_Core/JSGlobalObjectInlines.h>
@@ -159,9 +158,4 @@
return false;
}
-IsoSubspace* RuntimeArray::subspaceForImpl(VM& vm)
-{
- return &static_cast<JSVMClientData*>(vm.clientData)->runtimeArraySpace();
}
-
-}
Modified: trunk/Source/WebCore/bridge/runtime_array.h (253343 => 253344)
--- trunk/Source/WebCore/bridge/runtime_array.h 2019-12-10 21:27:22 UTC (rev 253343)
+++ trunk/Source/WebCore/bridge/runtime_array.h 2019-12-10 21:56:03 UTC (rev 253344)
@@ -32,17 +32,11 @@
namespace JSC {
-class RuntimeArray final : public JSArray {
+class RuntimeArray : public JSArray {
public:
- using Base = JSArray;
+ typedef JSArray Base;
static constexpr unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | OverridesGetPropertyNames;
- template<typename CellType, JSC::SubspaceAccess>
- static IsoSubspace* subspaceFor(VM& vm)
- {
- return subspaceForImpl(vm);
- }
-
static RuntimeArray* create(JSGlobalObject* lexicalGlobalObject, Bindings::Array* array)
{
VM& vm = lexicalGlobalObject->vm();
@@ -92,8 +86,6 @@
RuntimeArray(JSGlobalObject*, Structure*);
static EncodedJSValue lengthGetter(JSGlobalObject*, EncodedJSValue, PropertyName);
- static IsoSubspace* subspaceForImpl(VM&);
-
BindingsArray* m_array;
};