// #pragma once // #include "root.h" // #include "headers.h" // #include "JavaScriptCore/JSObject.h" // // #include "JavaScriptCore/InternalFunction.h" // namespace Zig { // class ModulePrototype final : public JSC::JSNonFinalObject { // public: // using Base = JSC::JSNonFinalObject; // DECLARE_EXPORT_INFO; // static constexpr unsigned StructureFlags = Base::StructureFlags | JSC::ImplementsHasInstance | JSC::ImplementsDefaultHasInstance; // static constexpr bool needsDestruction = true; // template // static JSC::IsoSubspace* subspaceFor(JSC::VM& vm) // { // STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(Headers, Base); // return &vm.plainObjectSpace; // } // static ModulePrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* zigBase) // { // ModulePrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) ModulePrototype(vm, structure); // !!zigBase ? object->finishCreation(vm, globalObject, zigBase) : object->finishCreation(vm, globalObject); // return object; // } // static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); // } // void* m_zigBase; // private: // ModulePrototype(JSC::VM&, JSC::Structure*) : Base(vm, structure) { // m_zigBase = nullptr; // }; // void finishCreation(JSC::VM&, JSC::JSGlobalObject*, void* zigBase); // void finishCreation(JSC::VM&, JSC::JSGlobalObject*); // }; // class ModuleExportsMap final : public JSC::JSNonFinalObject { // public: // using Base = JSC::JSNonFinalObject; // DECLARE_EXPORT_INFO; // static constexpr unsigned StructureFlags = Base::StructureFlags; // static constexpr bool needsDestruction = true; // template // static JSC::IsoSubspace* subspaceFor(JSC::VM& vm) // { // STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(Headers, Base); // return &vm.plainObjectSpace; // } // static ModulePrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* zigBase) // { // ModulePrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) ModulePrototype(vm, structure); // !!zigBase ? object->finishCreation(vm, globalObject, zigBase) : object->finishCreation(vm, globalObject); // return object; // } // static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); // } // void* m_zigBase; // private: // ModulePrototype(JSC::VM&, JSC::Structure*) : Base(vm, structure) { // m_zigBase = nullptr; // }; // void finishCreation(JSC::VM&, JSC::JSGlobalObject*, void* zigBase); // void finishCreation(JSC::VM&, JSC::JSGlobalObject*); // }; // } // namespace Zig { // class HeadersPrototype final : public JSC::JSNonFinalObject { // public: // using Base = JSC::JSNonFinalObject; // DECLARE_EXPORT_INFO; // static constexpr unsigned StructureFlags = Base::StructureFlags | JSC::ImplementsHasInstance | JSC::ImplementsDefaultHasInstance; // static constexpr bool needsDestruction = true; // template // static JSC::IsoSubspace* subspaceFor(JSC::VM& vm) // { // STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(Headers, Base); // return &vm.plainObjectSpace; // } // static HeadersPrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* zigBase) // { // HeadersPrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) HeadersPrototype(vm, structure); // !!zigBase ? object->finishCreation(vm, globalObject, zigBase) : object->finishCreation(vm, globalObject); // return object; // } // static HeadersPrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) // { // HeadersPrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) HeadersPrototype(vm, structure); // object->finishCreation(vm, globalObject); // return object; // } // JSC::JSValue get(JSC::JSGlobalObject&, JSC::JSValue); // bool put(JSC::JSGlobalObject&, JSC::JSValue, JSC::JSValue); // bool has(JSC::JSGlobalObject&, JSC::JSValue); // void remove(JSC::JSGlobalObject&, JSC::JSValue); // void clear(JSC::JSGlobalObject&, JSC::JSValue); // static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); // } // void* m_zigBase; // private: // HeadersPrototype(JSC::VM&, JSC::Structure*) : Base(vm, structure) { // m_zigBase = nullptr; // }; // void finishCreation(JSC::VM&, JSC::JSGlobalObject*, void* zigBase); // void finishCreation(JSC::VM&, JSC::JSGlobalObject*); // }; // JSC_DECLARE_HOST_FUNCTION(headersFuncPrototypeGet); // JSC_DECLARE_HOST_FUNCTION(headersFuncPrototypePut); // JSC_DECLARE_HOST_FUNCTION(headersFuncPrototypeHas); // JSC_DECLARE_HOST_FUNCTION(headersFuncPrototypeRemove); // JSC_DECLARE_HOST_FUNCTION(headersFuncPrototypeClear); // class HeadersConstructor final : public JSC::InternalFunction { // public: // typedef InternalFunction Base; // static HeadersConstructor* create(JSC::VM& vm, JSC::Structure* structure, HeadersPrototype* mapPrototype) // { // HeadersConstructor* constructor = new (NotNull, JSC::allocateCell(vm.heap)) HeadersConstructor(vm, structure); // constructor->finishCreation(vm, mapPrototype); // return constructor; // } // DECLARE_EXPORT_INFO; // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::InternalFunctionType, StructureFlags), info()); // } // private: // HeadersConstructor(JSC::VM&, JSC::Structure*); // void finishCreation(JSC::VM&, HeadersPrototype*); // }; // JSC_DECLARE_HOST_FUNCTION(headersFuncConstructor); // class RequestConstructor final : public JSC::InternalFunction { // public: // typedef InternalFunction Base; // static RequestConstructor* create(JSC::VM& vm, JSC::Structure* structure, RequestPrototype* mapPrototype) // { // RequestConstructor* constructor = new (NotNull, JSC::allocateCell(vm.heap)) RequestConstructor(vm, structure); // constructor->finishCreation(vm, mapPrototype); // return constructor; // } // DECLARE_EXPORT_INFO; // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::InternalFunctionType, StructureFlags), info()); // } // private: // RequestConstructor(JSC::VM&, JSC::Structure*); // void finishCreation(JSC::VM&, RequestPrototype*); // }; // JSC_DECLARE_HOST_FUNCTION(requestFuncConstructor); // class RequestPrototype final : public JSC::JSNonFinalObject { // public: // using Base = JSC::JSNonFinalObject; // DECLARE_EXPORT_INFO; // static constexpr unsigned StructureFlags = Base::StructureFlags | JSC::ImplementsHasInstance | JSC::ImplementsDefaultHasInstance; // static constexpr bool needsDestruction = true; // template // static JSC::IsoSubspace* subspaceFor(JSC::VM& vm) // { // STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(Headers, Base); // return &vm.plainObjectSpace; // } // static RequestPrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* zigBase) // { // RequestPrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) RequestPrototype(vm, structure); // !!zigBase ? object->finishCreation(vm, globalObject, zigBase) : object->finishCreation(vm, globalObject); // return object; // } // static RequestPrototype* create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) // { // RequestPrototype* object = new (NotNull, JSC::allocateCell(vm.heap)) RequestPrototype(vm, structure); // object->finishCreation(vm, globalObject); // return object; // } // static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject&); // static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) // { // return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); // } // void* m_zigBase; // private: // RequestPrototype(JSC::VM&, JSC::Structure*) : Base(vm, structure) { // m_zigBase = nullptr; // }; // void finishCreation(JSC::VM&, JSC::JSGlobalObject*, void* zigBase); // void finishCreation(JSC::VM&, JSC::JSGlobalObject*); // }; // } at/squoosh'>feat/squoosh Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1
2021-11-19Fix blog example (#1910)Gravatar Matthew Phillips 1-1/+1
2021-11-19Version Packages (next) (#1907)astro@0.21.0-next.10Gravatar github-actions[bot] 23-21/+28
2021-11-19Remove further dependence on vite package (#1906)Gravatar Matthew Phillips 3-5/+9
2021-11-19Version Packages (next) (#1904)astro@0.21.0-next.9Gravatar github-actions[bot] 23-21/+30
2021-11-19Remove OSX \x00 workaround (#1901)Gravatar Matthew Phillips 2-5/+5
2021-11-19Resolve vite client modules to vendored vite (#1903)Gravatar Matthew Phillips 2-2/+7
2021-11-19[ci] yarn formatGravatar matthewp 1-3/+3
2021-11-19Add Debug tests (#1882)Gravatar Matthew Phillips 4-0/+62
2021-11-19[ci] collect statsGravatar FredKSchott 1-0/+1
2021-11-19Version Packages (next) (#1881)astro@0.21.0-next.8@astrojs/renderer-vue@0.2.0-next.2Gravatar github-actions[bot] 25-23/+42
2021-11-18Improve HMR (#1896)Gravatar Drew Powers 2-10/+18
2021-11-18update depsGravatar Fred K. Schott 5-352/+65
2021-11-18fix #1778Gravatar Fred K. Schott 2-1/+8
2021-11-18Update compiler (#1869)Gravatar Nate Moore 3-11/+6
2021-11-18remove unused remark dependency (#1894)Gravatar Fred K. Schott 2-245/+13
2021-11-18Improve error messages (#1875)Gravatar Drew Powers 39-61/+448
2021-11-18pin astro compiler to older versionGravatar Fred K. Schott 2-5/+5
2021-11-18Update yarn.lock to reflect the state of the package.json files (#1892)Gravatar Jonathan Neal 5-1300/+1000
2021-11-19[ci] yarn formatGravatar FredKSchott 1-5/+3