Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (253317 => 253318)
--- trunk/Source/_javascript_Core/ChangeLog 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-12-10 03:57:47 UTC (rev 253318)
@@ -1,3 +1,31 @@
+2019-12-09 Yusuke Suzuki <[email protected]>
+
+ [JSC] Remove NativeStdFunctionCell
+ https://bugs.webkit.org/show_bug.cgi?id=205045
+
+ Reviewed by Sam Weinig.
+
+ NativeStdFunctionCell is introduced because we were not able to make derived classes of JSFunction destructible.
+ But now we can do that by using IsoSubspace. And we already have IsoSubspace for JSNativeStdFunction. So we do
+ not need to have NativeStdFunctionCell cell. This patch removes it. And making JSNativeStdFunction destructible.
+
+ * _javascript_Core.xcodeproj/project.pbxproj:
+ * Sources.txt:
+ * inspector/InjectedScriptBase.cpp:
+ (Inspector::InjectedScriptBase::makeAsyncCall):
+ * runtime/JSNativeStdFunction.cpp:
+ (JSC::JSNativeStdFunction::JSNativeStdFunction):
+ (JSC::JSNativeStdFunction::visitChildren):
+ (JSC::JSNativeStdFunction::finishCreation):
+ (JSC::runStdFunction):
+ (JSC::JSNativeStdFunction::create):
+ * runtime/JSNativeStdFunction.h:
+ * runtime/NativeStdFunctionCell.cpp: Removed.
+ * runtime/NativeStdFunctionCell.h: Removed.
+ * runtime/VM.cpp:
+ (JSC::VM::VM):
+ * runtime/VM.h:
+
2019-12-09 Tadeu Zagallo <[email protected]>
[WebAssembly] Remove WasmValidate
Modified: trunk/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj (253317 => 253318)
--- trunk/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj 2019-12-10 03:57:47 UTC (rev 253318)
@@ -1795,7 +1795,6 @@
E33A94972255323300D42B06 /* FuzzerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = E33A94922255322900D42B06 /* FuzzerAgent.h */; settings = {ATTRIBUTES = (Private, ); }; };
E33B3E261B7ABD750048DB2E /* InspectorInstrumentationObject.lut.h in Headers */ = {isa = PBXBuildFile; fileRef = E33B3E251B7ABD750048DB2E /* InspectorInstrumentationObject.lut.h */; };
E33E8D1D1B9013C300346B52 /* JSNativeStdFunction.h in Headers */ = {isa = PBXBuildFile; fileRef = E33E8D1B1B9013C300346B52 /* JSNativeStdFunction.h */; settings = {ATTRIBUTES = (Private, ); }; };
- E33E8D211B9013DE00346B52 /* NativeStdFunctionCell.h in Headers */ = {isa = PBXBuildFile; fileRef = E33E8D1F1B9013DE00346B52 /* NativeStdFunctionCell.h */; settings = {ATTRIBUTES = (Private, ); }; };
E33F50751B8421C000413856 /* JSInternalPromisePrototype.h in Headers */ = {isa = PBXBuildFile; fileRef = E33F50731B8421C000413856 /* JSInternalPromisePrototype.h */; settings = {ATTRIBUTES = (Private, ); }; };
E33F50791B84225700413856 /* JSInternalPromiseConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = E33F50771B84225700413856 /* JSInternalPromiseConstructor.h */; settings = {ATTRIBUTES = (Private, ); }; };
E33F50811B8429A400413856 /* JSInternalPromise.h in Headers */ = {isa = PBXBuildFile; fileRef = E33F507F1B8429A400413856 /* JSInternalPromise.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -4911,8 +4910,6 @@
E33B3E251B7ABD750048DB2E /* InspectorInstrumentationObject.lut.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorInstrumentationObject.lut.h; sourceTree = "<group>"; };
E33E8D1A1B9013C300346B52 /* JSNativeStdFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSNativeStdFunction.cpp; sourceTree = "<group>"; };
E33E8D1B1B9013C300346B52 /* JSNativeStdFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSNativeStdFunction.h; sourceTree = "<group>"; };
- E33E8D1E1B9013DE00346B52 /* NativeStdFunctionCell.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NativeStdFunctionCell.cpp; sourceTree = "<group>"; };
- E33E8D1F1B9013DE00346B52 /* NativeStdFunctionCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeStdFunctionCell.h; sourceTree = "<group>"; };
E33F50721B8421C000413856 /* JSInternalPromisePrototype.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSInternalPromisePrototype.cpp; sourceTree = "<group>"; };
E33F50731B8421C000413856 /* JSInternalPromisePrototype.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSInternalPromisePrototype.h; sourceTree = "<group>"; };
E33F50761B84225700413856 /* JSInternalPromiseConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSInternalPromiseConstructor.cpp; sourceTree = "<group>"; };
@@ -7417,8 +7414,6 @@
147341DE1DC2CE9600AA29BA /* NativeExecutable.cpp */,
147341CF1DC02DB400AA29BA /* NativeExecutable.h */,
FE1409062056F3FE00CFE318 /* NativeFunction.h */,
- E33E8D1E1B9013DE00346B52 /* NativeStdFunctionCell.cpp */,
- E33E8D1F1B9013DE00346B52 /* NativeStdFunctionCell.h */,
6546F51F1A32A59C006F07D5 /* NullGetterFunction.cpp */,
6546F5201A32A59C006F07D5 /* NullGetterFunction.h */,
65525FC31A6DD3B3007B5495 /* NullSetterFunction.cpp */,
@@ -9947,7 +9942,6 @@
BC02E9130E1839DB000F9297 /* NativeErrorPrototype.h in Headers */,
147341D01DC02DB400AA29BA /* NativeExecutable.h in Headers */,
FE1409072056F3FF00CFE318 /* NativeFunction.h in Headers */,
- E33E8D211B9013DE00346B52 /* NativeStdFunctionCell.h in Headers */,
0FFB922016D033B70055A5DB /* NodeConstructors.h in Headers */,
BC18C43F0E16F5CD00B34460 /* Nodes.h in Headers */,
BC18C4410E16F5CD00B34460 /* NumberConstructor.h in Headers */,
Modified: trunk/Source/_javascript_Core/Sources.txt (253317 => 253318)
--- trunk/Source/_javascript_Core/Sources.txt 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/Sources.txt 2019-12-10 03:57:47 UTC (rev 253318)
@@ -895,7 +895,6 @@
runtime/NativeErrorConstructor.cpp
runtime/NativeErrorPrototype.cpp
runtime/NativeExecutable.cpp
-runtime/NativeStdFunctionCell.cpp
runtime/NullGetterFunction.cpp
runtime/NullSetterFunction.cpp
runtime/NumberConstructor.cpp
Modified: trunk/Source/_javascript_Core/inspector/InjectedScriptBase.cpp (253317 => 253318)
--- trunk/Source/_javascript_Core/inspector/InjectedScriptBase.cpp 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/inspector/InjectedScriptBase.cpp 2019-12-10 03:57:47 UTC (rev 253318)
@@ -37,7 +37,6 @@
#include "JSGlobalObject.h"
#include "JSLock.h"
#include "JSNativeStdFunction.h"
-#include "NativeStdFunctionCell.h"
#include "ScriptFunctionCall.h"
#include <wtf/JSONValues.h>
#include <wtf/text/StringConcatenateNumbers.h>
@@ -132,7 +131,7 @@
if (!result) {
// Since `callback` is moved above, we can't call it if there's an exception while trying to
// execute the `JSNativeStdFunction` inside InjectedScriptSource.js.
- jsFunction->nativeStdFunctionCell()->function()(globalObject, nullptr);
+ jsFunction->function()(globalObject, nullptr);
}
}
Modified: trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.cpp (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.cpp 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.cpp 2019-12-10 03:57:47 UTC (rev 253318)
@@ -30,7 +30,6 @@
#include "JSFunction.h"
#include "JSFunctionInlines.h"
#include "JSObject.h"
-#include "NativeStdFunctionCell.h"
#include "VM.h"
namespace JSC {
@@ -37,8 +36,9 @@
const ClassInfo JSNativeStdFunction::s_info = { "Function", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSNativeStdFunction) };
-JSNativeStdFunction::JSNativeStdFunction(VM& vm, JSGlobalObject* globalObject, Structure* structure)
+JSNativeStdFunction::JSNativeStdFunction(VM& vm, JSGlobalObject* globalObject, Structure* structure, NativeStdFunction&& function)
: Base(vm, globalObject, structure)
+ , m_function(WTFMove(function))
{
}
@@ -47,14 +47,12 @@
JSNativeStdFunction* thisObject = jsCast<JSNativeStdFunction*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
- visitor.append(thisObject->m_functionCell);
}
-void JSNativeStdFunction::finishCreation(VM& vm, NativeExecutable* executable, int length, const String& name, NativeStdFunctionCell* functionCell)
+void JSNativeStdFunction::finishCreation(VM& vm, NativeExecutable* executable, int length, const String& name)
{
Base::finishCreation(vm, executable, length, name);
ASSERT(inherits(vm, info()));
- m_functionCell.set(vm, this, functionCell);
}
static EncodedJSValue JSC_HOST_CALL runStdFunction(JSGlobalObject* globalObject, CallFrame* callFrame)
@@ -61,16 +59,15 @@
{
JSNativeStdFunction* function = jsCast<JSNativeStdFunction*>(callFrame->jsCallee());
ASSERT(function);
- return function->nativeStdFunctionCell()->function()(globalObject, callFrame);
+ return function->function()(globalObject, callFrame);
}
JSNativeStdFunction* JSNativeStdFunction::create(VM& vm, JSGlobalObject* globalObject, int length, const String& name, NativeStdFunction&& nativeStdFunction, Intrinsic intrinsic, NativeFunction nativeConstructor)
{
NativeExecutable* executable = vm.getHostFunction(runStdFunction, intrinsic, nativeConstructor, nullptr, name);
- NativeStdFunctionCell* functionCell = NativeStdFunctionCell::create(vm, WTFMove(nativeStdFunction));
Structure* structure = globalObject->nativeStdFunctionStructure();
- JSNativeStdFunction* function = new (NotNull, allocateCell<JSNativeStdFunction>(vm.heap)) JSNativeStdFunction(vm, globalObject, structure);
- function->finishCreation(vm, executable, length, name, functionCell);
+ JSNativeStdFunction* function = new (NotNull, allocateCell<JSNativeStdFunction>(vm.heap)) JSNativeStdFunction(vm, globalObject, structure, WTFMove(nativeStdFunction));
+ function->finishCreation(vm, executable, length, name);
return function;
}
Modified: trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h 2019-12-10 03:57:47 UTC (rev 253318)
@@ -30,15 +30,19 @@
namespace JSC {
class JSGlobalObject;
-class NativeStdFunctionCell;
using NativeStdFunction = WTF::Function<EncodedJSValue(JSGlobalObject*, CallFrame*)>;
class JSNativeStdFunction final : public JSFunction {
public:
- typedef JSFunction Base;
+ using Base = JSFunction;
static constexpr unsigned StructureFlags = Base::StructureFlags;
+ static constexpr bool needsDestruction = true;
+ static void destroy(JSCell* cell)
+ {
+ static_cast<JSNativeStdFunction*>(cell)->JSNativeStdFunction::~JSNativeStdFunction();
+ }
template<typename CellType, SubspaceAccess mode>
static IsoSubspace* subspaceFor(VM& vm)
@@ -56,17 +60,17 @@
return Structure::create(vm, globalObject, prototype, TypeInfo(JSFunctionType, StructureFlags), info());
}
- NativeStdFunctionCell* nativeStdFunctionCell() { return m_functionCell.get(); }
+ const NativeStdFunction& function() { return m_function; }
protected:
static void visitChildren(JSCell*, SlotVisitor&);
- void finishCreation(VM&, NativeExecutable*, int length, const String& name, NativeStdFunctionCell*);
+ void finishCreation(VM&, NativeExecutable*, int length, const String& name);
private:
- JSNativeStdFunction(VM&, JSGlobalObject*, Structure*);
+ JSNativeStdFunction(VM&, JSGlobalObject*, Structure*, NativeStdFunction&&);
- WriteBarrier<NativeStdFunctionCell> m_functionCell;
+ NativeStdFunction m_function;
};
} // namespace JSC
Deleted: trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.cpp (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.cpp 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.cpp 2019-12-10 03:57:47 UTC (rev 253318)
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "NativeStdFunctionCell.h"
-
-#include "JSCInlines.h"
-
-namespace JSC {
-
-const ClassInfo NativeStdFunctionCell::s_info = { "NativeStdFunctionCell", nullptr, nullptr, nullptr, CREATE_METHOD_TABLE(NativeStdFunctionCell) };
-
-NativeStdFunctionCell* NativeStdFunctionCell::create(VM& vm, NativeStdFunction&& function)
-{
- NativeStdFunctionCell* nativeFunction = new (NotNull, allocateCell<NativeStdFunctionCell>(vm.heap)) NativeStdFunctionCell(vm, WTFMove(function));
- nativeFunction->finishCreation(vm);
- return nativeFunction;
-}
-
-
-NativeStdFunctionCell::NativeStdFunctionCell(VM& vm, NativeStdFunction&& function)
- : Base(vm, vm.nativeStdFunctionCellStructure.get())
- , m_function(WTFMove(function))
-{
-}
-
-void NativeStdFunctionCell::destroy(JSCell* cell)
-{
- NativeStdFunctionCell* nativeFunction = static_cast<NativeStdFunctionCell*>(cell);
- nativeFunction->NativeStdFunctionCell::~NativeStdFunctionCell();
-}
-
-}
Deleted: trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.h (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.h 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/NativeStdFunctionCell.h 2019-12-10 03:57:47 UTC (rev 253318)
@@ -1,58 +0,0 @@
-/*
- * 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
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "JSCast.h"
-#include "JSNativeStdFunction.h"
-
-namespace JSC {
-
-class NativeStdFunctionCell final : public JSCell {
-public:
- typedef JSCell Base;
- static constexpr unsigned StructureFlags = Base::StructureFlags | StructureIsImmortal;
- static constexpr bool needsDestruction = true;
-
- static NativeStdFunctionCell* create(VM&, NativeStdFunction&&);
-
- static void destroy(JSCell*);
-
- static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
- {
- return Structure::create(vm, globalObject, prototype, TypeInfo(CellType, StructureFlags), info());
- }
-
- DECLARE_INFO;
-
- const NativeStdFunction& function() const { return m_function; }
-
-private:
- NativeStdFunctionCell(VM&, NativeStdFunction&&);
-
- NativeStdFunction m_function;
-};
-
-} // namespace JSC
Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp 2019-12-10 03:57:47 UTC (rev 253318)
@@ -99,6 +99,7 @@
#include "JSMapIterator.h"
#include "JSModuleNamespaceObject.h"
#include "JSModuleRecord.h"
+#include "JSNativeStdFunction.h"
#include "JSPromise.h"
#include "JSPropertyNameEnumerator.h"
#include "JSScriptFetchParameters.h"
@@ -128,7 +129,6 @@
#include "ModuleProgramExecutable.h"
#include "NativeErrorConstructor.h"
#include "NativeExecutable.h"
-#include "NativeStdFunctionCell.h"
#include "Nodes.h"
#include "NumberObject.h"
#include "ObjCCallbackFunction.h"
@@ -296,6 +296,7 @@
, errorInstanceHeapCellType(makeUnique<IsoHeapCellType<ErrorInstance>>())
, jsModuleRecordHeapCellType(makeUnique<IsoHeapCellType<JSModuleRecord>>())
, moduleNamespaceObjectHeapCellType(makeUnique<IsoHeapCellType<JSModuleNamespaceObject>>())
+ , nativeStdFunctionHeapCellType(makeUnique<IsoHeapCellType<JSNativeStdFunction>>())
, stringHeapCellType(makeUnique<IsoHeapCellType<JSString>>())
, weakMapHeapCellType(makeUnique<IsoHeapCellType<JSWeakMap>>())
, weakSetHeapCellType(makeUnique<IsoHeapCellType<JSWeakSet>>())
@@ -445,7 +446,6 @@
propertyTableStructure.set(*this, PropertyTable::createStructure(*this, 0, jsNull()));
functionRareDataStructure.set(*this, FunctionRareData::createStructure(*this, 0, jsNull()));
exceptionStructure.set(*this, Exception::createStructure(*this, 0, jsNull()));
- nativeStdFunctionCellStructure.set(*this, NativeStdFunctionCell::createStructure(*this, 0, jsNull()));
programCodeBlockStructure.set(*this, ProgramCodeBlock::createStructure(*this, 0, jsNull()));
moduleProgramCodeBlockStructure.set(*this, ModuleProgramCodeBlock::createStructure(*this, 0, jsNull()));
evalCodeBlockStructure.set(*this, EvalCodeBlock::createStructure(*this, 0, jsNull()));
@@ -1377,7 +1377,7 @@
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(int32ArraySpace, cellHeapCellType.get(), JSInt32Array)
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(mapSpace, cellHeapCellType.get(), JSMap)
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(moduleNamespaceObjectSpace, moduleNamespaceObjectHeapCellType.get(), JSModuleNamespaceObject)
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(nativeStdFunctionSpace, cellHeapCellType.get(), JSNativeStdFunction) // Hash:0x70ed61e4
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(nativeStdFunctionSpace, nativeStdFunctionHeapCellType.get(), JSNativeStdFunction) // Hash:0x70ed61e4
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(proxyObjectSpace, cellHeapCellType.get(), ProxyObject)
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(proxyRevokeSpace, cellHeapCellType.get(), ProxyRevoke) // Hash:0xb506a939
DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(setSpace, cellHeapCellType.get(), JSSet)
Modified: trunk/Source/_javascript_Core/runtime/VM.h (253317 => 253318)
--- trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 02:39:30 UTC (rev 253317)
+++ trunk/Source/_javascript_Core/runtime/VM.h 2019-12-10 03:57:47 UTC (rev 253318)
@@ -132,6 +132,7 @@
class JSGlobalObject;
class JSModuleNamespaceObject;
class JSModuleRecord;
+class JSNativeStdFunction;
class JSObject;
class JSPromise;
class JSPropertyNameEnumerator;
@@ -362,6 +363,7 @@
std::unique_ptr<IsoHeapCellType<ErrorInstance>> errorInstanceHeapCellType;
std::unique_ptr<IsoHeapCellType<JSModuleRecord>> jsModuleRecordHeapCellType;
std::unique_ptr<IsoHeapCellType<JSModuleNamespaceObject>> moduleNamespaceObjectHeapCellType;
+ std::unique_ptr<IsoHeapCellType<JSNativeStdFunction>> nativeStdFunctionHeapCellType;
std::unique_ptr<IsoHeapCellType<JSString>> stringHeapCellType;
std::unique_ptr<IsoHeapCellType<JSWeakMap>> weakMapHeapCellType;
std::unique_ptr<IsoHeapCellType<JSWeakSet>> weakSetHeapCellType;
@@ -633,7 +635,6 @@
Strong<Structure> propertyTableStructure;
Strong<Structure> functionRareDataStructure;
Strong<Structure> exceptionStructure;
- Strong<Structure> nativeStdFunctionCellStructure;
Strong<Structure> programCodeBlockStructure;
Strong<Structure> moduleProgramCodeBlockStructure;
Strong<Structure> evalCodeBlockStructure;