Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (253318 => 253319)
--- trunk/Source/_javascript_Core/ChangeLog 2019-12-10 03:57:47 UTC (rev 253318)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-12-10 04:07:17 UTC (rev 253319)
@@ -1,5 +1,21 @@
2019-12-09 Yusuke Suzuki <[email protected]>
+ [JSC] Put CustomGetterSetter and DOMAttributeGetterSetter in IsoSubspace
+ https://bugs.webkit.org/show_bug.cgi?id=205044
+
+ Reviewed by Sam Weinig.
+
+ Put CustomGetterSetter and DOMAttributeGetterSetter in IsoSubspace.
+
+ * runtime/CustomGetterSetter.h:
+ (JSC::CustomGetterSetter::subspaceFor):
+ * runtime/DOMAttributeGetterSetter.h:
+ * runtime/VM.cpp:
+ (JSC::VM::VM):
+ * runtime/VM.h:
+
+2019-12-09 Yusuke Suzuki <[email protected]>
+
[JSC] Remove NativeStdFunctionCell
https://bugs.webkit.org/show_bug.cgi?id=205045
Modified: trunk/Source/_javascript_Core/runtime/CustomGetterSetter.h (253318 => 253319)
--- trunk/Source/_javascript_Core/runtime/CustomGetterSetter.h 2019-12-10 03:57:47 UTC (rev 253318)
+++ trunk/Source/_javascript_Core/runtime/CustomGetterSetter.h 2019-12-10 04:07:17 UTC (rev 253319)
@@ -34,12 +34,18 @@
class CustomGetterSetter : public JSCell {
public:
- typedef JSCell Base;
+ using Base = JSCell;
static constexpr unsigned StructureFlags = Base::StructureFlags | StructureIsImmortal;
- typedef PropertySlot::GetValueFunc CustomGetter;
- typedef PutPropertySlot::PutValueFunc CustomSetter;
+ using CustomGetter = PropertySlot::GetValueFunc;
+ using CustomSetter = PutPropertySlot::PutValueFunc;
+ template<typename CellType, SubspaceAccess>
+ static IsoSubspace* subspaceFor(VM& vm)
+ {
+ return &vm.customGetterSetterSpace;
+ }
+
static CustomGetterSetter* create(VM& vm, CustomGetter customGetter, CustomSetter customSetter)
{
CustomGetterSetter* customGetterSetter = new (NotNull, allocateCell<CustomGetterSetter>(vm.heap)) CustomGetterSetter(vm, vm.customGetterSetterStructure.get(), customGetter, customSetter);
Modified: trunk/Source/_javascript_Core/runtime/DOMAttributeGetterSetter.h (253318 => 253319)
--- trunk/Source/_javascript_Core/runtime/DOMAttributeGetterSetter.h 2019-12-10 03:57:47 UTC (rev 253318)
+++ trunk/Source/_javascript_Core/runtime/DOMAttributeGetterSetter.h 2019-12-10 04:07:17 UTC (rev 253319)
@@ -39,6 +39,12 @@
public:
using Base = CustomGetterSetter;
+ template<typename CellType, SubspaceAccess>
+ static IsoSubspace* subspaceFor(VM& vm)
+ {
+ return &vm.domAttributeGetterSetterSpace;
+ }
+
static DOMAttributeGetterSetter* create(VM& vm, CustomGetter customGetter, CustomSetter customSetter, DOMAttributeAnnotation domAttribute)
{
DOMAttributeGetterSetter* customGetterSetter = new (NotNull, allocateCell<DOMAttributeGetterSetter>(vm.heap)) DOMAttributeGetterSetter(vm, customGetter, customSetter, domAttribute);
Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (253318 => 253319)
--- trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 03:57:47 UTC (rev 253318)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 04:07:17 UTC (rev 253319)
@@ -42,6 +42,7 @@
#include "CommonSlowPaths.h"
#include "CustomGetterSetter.h"
#include "DFGWorklist.h"
+#include "DOMAttributeGetterSetter.h"
#include "DateInstance.h"
#include "DirectEvalExecutable.h"
#include "Disassembler.h"
@@ -333,7 +334,9 @@
, bigIntSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), JSBigInt)
, calleeSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSCallee)
, clonedArgumentsSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), ClonedArguments)
+ , customGetterSetterSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), CustomGetterSetter)
, dateInstanceSpace ISO_SUBSPACE_INIT(heap, dateInstanceHeapCellType.get(), DateInstance)
+ , domAttributeGetterSetterSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), DOMAttributeGetterSetter)
, executableToCodeBlockEdgeSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), ExecutableToCodeBlockEdge) // Hash:0x7b730b20
, functionSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSFunction) // Hash:0x800fca72
, getterSetterSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), GetterSetter)
Modified: trunk/Source/_javascript_Core/runtime/VM.h (253318 => 253319)
--- trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 03:57:47 UTC (rev 253318)
+++ trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 04:07:17 UTC (rev 253319)
@@ -424,7 +424,9 @@
IsoSubspace bigIntSpace;
IsoSubspace calleeSpace;
IsoSubspace clonedArgumentsSpace;
+ IsoSubspace customGetterSetterSpace;
IsoSubspace dateInstanceSpace;
+ IsoSubspace domAttributeGetterSetterSpace;
IsoSubspace executableToCodeBlockEdgeSpace;
IsoSubspace functionSpace;
IsoSubspace getterSetterSpace;