1/*
2 * Copyright (c) 2016 Apple Inc. All rights reserved.
3 * Copyright (c) 2017 Apple Inc.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 */
27
28// DO NOT EDIT THIS FILE. It is automatically generated from JavaScript files for
29// builtins by the script: Source/JavaScriptCore/Scripts/generate-js-builtins.py
30
31#include "config.h"
32#include "JSDOMBindingInternalsBuiltins.h"
33
34#include "WebCoreJSClientData.h"
35#include <JavaScriptCore/HeapInlines.h>
36#include <JavaScriptCore/IdentifierInlines.h>
37#include <JavaScriptCore/Intrinsic.h>
38#include <JavaScriptCore/JSCJSValueInlines.h>
39#include <JavaScriptCore/JSCellInlines.h>
40#include <JavaScriptCore/StructureInlines.h>
41#include <JavaScriptCore/VM.h>
42
43namespace WebCore {
44
45const JSC::ConstructAbility s_jsDOMBindingInternalsMapLikeForEachCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
46const int s_jsDOMBindingInternalsMapLikeForEachCodeLength = 165;
47static const JSC::Intrinsic s_jsDOMBindingInternalsMapLikeForEachCodeIntrinsic = JSC::NoIntrinsic;
48const char* const s_jsDOMBindingInternalsMapLikeForEachCode =
49 "(function (callback)\n" \
50 "{\n" \
51 " \"use strict\";\n" \
52 " @getByIdDirectPrivate(this, \"backingMap\").forEach((value, key, map) => {\n" \
53 " callback(value, key, this);\n" \
54 " });\n" \
55 "})\n" \
56;
57
58
59#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
60JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
61{\
62 JSVMClientData* clientData = static_cast<JSVMClientData*>(vm.clientData); \
63 return clientData->builtinFunctions().jsDOMBindingInternalsBuiltins().codeName##Executable()->link(vm, nullptr, clientData->builtinFunctions().jsDOMBindingInternalsBuiltins().codeName##Source(), WTF::nullopt, s_##codeName##Intrinsic); \
64}
65WEBCORE_FOREACH_JSDOMBINDINGINTERNALS_BUILTIN_CODE(DEFINE_BUILTIN_GENERATOR)
66#undef DEFINE_BUILTIN_GENERATOR
67
68
69} // namespace WebCore
70