|
Lines 7157-7169
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAny(ExecState* state)
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec1
|
| 7157 |
return JSValue::encode(jsUndefined()); |
7157 |
return JSValue::encode(jsUndefined()); |
| 7158 |
} |
7158 |
} |
| 7159 |
|
7159 |
|
| 7160 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7160 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7161 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* state) |
7161 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* state) |
| 7162 |
{ |
7162 |
{ |
| 7163 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionPromise)); |
7163 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionPromise)); |
| 7164 |
} |
7164 |
} |
| 7165 |
|
7165 |
|
| 7166 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7166 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7167 |
{ |
7167 |
{ |
| 7168 |
VM& vm = state->vm(); |
7168 |
VM& vm = state->vm(); |
| 7169 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7169 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7174-7190
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromis
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec2
|
| 7174 |
return throwThisTypeError(*state, throwScope, "TestObject", "testPromiseFunction"); |
7174 |
return throwThisTypeError(*state, throwScope, "TestObject", "testPromiseFunction"); |
| 7175 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
7175 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
| 7176 |
auto& impl = castedThis->wrapped(); |
7176 |
auto& impl = castedThis->wrapped(); |
| 7177 |
impl.testPromiseFunction(WTFMove(deferredWrapper)); |
7177 |
impl.testPromiseFunction(WTFMove(deferredPromise)); |
| 7178 |
return JSValue::encode(jsUndefined()); |
7178 |
return JSValue::encode(jsUndefined()); |
| 7179 |
} |
7179 |
} |
| 7180 |
|
7180 |
|
| 7181 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState*, Ref<DeferredWrapper>&&); |
7181 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7182 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* state) |
7182 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* state) |
| 7183 |
{ |
7183 |
{ |
| 7184 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise)); |
7184 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise)); |
| 7185 |
} |
7185 |
} |
| 7186 |
|
7186 |
|
| 7187 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7187 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7188 |
{ |
7188 |
{ |
| 7189 |
VM& vm = state->vm(); |
7189 |
VM& vm = state->vm(); |
| 7190 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7190 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7200-7216
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFl
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec3
|
| 7200 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
7200 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
| 7201 |
if (UNLIKELY(throwScope.exception())) |
7201 |
if (UNLIKELY(throwScope.exception())) |
| 7202 |
return JSValue::encode(jsUndefined()); |
7202 |
return JSValue::encode(jsUndefined()); |
| 7203 |
impl.testPromiseFunctionWithFloatArgument(WTFMove(a), WTFMove(deferredWrapper)); |
7203 |
impl.testPromiseFunctionWithFloatArgument(WTFMove(a), WTFMove(deferredPromise)); |
| 7204 |
return JSValue::encode(jsUndefined()); |
7204 |
return JSValue::encode(jsUndefined()); |
| 7205 |
} |
7205 |
} |
| 7206 |
|
7206 |
|
| 7207 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7207 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7208 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* state) |
7208 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* state) |
| 7209 |
{ |
7209 |
{ |
| 7210 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise)); |
7210 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise)); |
| 7211 |
} |
7211 |
} |
| 7212 |
|
7212 |
|
| 7213 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7213 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7214 |
{ |
7214 |
{ |
| 7215 |
VM& vm = state->vm(); |
7215 |
VM& vm = state->vm(); |
| 7216 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7216 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7222-7239
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithEx
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec4
|
| 7222 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
7222 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
| 7223 |
auto& impl = castedThis->wrapped(); |
7223 |
auto& impl = castedThis->wrapped(); |
| 7224 |
ExceptionCode ec = 0; |
7224 |
ExceptionCode ec = 0; |
| 7225 |
impl.testPromiseFunctionWithException(WTFMove(deferredWrapper), ec); |
7225 |
impl.testPromiseFunctionWithException(WTFMove(deferredPromise), ec); |
| 7226 |
setDOMException(state, ec); |
7226 |
setDOMException(state, ec); |
| 7227 |
return JSValue::encode(jsUndefined()); |
7227 |
return JSValue::encode(jsUndefined()); |
| 7228 |
} |
7228 |
} |
| 7229 |
|
7229 |
|
| 7230 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState*, Ref<DeferredWrapper>&&); |
7230 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7231 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* state) |
7231 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* state) |
| 7232 |
{ |
7232 |
{ |
| 7233 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise)); |
7233 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise)); |
| 7234 |
} |
7234 |
} |
| 7235 |
|
7235 |
|
| 7236 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7236 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7237 |
{ |
7237 |
{ |
| 7238 |
VM& vm = state->vm(); |
7238 |
VM& vm = state->vm(); |
| 7239 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7239 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7247-7263
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOp
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec5
|
| 7247 |
auto a = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
7247 |
auto a = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
| 7248 |
if (UNLIKELY(throwScope.exception())) |
7248 |
if (UNLIKELY(throwScope.exception())) |
| 7249 |
return JSValue::encode(jsUndefined()); |
7249 |
return JSValue::encode(jsUndefined()); |
| 7250 |
impl.testPromiseFunctionWithOptionalIntArgument(WTFMove(a), WTFMove(deferredWrapper)); |
7250 |
impl.testPromiseFunctionWithOptionalIntArgument(WTFMove(a), WTFMove(deferredPromise)); |
| 7251 |
return JSValue::encode(jsUndefined()); |
7251 |
return JSValue::encode(jsUndefined()); |
| 7252 |
} |
7252 |
} |
| 7253 |
|
7253 |
|
| 7254 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState*, Ref<DeferredWrapper>&&); |
7254 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7255 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1(ExecState* state) |
7255 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1(ExecState* state) |
| 7256 |
{ |
7256 |
{ |
| 7257 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise)); |
7257 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise)); |
| 7258 |
} |
7258 |
} |
| 7259 |
|
7259 |
|
| 7260 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7260 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7261 |
{ |
7261 |
{ |
| 7262 |
VM& vm = state->vm(); |
7262 |
VM& vm = state->vm(); |
| 7263 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7263 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7273-7289
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec6
|
| 7273 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
7273 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
| 7274 |
if (UNLIKELY(throwScope.exception())) |
7274 |
if (UNLIKELY(throwScope.exception())) |
| 7275 |
return JSValue::encode(jsUndefined()); |
7275 |
return JSValue::encode(jsUndefined()); |
| 7276 |
impl.testPromiseOverloadedFunction(WTFMove(a), WTFMove(deferredWrapper)); |
7276 |
impl.testPromiseOverloadedFunction(WTFMove(a), WTFMove(deferredPromise)); |
| 7277 |
return JSValue::encode(jsUndefined()); |
7277 |
return JSValue::encode(jsUndefined()); |
| 7278 |
} |
7278 |
} |
| 7279 |
|
7279 |
|
| 7280 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState*, Ref<DeferredWrapper>&&); |
7280 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7281 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2(ExecState* state) |
7281 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2(ExecState* state) |
| 7282 |
{ |
7282 |
{ |
| 7283 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise)); |
7283 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise)); |
| 7284 |
} |
7284 |
} |
| 7285 |
|
7285 |
|
| 7286 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7286 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7287 |
{ |
7287 |
{ |
| 7288 |
VM& vm = state->vm(); |
7288 |
VM& vm = state->vm(); |
| 7289 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7289 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7299-7305
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec7
|
| 7299 |
auto request = JSFetchRequest::toWrapped(state->argument(0)); |
7299 |
auto request = JSFetchRequest::toWrapped(state->argument(0)); |
| 7300 |
if (UNLIKELY(!request)) |
7300 |
if (UNLIKELY(!request)) |
| 7301 |
return throwArgumentTypeError(*state, throwScope, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest"); |
7301 |
return throwArgumentTypeError(*state, throwScope, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest"); |
| 7302 |
impl.testPromiseOverloadedFunction(*request, WTFMove(deferredWrapper)); |
7302 |
impl.testPromiseOverloadedFunction(*request, WTFMove(deferredPromise)); |
| 7303 |
return JSValue::encode(jsUndefined()); |
7303 |
return JSValue::encode(jsUndefined()); |
| 7304 |
} |
7304 |
} |
| 7305 |
|
7305 |
|
|
Lines 7320-7353
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec8
|
| 7320 |
return argsCount < 1 ? throwVMError(state, throwScope, createNotEnoughArgumentsError(state)) : throwVMTypeError(state, throwScope); |
7320 |
return argsCount < 1 ? throwVMError(state, throwScope, createNotEnoughArgumentsError(state)) : throwVMTypeError(state, throwScope); |
| 7321 |
} |
7321 |
} |
| 7322 |
|
7322 |
|
| 7323 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7323 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7324 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunction(ExecState* state) |
7324 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunction(ExecState* state) |
| 7325 |
{ |
7325 |
{ |
| 7326 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise)); |
7326 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise)); |
| 7327 |
} |
7327 |
} |
| 7328 |
|
7328 |
|
| 7329 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7329 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7330 |
{ |
7330 |
{ |
| 7331 |
VM& vm = state->vm(); |
7331 |
VM& vm = state->vm(); |
| 7332 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7332 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 7333 |
UNUSED_PARAM(throwScope); |
7333 |
UNUSED_PARAM(throwScope); |
| 7334 |
TestObj::testStaticPromiseFunction(WTFMove(deferredWrapper)); |
7334 |
TestObj::testStaticPromiseFunction(WTFMove(deferredPromise)); |
| 7335 |
return JSValue::encode(jsUndefined()); |
7335 |
return JSValue::encode(jsUndefined()); |
| 7336 |
} |
7336 |
} |
| 7337 |
|
7337 |
|
| 7338 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7338 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState*, Ref<DOMDeferredPromise>&&); |
| 7339 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunctionWithException(ExecState* state) |
7339 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunctionWithException(ExecState* state) |
| 7340 |
{ |
7340 |
{ |
| 7341 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise)); |
7341 |
return JSValue::encode(callPromiseFunction(*state, jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise)); |
| 7342 |
} |
7342 |
} |
| 7343 |
|
7343 |
|
| 7344 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7344 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DOMDeferredPromise>&& deferredPromise) |
| 7345 |
{ |
7345 |
{ |
| 7346 |
VM& vm = state->vm(); |
7346 |
VM& vm = state->vm(); |
| 7347 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7347 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 7348 |
UNUSED_PARAM(throwScope); |
7348 |
UNUSED_PARAM(throwScope); |
| 7349 |
ExceptionCode ec = 0; |
7349 |
ExceptionCode ec = 0; |
| 7350 |
TestObj::testStaticPromiseFunctionWithException(WTFMove(deferredWrapper), ec); |
7350 |
TestObj::testStaticPromiseFunctionWithException(WTFMove(deferredPromise), ec); |
| 7351 |
setDOMException(state, ec); |
7351 |
setDOMException(state, ec); |
| 7352 |
return JSValue::encode(jsUndefined()); |
7352 |
return JSValue::encode(jsUndefined()); |
| 7353 |
} |
7353 |
} |