/* * Copyright (c) 2015 Igalia * Copyright (c) 2015 Igalia S.L. * Copyright (c) 2015 Igalia. * Copyright (c) 2015, 2016 Canon Inc. All rights reserved. * Copyright (c) 2015, 2016, 2017 Canon Inc. * Copyright (c) 2016, 2020 Apple Inc. All rights reserved. * Copyright (c) 2022 Codeblog Corp. 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. AND ITS CONTRIBUTORS ``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 ITS 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. * */ // DO NOT EDIT THIS FILE. It is automatically generated from JavaScript files for // builtins by the script: Source/JavaScriptCore/Scripts/generate-js-builtins.py #pragma once #include #include #include #include namespace JSC { class FunctionExecutable; } namespace WebCore { /* ImportMetaObject */ extern const char* const s_importMetaObjectLoadCJS2ESMCode; extern const int s_importMetaObjectLoadCJS2ESMCodeLength; extern const JSC::ConstructAbility s_importMetaObjectLoadCJS2ESMCodeConstructAbility; extern const JSC::ConstructorKind s_importMetaObjectLoadCJS2ESMCodeConstructorKind; extern const JSC::ImplementationVisibility s_importMetaObjectLoadCJS2ESMCodeImplementationVisibility; extern const char* const s_importMetaObjectRequireESMCode; extern const int s_importMetaObjectRequireESMCodeLength; extern const JSC::ConstructAbility s_importMetaObjectRequireESMCodeConstructAbility; extern const JSC::ConstructorKind s_importMetaObjectRequireESMCodeConstructorKind; extern const JSC::ImplementationVisibility s_importMetaObjectRequireESMCodeImplementationVisibility; extern const char* const s_importMetaObjectRequireCode; extern const int s_importMetaObjectRequireCodeLength; extern const JSC::ConstructAbility s_importMetaObjectRequireCodeConstructAbility; extern const JSC::ConstructorKind s_importMetaObjectRequireCodeConstructorKind; extern const JSC::ImplementationVisibility s_importMetaObjectRequireCodeImplementationVisibility; #define WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_DATA(macro) \ macro(loadCJS2ESM, importMetaObjectLoadCJS2ESM, 1) \ macro(requireESM, importMetaObjectRequireESM, 1) \ macro(require, importMetaObjectRequire, 1) \ #define WEBCORE_BUILTIN_IMPORTMETAOBJECT_LOADCJS2ESM 1 #define WEBCORE_BUILTIN_IMPORTMETAOBJECT_REQUIREESM 1 #define WEBCORE_BUILTIN_IMPORTMETAOBJECT_REQUIRE 1 #define WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(macro) \ macro(importMetaObjectLoadCJS2ESMCode, loadCJS2ESM, ASCIILiteral(), s_importMetaObjectLoadCJS2ESMCodeLength) \ macro(importMetaObjectRequireESMCode, requireESM, ASCIILiteral(), s_importMetaObjectRequireESMCodeLength) \ macro(importMetaObjectRequireCode, require, ASCIILiteral(), s_importMetaObjectRequireCodeLength) \ #define WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_FUNCTION_NAME(macro) \ macro(loadCJS2ESM) \ macro(require) \ macro(requireESM) \ #define DECLARE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM&); WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(DECLARE_BUILTIN_GENERATOR) #undef DECLARE_BUILTIN_GENERATOR class ImportMetaObjectBuiltinsWrapper : private JSC::WeakHandleOwner { public: explicit ImportMetaObjectBuiltinsWrapper(JSC::VM& vm) : m_vm(vm) WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_FUNCTION_NAME(INITIALIZE_BUILTIN_NAMES) #define INITIALIZE_BUILTIN_SOURCE_MEMBERS(name, functionName, overriddenName, length) , m_##name##Source(JSC::makeSource(StringImpl::createWithoutCopying(s_##name, length), { })) WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(INITIALIZE_BUILTIN_SOURCE_MEMBERS) #undef INITIALIZE_BUILTIN_SOURCE_MEMBERS { } #define EXPOSE_BUILTIN_EXECUTABLES(name, functionName, overriddenName, length) \ JSC::UnlinkedFunctionExecutable* name##Executable(); \ const JSC::SourceCode& name##Source() const { return m_##name##Source; } WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(EXPOSE_BUILTIN_EXECUTABLES) #undef EXPOSE_BUILTIN_EXECUTABLES WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_FUNCTION_NAME(DECLARE_BUILTIN_IDENTIFIER_ACCESSOR) void exportNames(); private: JSC::VM& m_vm; WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_FUNCTION_NAME(DECLARE_BUILTIN_NAMES) #define DECLARE_BUILTIN_SOURCE_MEMBERS(name, functionName, overriddenName, length) \ JSC::SourceCode m_##name##Source;\ JSC::Weak m_##name##Executable; WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(DECLARE_BUILTIN_SOURCE_MEMBERS) #undef DECLARE_BUILTIN_SOURCE_MEMBERS }; #define DEFINE_BUILTIN_EXECUTABLES(name, functionName, overriddenName, length) \ inline JSC::UnlinkedFunctionExecutable* ImportMetaObjectBuiltinsWrapper::name##Executable() \ {\ if (!m_##name##Executable) {\ JSC::Identifier executableName = functionName##PublicName();\ if (overriddenName)\ executableName = JSC::Identifier::fromString(m_vm, overriddenName);\ m_##name##Executable = JSC::Weak(JSC::createBuiltinExecutable(m_vm, m_##name##Source, executableName, s_##name##ImplementationVisibility, s_##name##ConstructorKind, s_##name##ConstructAbility), this, &m_##name##Executable);\ }\ return m_##name##Executable.get();\ } WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_CODE(DEFINE_BUILTIN_EXECUTABLES) #undef DEFINE_BUILTIN_EXECUTABLES inline void ImportMetaObjectBuiltinsWrapper::exportNames() { #define EXPORT_FUNCTION_NAME(name) m_vm.propertyNames->appendExternalName(name##PublicName(), name##PrivateName()); WEBCORE_FOREACH_IMPORTMETAOBJECT_BUILTIN_FUNCTION_NAME(EXPORT_FUNCTION_NAME) #undef EXPORT_FUNCTION_NAME } } // namespace WebCore feat/devtools Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2022-07-08[ci] release (#3850)create-astro@0.12.5astro@1.0.0-beta.65@astrojs/vue@0.2.1@astrojs/vercel@0.2.5@astrojs/turbolinks@0.1.4@astrojs/telemetry@0.2.5@astrojs/tailwind@0.2.3@astrojs/svelte@0.2.1@astrojs/solid-js@0.2.1@astrojs/sitemap@0.2.5@astrojs/react@0.2.1@astrojs/prefetch@0.0.4@astrojs/preact@0.3.2@astrojs/partytown@0.1.7@astrojs/node@0.1.5@astrojs/netlify@0.4.9@astrojs/mdx@0.0.3@astrojs/lit@0.3.1@astrojs/image@0.1.0@astrojs/deno@0.1.9@astrojs/cloudflare@0.2.3Gravatar Fred K. Bot 1-6/+0
2022-07-08[ci] formatGravatar bholmesdev 1-1/+1
2022-07-08chore: changeset (#3873)Gravatar Ben Holmes 3-1/+10
2022-07-08Add editor integrations to language integrations (#3864)Gravatar Erika 8-6/+131
2022-07-08[ci] formatGravatar tony-sull 7-38/+59
2022-07-08Adds a new `<Picture>` component to the image integration (#3866)Gravatar Tony Sullivan 28-164/+1052
2022-07-08[ci] formatGravatar bholmesdev 7-31/+60
2022-07-08[astro add] Support adapters and third party packages (#3854)Gravatar Ben Holmes 20-37/+221
2022-07-08Ignore big formatting commit (#3870)Gravatar Marcus Otterström 1-1/+3
2022-07-08[ci] formatGravatar tony-sull 1-3/+3
2022-07-08fix: Always add @astrojs/image to vite.ssr.noExternal (#3869)Gravatar Tony Sullivan 2-0/+8
2022-07-08Format astro files in examples (#3862)Gravatar Marcus Otterström 73-694/+957
2022-07-08Integration README fixes (#3865)Gravatar Chris Swithinbank 8-8/+17
2022-07-08fix(#3843): move @babel/types to dependencies (#3863)Gravatar Nate Moore 2-2/+2
2022-07-08Fixed broken Markdown link (#3868)Gravatar Isaac McFadyen 1-2/+2
2022-07-08chore: bump Vite minimum version (#3861)Gravatar Nate Moore 2-2/+2
2022-07-08[ci] formatGravatar matthewp 1-1/+1
2022-07-08Better response.arrayBuffer() handling in Node (#3860)Gravatar Matthew Phillips 8-3/+125
2022-07-08[ci] update lockfile (#3858)Gravatar Fred K. Bot 1-411/+437
2022-07-08Fix manual import (#3857)Gravatar Chris Williams 1-1/+1
2022-07-07[ci] formatGravatar bholmesdev 1-3/+3
2022-07-07Docs: add adapter heading for configuration docs (#3842)Gravatar Ben Holmes 2-4/+20
2022-07-07[ci] formatGravatar natemoo-re 2-3/+3
2022-07-07fix: lint failing on astro and some integrations (#3794)Gravatar Joaquín Sánchez 7-17/+18
2022-07-07update solid peer dependenciesGravatar Fred K. Schott 2-1/+6
2022-07-07update lockfile (#3828)Gravatar Fred K. Schott 3-7/+1
2022-07-07Improve JSX definitions (#3801)Gravatar Erika 2-477/+858
2022-07-07Fix slot attribute inside expressions (#3837)Gravatar Nate Moore 8-5/+89
2022-07-07[ci] formatGravatar FredKSchott 1-2/+1
2022-07-07detect package manager and improve types (#3847)Gravatar Fred K. Schott 7-44/+78
2022-07-07small create-astro wording changes (#3831)Gravatar Fred K. Schott 3-10/+15
2022-07-07Upgrade to pnpm@7.4.1, remove `patch-package` (#3747)Gravatar Nate Moore 6-127/+100
2022-07-07[ci] formatGravatar matthewp 1-1/+1
2022-07-07Allow importing Image component from @astrojs/image (#3848)Gravatar Matthew Phillips 7-6/+20
2022-07-06[ci] release (#3818)astro@1.0.0-beta.64@astrojs/telemetry@0.2.4@astrojs/node@0.1.4Gravatar Fred K. Bot 41-90/+90
2022-07-07[ci] formatGravatar bholmesdev 1-1/+1
2022-07-06Fix: Infer content type with charset in dev and prod (#3841)Gravatar Ben Holmes 4-3/+23
2022-07-06[ci] formatGravatar bholmesdev 1-2/+2
2022-07-06Fix `client:visible` directive in safari (#3839)Gravatar Ben Holmes 2-2/+20
2022-07-06[ci] formatGravatar matthewp 1-1/+1
2022-07-06Ensure that maybeRenderHead runs last (#3821)Gravatar Matthew Phillips 5-8/+67
2022-07-05Fix portfolio example to use lowercase srcset (#3829)Gravatar Matthew Phillips 1-1/+1
2022-07-05[ci] formatGravatar delucis 1-29/+29