aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGeneratedClasses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/ZigGeneratedClasses.cpp')
-rw-r--r--src/bun.js/bindings/ZigGeneratedClasses.cpp206
1 files changed, 206 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGeneratedClasses.cpp b/src/bun.js/bindings/ZigGeneratedClasses.cpp
index fad332acc..72064b583 100644
--- a/src/bun.js/bindings/ZigGeneratedClasses.cpp
+++ b/src/bun.js/bindings/ZigGeneratedClasses.cpp
@@ -140,6 +140,8 @@ JSC_DEFINE_CUSTOM_GETTER(TCPSocketPrototype__dataGetterWrap, (JSGlobalObject * l
thisObject->m_data.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void TCPSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -147,6 +149,13 @@ extern "C" void TCPSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue thisV
thisObject->m_data.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue TCPSocketPrototype__dataGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSTCPSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_data.get());
+}
+
+
JSC_DEFINE_CUSTOM_SETTER(TCPSocketPrototype__dataSetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, EncodedJSValue encodedValue, PropertyName attributeName))
{
@@ -285,6 +294,8 @@ JSC_DEFINE_CUSTOM_GETTER(TCPSocketPrototype__remoteAddressGetterWrap, (JSGlobalO
thisObject->m_remoteAddress.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void TCPSocketPrototype__remoteAddressSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -292,6 +303,13 @@ extern "C" void TCPSocketPrototype__remoteAddressSetCachedValue(JSC::EncodedJSVa
thisObject->m_remoteAddress.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue TCPSocketPrototype__remoteAddressGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSTCPSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_remoteAddress.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(TCPSocketPrototype__shutdownCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -455,6 +473,7 @@ void JSTCPSocket::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSTCPSocket* JSTCPSocket::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSTCPSocket* ptr = new (NotNull, JSC::allocateCell<JSTCPSocket>(vm)) JSTCPSocket(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -630,6 +649,8 @@ JSC_DEFINE_CUSTOM_GETTER(TLSSocketPrototype__dataGetterWrap, (JSGlobalObject * l
thisObject->m_data.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void TLSSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -637,6 +658,13 @@ extern "C" void TLSSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue thisV
thisObject->m_data.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue TLSSocketPrototype__dataGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSTLSSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_data.get());
+}
+
+
JSC_DEFINE_CUSTOM_SETTER(TLSSocketPrototype__dataSetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, EncodedJSValue encodedValue, PropertyName attributeName))
{
@@ -775,6 +803,8 @@ JSC_DEFINE_CUSTOM_GETTER(TLSSocketPrototype__remoteAddressGetterWrap, (JSGlobalO
thisObject->m_remoteAddress.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void TLSSocketPrototype__remoteAddressSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -782,6 +812,13 @@ extern "C" void TLSSocketPrototype__remoteAddressSetCachedValue(JSC::EncodedJSVa
thisObject->m_remoteAddress.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue TLSSocketPrototype__remoteAddressGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSTLSSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_remoteAddress.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(TLSSocketPrototype__shutdownCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -945,6 +982,7 @@ void JSTLSSocket::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSTLSSocket* JSTLSSocket::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSTLSSocket* ptr = new (NotNull, JSC::allocateCell<JSTLSSocket>(vm)) JSTLSSocket(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -1120,6 +1158,8 @@ JSC_DEFINE_CUSTOM_GETTER(ListenerPrototype__hostnameGetterWrap, (JSGlobalObject
thisObject->m_hostname.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ListenerPrototype__hostnameSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1127,6 +1167,13 @@ extern "C" void ListenerPrototype__hostnameSetCachedValue(JSC::EncodedJSValue th
thisObject->m_hostname.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ListenerPrototype__hostnameGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSListener*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_hostname.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(ListenerPrototype__portGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -1210,6 +1257,8 @@ JSC_DEFINE_CUSTOM_GETTER(ListenerPrototype__unixGetterWrap, (JSGlobalObject * le
thisObject->m_unix.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ListenerPrototype__unixSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1217,6 +1266,13 @@ extern "C" void ListenerPrototype__unixSetCachedValue(JSC::EncodedJSValue thisVa
thisObject->m_unix.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ListenerPrototype__unixGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSListener*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_unix.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(ListenerPrototype__unrefCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -1329,6 +1385,7 @@ void JSListener::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSListener* JSListener::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSListener* ptr = new (NotNull, JSC::allocateCell<JSListener>(vm)) JSListener(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -1564,6 +1621,8 @@ JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__readableGetterWrap, (JSGlobalObjec
thisObject->m_stdout.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void SubprocessPrototype__readableSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1571,6 +1630,13 @@ extern "C" void SubprocessPrototype__readableSetCachedValue(JSC::EncodedJSValue
thisObject->m_stdout.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue SubprocessPrototype__readableGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSSubprocess*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_stdout.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(SubprocessPrototype__refCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -1607,6 +1673,8 @@ JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__stderrGetterWrap, (JSGlobalObject
thisObject->m_stderr.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void SubprocessPrototype__stderrSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1614,6 +1682,13 @@ extern "C" void SubprocessPrototype__stderrSetCachedValue(JSC::EncodedJSValue th
thisObject->m_stderr.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue SubprocessPrototype__stderrGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSSubprocess*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_stderr.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__stdinGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -1633,6 +1708,8 @@ JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__stdinGetterWrap, (JSGlobalObject *
thisObject->m_stdin.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void SubprocessPrototype__stdinSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1640,6 +1717,13 @@ extern "C" void SubprocessPrototype__stdinSetCachedValue(JSC::EncodedJSValue thi
thisObject->m_stdin.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue SubprocessPrototype__stdinGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSSubprocess*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_stdin.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__stdoutGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -1659,6 +1743,8 @@ JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__stdoutGetterWrap, (JSGlobalObject
thisObject->m_stdout.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void SubprocessPrototype__stdoutSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1666,6 +1752,13 @@ extern "C" void SubprocessPrototype__stdoutSetCachedValue(JSC::EncodedJSValue th
thisObject->m_stdout.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue SubprocessPrototype__stdoutGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSSubprocess*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_stdout.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(SubprocessPrototype__unrefCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -1702,6 +1795,8 @@ JSC_DEFINE_CUSTOM_GETTER(SubprocessPrototype__writableGetterWrap, (JSGlobalObjec
thisObject->m_stdin.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void SubprocessPrototype__writableSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -1709,6 +1804,13 @@ extern "C" void SubprocessPrototype__writableSetCachedValue(JSC::EncodedJSValue
thisObject->m_stdin.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue SubprocessPrototype__writableGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSSubprocess*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_stdin.get());
+}
+
+
void JSSubprocessPrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObject* globalObject)
{
@@ -1804,6 +1906,7 @@ void JSSubprocess::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSubprocess* JSSubprocess::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSubprocess* ptr = new (NotNull, JSC::allocateCell<JSSubprocess>(vm)) JSSubprocess(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -2058,6 +2161,7 @@ void JSSHA1::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA1* JSSHA1::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA1* ptr = new (NotNull, JSC::allocateCell<JSSHA1>(vm)) JSSHA1(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -2297,6 +2401,7 @@ void JSMD5::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSMD5* JSMD5::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSMD5* ptr = new (NotNull, JSC::allocateCell<JSMD5>(vm)) JSMD5(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -2536,6 +2641,7 @@ void JSMD4::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSMD4* JSMD4::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSMD4* ptr = new (NotNull, JSC::allocateCell<JSMD4>(vm)) JSMD4(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -2775,6 +2881,7 @@ void JSSHA224::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA224* JSSHA224::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA224* ptr = new (NotNull, JSC::allocateCell<JSSHA224>(vm)) JSSHA224(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -3014,6 +3121,7 @@ void JSSHA512::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA512* JSSHA512::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA512* ptr = new (NotNull, JSC::allocateCell<JSSHA512>(vm)) JSSHA512(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -3253,6 +3361,7 @@ void JSSHA384::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA384* JSSHA384::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA384* ptr = new (NotNull, JSC::allocateCell<JSSHA384>(vm)) JSSHA384(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -3492,6 +3601,7 @@ void JSSHA256::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA256* JSSHA256::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA256* ptr = new (NotNull, JSC::allocateCell<JSSHA256>(vm)) JSSHA256(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -3731,6 +3841,7 @@ void JSSHA512_256::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSSHA512_256* JSSHA512_256::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSSHA512_256* ptr = new (NotNull, JSC::allocateCell<JSSHA512_256>(vm)) JSSHA512_256(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -4042,6 +4153,8 @@ JSC_DEFINE_CUSTOM_GETTER(ServerWebSocketPrototype__dataGetterWrap, (JSGlobalObje
thisObject->m_data.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ServerWebSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -4049,6 +4162,13 @@ extern "C" void ServerWebSocketPrototype__dataSetCachedValue(JSC::EncodedJSValue
thisObject->m_data.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ServerWebSocketPrototype__dataGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSServerWebSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_data.get());
+}
+
+
JSC_DEFINE_CUSTOM_SETTER(ServerWebSocketPrototype__dataSetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, EncodedJSValue encodedValue, PropertyName attributeName))
{
@@ -4178,6 +4298,8 @@ JSC_DEFINE_CUSTOM_GETTER(ServerWebSocketPrototype__remoteAddressGetterWrap, (JSG
thisObject->m_remoteAddress.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ServerWebSocketPrototype__remoteAddressSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -4185,6 +4307,13 @@ extern "C" void ServerWebSocketPrototype__remoteAddressSetCachedValue(JSC::Encod
thisObject->m_remoteAddress.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ServerWebSocketPrototype__remoteAddressGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSServerWebSocket*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_remoteAddress.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(ServerWebSocketPrototype__sendCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -4365,6 +4494,7 @@ void JSServerWebSocket::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSServerWebSocket* JSServerWebSocket::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSServerWebSocket* ptr = new (NotNull, JSC::allocateCell<JSServerWebSocket>(vm)) JSServerWebSocket(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -4503,6 +4633,8 @@ JSC_DEFINE_CUSTOM_GETTER(TextDecoderPrototype__encodingGetterWrap, (JSGlobalObje
thisObject->m_encoding.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void TextDecoderPrototype__encodingSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -4510,6 +4642,13 @@ extern "C" void TextDecoderPrototype__encodingSetCachedValue(JSC::EncodedJSValue
thisObject->m_encoding.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue TextDecoderPrototype__encodingGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSTextDecoder*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_encoding.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(TextDecoderPrototype__fatalGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -4618,6 +4757,7 @@ void JSTextDecoder::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSTextDecoder* JSTextDecoder::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSTextDecoder* ptr = new (NotNull, JSC::allocateCell<JSTextDecoder>(vm)) JSTextDecoder(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -4847,6 +4987,8 @@ JSC_DEFINE_CUSTOM_GETTER(RequestPrototype__bodyGetterWrap, (JSGlobalObject * lex
thisObject->m_body.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void RequestPrototype__bodySetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -4854,6 +4996,13 @@ extern "C" void RequestPrototype__bodySetCachedValue(JSC::EncodedJSValue thisVal
thisObject->m_body.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue RequestPrototype__bodyGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSRequest*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_body.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(RequestPrototype__bodyUsedGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -4942,6 +5091,8 @@ JSC_DEFINE_CUSTOM_GETTER(RequestPrototype__headersGetterWrap, (JSGlobalObject *
thisObject->m_headers.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void RequestPrototype__headersSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -4949,6 +5100,13 @@ extern "C" void RequestPrototype__headersSetCachedValue(JSC::EncodedJSValue this
thisObject->m_headers.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue RequestPrototype__headersGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSRequest*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_headers.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(RequestPrototype__integrityGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -5080,6 +5238,8 @@ JSC_DEFINE_CUSTOM_GETTER(RequestPrototype__urlGetterWrap, (JSGlobalObject * lexi
thisObject->m_url.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void RequestPrototype__urlSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -5087,6 +5247,13 @@ extern "C" void RequestPrototype__urlSetCachedValue(JSC::EncodedJSValue thisValu
thisObject->m_url.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue RequestPrototype__urlGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSRequest*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_url.get());
+}
+
+
void JSRequestPrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObject* globalObject)
{
@@ -5186,6 +5353,7 @@ void JSRequest::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSRequest* JSRequest::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSRequest* ptr = new (NotNull, JSC::allocateCell<JSRequest>(vm)) JSRequest(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -5399,6 +5567,8 @@ JSC_DEFINE_CUSTOM_GETTER(ResponsePrototype__bodyGetterWrap, (JSGlobalObject * le
thisObject->m_body.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ResponsePrototype__bodySetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -5406,6 +5576,13 @@ extern "C" void ResponsePrototype__bodySetCachedValue(JSC::EncodedJSValue thisVa
thisObject->m_body.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ResponsePrototype__bodyGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSResponse*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_body.get());
+}
+
+
JSC_DEFINE_CUSTOM_GETTER(ResponsePrototype__bodyUsedGetterWrap, (JSGlobalObject * lexicalGlobalObject, EncodedJSValue thisValue, PropertyName attributeName))
{
@@ -5455,6 +5632,8 @@ JSC_DEFINE_CUSTOM_GETTER(ResponsePrototype__headersGetterWrap, (JSGlobalObject *
thisObject->m_headers.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ResponsePrototype__headersSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -5462,6 +5641,13 @@ extern "C" void ResponsePrototype__headersSetCachedValue(JSC::EncodedJSValue thi
thisObject->m_headers.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ResponsePrototype__headersGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSResponse*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_headers.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(ResponsePrototype__jsonCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -5537,6 +5723,8 @@ JSC_DEFINE_CUSTOM_GETTER(ResponsePrototype__statusTextGetterWrap, (JSGlobalObjec
thisObject->m_statusText.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ResponsePrototype__statusTextSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -5544,6 +5732,13 @@ extern "C" void ResponsePrototype__statusTextSetCachedValue(JSC::EncodedJSValue
thisObject->m_statusText.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ResponsePrototype__statusTextGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSResponse*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_statusText.get());
+}
+
+
JSC_DEFINE_HOST_FUNCTION(ResponsePrototype__textCallback, (JSGlobalObject * lexicalGlobalObject, CallFrame* callFrame))
{
@@ -5593,6 +5788,8 @@ JSC_DEFINE_CUSTOM_GETTER(ResponsePrototype__urlGetterWrap, (JSGlobalObject * lex
thisObject->m_url.set(vm, thisObject, result);
RELEASE_AND_RETURN(throwScope, JSValue::encode(result));
}
+
+
extern "C" void ResponsePrototype__urlSetCachedValue(JSC::EncodedJSValue thisValue, JSC::JSGlobalObject *globalObject, JSC::EncodedJSValue value)
{
auto& vm = globalObject->vm();
@@ -5600,6 +5797,13 @@ extern "C" void ResponsePrototype__urlSetCachedValue(JSC::EncodedJSValue thisVal
thisObject->m_url.set(vm, thisObject, JSValue::decode(value));
}
+extern "C" EncodedJSValue ResponsePrototype__urlGetCachedValue(JSC::EncodedJSValue thisValue)
+{
+ auto* thisObject = jsCast<JSResponse*>(JSValue::decode(thisValue));
+ return JSValue::encode(thisObject->m_url.get());
+}
+
+
void JSResponsePrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObject* globalObject)
{
@@ -5707,6 +5911,7 @@ void JSResponse::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSResponse* JSResponse::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSResponse* ptr = new (NotNull, JSC::allocateCell<JSResponse>(vm)) JSResponse(vm, structure, ctx);
ptr->finishCreation(vm);
@@ -6077,6 +6282,7 @@ void JSBlob::finishCreation(VM& vm)
ASSERT(inherits(info()));
}
+
JSBlob* JSBlob::create(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::Structure* structure, void* ctx) {
JSBlob* ptr = new (NotNull, JSC::allocateCell<JSBlob>(vm)) JSBlob(vm, structure, ctx);
ptr->finishCreation(vm);