Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4scopedvalue_p.h File Reference

(67bb71a051a562da1c778efa6c99cf64922adb80)

#include "qv4engine_p.h"
#include "qv4value_p.h"
#include "qv4property_p.h"
#include "qv4propertykey_p.h"
+ Include dependency graph for qv4scopedvalue_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QV4::Scope
 
struct  QV4::ScopedValue
 
struct  QV4::ScopedPropertyKey
 
struct  QV4::Scoped< T >
 
struct  QV4::ScopedProperty
 

Namespaces

namespace  QV4
 

Macros

#define SAVE_JS_STACK(ctx)   Value *__jsStack = ctx->engine->jsStackTop
 
#define CHECK_JS_STACK(ctx)   Q_ASSERT(__jsStack == ctx->engine->jsStackTop)
 
#define CHECK_EXCEPTION()
 
#define RETURN_UNDEFINED()    return QV4::Encode::undefined()
 
#define RETURN_RESULT(r)    return QV4::Encode(r)
 
#define THROW_TYPE_ERROR()    return scope.engine->throwTypeError()
 
#define THROW_GENERIC_ERROR(str)    return scope.engine->throwError(QString::fromUtf8(str))
 

Functions

bool QV4::hasExceptionOrIsInterrupted (ExecutionEngine *engine)
 

Macro Definition Documentation

◆ CHECK_EXCEPTION

#define CHECK_EXCEPTION ( )
Value:
do { \
if (hasExceptionOrIsInterrupted(scope.engine)) { \
} \
} while (false)
static constexpr ReturnedValue undefined()

Definition at line 40 of file qv4scopedvalue_p.h.

Referenced by QV4::WeakSetCtor::construct(), QV4::Moth::VME::interpret(), QV4::FunctionPrototype::method_apply(), QV4::ArrayPrototype::method_copyWithin(), QV4::ArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_every(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::IntrinsicTypedArrayPrototype::method_findIndex(), QV4::MapPrototype::method_forEach(), QV4::SetPrototype::method_forEach(), QV4::ArrayPrototype::method_from(), QV4::IntrinsicTypedArrayCtor::method_from(), QV4::ArrayPrototype::method_indexOf(), QV4::IntrinsicTypedArrayPrototype::method_indexOf(), QV4::ArrayPrototype::method_join(), QV4::IntrinsicTypedArrayPrototype::method_join(), QV4::ArrayPrototype::method_lastIndexOf(), QV4::IntrinsicTypedArrayPrototype::method_lastIndexOf(), QV4::ArrayPrototype::method_map(), QV4::IntrinsicTypedArrayPrototype::method_map(), QV4::ArrayIteratorPrototype::method_next(), QV4::ArrayPrototype::method_of(), QV4::GlobalFunctions::method_parseFloat(), QV4::GlobalFunctions::method_parseInt(), QV4::ArrayPrototype::method_pop(), QV4::ArrayPrototype::method_reduce(), QV4::IntrinsicTypedArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::IntrinsicTypedArrayPrototype::method_reduceRight(), QV4::StringPrototype::method_replace(), QV4::ArrayPrototype::method_reverse(), QV4::ArrayPrototype::method_shift(), QV4::ArrayPrototype::method_slice(), QV4::ArrayPrototype::method_some(), QV4::IntrinsicTypedArrayPrototype::method_some(), QV4::ArrayPrototype::method_splice(), QV4::JsonObject::method_stringify(), and QV4::StringCtor::virtualCallAsConstructor().

◆ CHECK_JS_STACK

#define CHECK_JS_STACK ( ctx)    Q_ASSERT(__jsStack == ctx->engine->jsStackTop)

Definition at line 29 of file qv4scopedvalue_p.h.

◆ RETURN_RESULT

#define RETURN_RESULT ( r)     return QV4::Encode(r)

Definition at line 50 of file qv4scopedvalue_p.h.

Referenced by QV4::RegExpObject::builtinExec(), QV4::RegExpPrototype::execFirstMatch(), VDMAbstractItemModelDataType::get_hasModelChildren(), QQmlAdaptorModelEngineData::get_index(), QV4::MathObject::method_abs(), QV4::MathObject::method_acos(), QV4::MathObject::method_acosh(), QQuickJSContext2DPrototype::method_arc(), QQuickJSContext2DPrototype::method_arcTo(), QV4::MathObject::method_asin(), QV4::MathObject::method_asinh(), QV4::MathObject::method_atan(), QV4::MathObject::method_atan2(), QV4::MathObject::method_atanh(), QQuickJSContext2DPrototype::method_beginPath(), QQuickJSContext2DPrototype::method_bezierCurveTo(), QV4::MathObject::method_cbrt(), QV4::MathObject::method_ceil(), QV4::StringPrototype::method_charCodeAt(), QQuickJSContext2DPrototype::method_clearRect(), QQuickJSContext2DPrototype::method_clip(), QQuickJSContext2DPrototype::method_closePath(), QV4::MathObject::method_clz32(), QV4::MathObject::method_cos(), QV4::MathObject::method_cosh(), QQuickJSContext2DPrototype::method_createConicalGradient(), QQuickJSContext2DPrototype::method_createImageData(), QQuickJSContext2DPrototype::method_createLinearGradient(), QQuickJSContext2DPrototype::method_createPattern(), QQuickJSContext2DPrototype::method_createRadialGradient(), QV4::GlobalFunctions::method_decodeURI(), QV4::GlobalFunctions::method_decodeURIComponent(), QQuickJSContext2DPrototype::method_drawImage(), QQuickJSContext2DPrototype::method_ellipse(), QV4::GlobalFunctions::method_encodeURI(), QV4::GlobalFunctions::method_encodeURIComponent(), QV4::StringPrototype::method_endsWith(), QV4::GlobalFunctions::method_escape(), QV4::MathObject::method_exp(), QV4::MathObject::method_expm1(), QQuickJSContext2DPrototype::method_fill(), QQuickJSContext2DPrototype::method_fillRect(), QQuickJSContext2DPrototype::method_fillText(), QV4::MathObject::method_floor(), QV4::MathObject::method_fround(), QQuickJSContext2DPrototype::method_get_canvas(), QQuickJSContext2DImageData::method_get_data(), QQuickJSContext2D::method_get_fillRule(), QQuickJSContext2D::method_get_fillStyle(), QQuickJSContext2D::method_get_font(), QQuickJSContext2D::method_get_globalAlpha(), QQuickJSContext2D::method_get_globalCompositeOperation(), QQuickJSContext2DImageData::method_get_height(), QV4::method_get_length(), QQuickJSContext2D::method_get_lineCap(), QQuickJSContext2D::method_get_lineDashOffset(), QQuickJSContext2D::method_get_lineJoin(), QQuickJSContext2D::method_get_lineWidth(), QQuickJSContext2D::method_get_miterLimit(), QV4::NodePrototype::method_get_nextSibling(), QV4::NodePrototype::method_get_nodeValue(), QV4::NodePrototype::method_get_previousSibling(), QV4::QQmlXMLHttpRequestCtor::method_get_response(), QQuickJSContext2D::method_get_shadowBlur(), QQuickJSContext2D::method_get_shadowColor(), QQuickJSContext2D::method_get_shadowOffsetX(), QQuickJSContext2D::method_get_shadowOffsetY(), QQuickJSContext2D::method_get_strokeStyle(), QQuickJSContext2D::method_get_textAlign(), QQuickJSContext2D::method_get_textBaseline(), QQuickJSContext2DImageData::method_get_width(), QQuickJSContext2DPrototype::method_getImageData(), QQuickJSContext2DPrototype::method_getLineDash(), QV4::MathObject::method_hypot(), QV4::MathObject::method_imul(), QV4::StringPrototype::method_includes(), QV4::GlobalFunctions::method_isFinite(), QV4::GlobalFunctions::method_isNaN(), QQuickJSContext2DPrototype::method_isPointInPath(), QV4::StringPrototype::method_lastIndexOf(), QQuickJSContext2DPrototype::method_lineTo(), QV4::MathObject::method_log(), QV4::MathObject::method_log10(), QV4::MathObject::method_log1p(), QV4::MathObject::method_log2(), QV4::MathObject::method_max(), QQuickJSContext2DPrototype::method_measureText(), QV4::MathObject::method_min(), QQuickJSContext2DPrototype::method_moveTo(), QV4::JsonObject::method_parse(), QV4::GlobalFunctions::method_parseFloat(), QV4::GlobalFunctions::method_parseInt(), QV4::MathObject::method_pow(), QQuickJSContext2DPrototype::method_putImageData(), QQuickJSContext2DPrototype::method_quadraticCurveTo(), QV4::MathObject::method_random(), QQuickJSContext2DPrototype::method_rect(), QQuickJSContext2DPrototype::method_reset(), QQuickJSContext2DPrototype::method_resetTransform(), QQuickJSContext2DPrototype::method_restore(), QQuickJSContext2DPrototype::method_rotate(), QV4::MathObject::method_round(), QQuickJSContext2DPrototype::method_roundedRect(), QQuickJSContext2DPrototype::method_save(), QQuickJSContext2DPrototype::method_scale(), QV4::IntrinsicTypedArrayPrototype::method_set(), QQuickJSContext2DPrototype::method_setTransform(), QQuickJSContext2DPrototype::method_shear(), QV4::MathObject::method_sign(), QV4::MathObject::method_sin(), QV4::MathObject::method_sinh(), QV4::StringPrototype::method_split(), QV4::MathObject::method_sqrt(), QV4::StringPrototype::method_startsWith(), QV4::GlobalExtensions::method_string_arg(), QQuickJSContext2DPrototype::method_stroke(), QQuickJSContext2DPrototype::method_strokeRect(), QQuickJSContext2DPrototype::method_strokeText(), QV4::MathObject::method_tan(), QV4::MathObject::method_tanh(), QQuickJSContext2DPrototype::method_text(), QV4::DatePrototype::method_toISOString(), QQuickJSContext2DPrototype::method_transform(), QQuickJSContext2DPrototype::method_translate(), QV4::MathObject::method_trunc(), QV4::GlobalFunctions::method_unescape(), QQuickJSContext2DPixelData::proto_get_length(), qmlsqldatabase_changeVersion(), qmlsqldatabase_executeSql(), qmlsqldatabase_rows_forwardOnly(), qmlsqldatabase_rows_item(), qmlsqldatabase_rows_length(), qmlsqldatabase_rows_setForwardOnly(), and qmlsqldatabase_version().

◆ RETURN_UNDEFINED

#define RETURN_UNDEFINED ( )     return QV4::Encode::undefined()

Definition at line 47 of file qv4scopedvalue_p.h.

Referenced by QV4::RegExpPrototype::exec(), firstOrLastIndexOf(), QQmlDelegateModelItem::get_model(), QQuickJSContext2DPrototype::method_bezierCurveTo(), QV4::ArrayPrototype::method_concat(), QV4::QObjectWrapper::method_connect(), QV4::ArrayPrototype::method_copyWithin(), QQuickJSContext2DPrototype::method_createImageData(), QQuickJSContext2DPrototype::method_createPattern(), QV4::GlobalFunctions::method_decodeURI(), QV4::GlobalFunctions::method_decodeURIComponent(), QV4::ObjectPrototype::method_defineGetter(), QV4::ObjectPrototype::method_defineSetter(), QV4::VariantPrototype::method_destroy(), QV4::QObjectWrapper::method_disconnect(), QV4::Document::method_documentElement(), QQuickJSContext2DPrototype::method_drawImage(), QV4::GlobalFunctions::method_encodeURI(), QV4::GlobalFunctions::method_encodeURIComponent(), QV4::ArrayPrototype::method_entries(), QV4::ArrayPrototype::method_every(), QV4::RegExpPrototype::method_exec(), QV4::ArrayPrototype::method_fill(), QQuickJSContext2DPrototype::method_fillText(), QV4::ArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::QmlIncubatorObject::method_forceCompletion(), QV4::ArrayPrototype::method_forEach(), QV4::IntrinsicTypedArrayPrototype::method_forEach(), QV4::PropertyListPrototype::method_get_length(), QQmlDelegateModelGroupChange::method_get_moveId(), QV4::ArrayPrototype::method_includes(), QV4::ArrayPrototype::method_indexOf(), QV4::Text::method_isElementContentWhitespace(), QV4::ArrayPrototype::method_keys(), QV4::ArrayPrototype::method_lastIndexOf(), QV4::CharacterData::method_length(), QQuickJSContext2DPrototype::method_lineTo(), QV4::ArrayPrototype::method_map(), QQuickJSContext2DPrototype::method_measureText(), QQuickJSContext2DPrototype::method_moveTo(), QV4::Attr::method_name(), QV4::Attr::method_ownerElement(), QV4::ArrayPrototype::method_pop(), QV4::PropertyListPrototype::method_pop(), QV4::VariantPrototype::method_preserve(), QV4::ArrayPrototype::method_push(), QV4::PropertyListPrototype::method_push(), QQuickJSContext2DPrototype::method_putImageData(), QQuickJSContext2DPrototype::method_quadraticCurveTo(), QV4::ArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::ArrayPrototype::method_reverse(), QV4::DataViewPrototype::method_set(), QV4::IntrinsicTypedArrayPrototype::method_set(), QQuickJSContext2D::method_set_fillRule(), QQuickJSContext2D::method_set_fillStyle(), QQuickJSContext2D::method_set_font(), QQuickJSContext2D::method_set_globalAlpha(), QQuickJSContext2D::method_set_globalCompositeOperation(), QV4::PropertyListPrototype::method_set_length(), QV4::method_set_length(), QQuickJSContext2D::method_set_lineCap(), QQuickJSContext2D::method_set_lineDashOffset(), QQuickJSContext2D::method_set_lineJoin(), QQuickJSContext2D::method_set_lineWidth(), QQuickJSContext2D::method_set_miterLimit(), QV4::ObjectPrototype::method_set_proto(), QQuickJSContext2D::method_set_shadowBlur(), QQuickJSContext2D::method_set_shadowColor(), QQuickJSContext2D::method_set_shadowOffsetX(), QQuickJSContext2D::method_set_shadowOffsetY(), QV4::QmlIncubatorObject::method_set_statusChanged(), QQuickJSContext2D::method_set_strokeStyle(), QQuickJSContext2D::method_set_textAlign(), QQuickJSContext2D::method_set_textBaseline(), QV4::DataViewPrototype::method_setChar(), QV4::DataViewPrototype::method_setFloat(), QQuickJSContext2DPrototype::method_setLineDash(), QV4::QQmlXMLHttpRequestCtor::method_setRequestHeader(), QV4::ArrayPrototype::method_shift(), QV4::PropertyListPrototype::method_shift(), QV4::ArrayPrototype::method_slice(), QV4::ArrayPrototype::method_some(), QV4::ArrayPrototype::method_sort(), QV4::PropertyListPrototype::method_sort(), QV4::ArrayPrototype::method_splice(), QV4::PropertyListPrototype::method_splice(), QV4::JsonObject::method_stringify(), QV4::IntrinsicTypedArrayPrototype::method_subarray(), QQuickJSContext2DPrototype::method_text(), QV4::ObjectPrototype::method_toLocaleString(), QV4::ArrayBufferPrototype::method_toString(), QV4::VariantPrototype::method_toString(), QV4::QQmlValueTypeWrapper::method_toString(), QV4::ArrayPrototype::method_unshift(), QV4::PropertyListPrototype::method_unshift(), QV4::Attr::method_value(), QV4::ArrayPrototype::method_values(), QV4::Text::method_wholeText(), QV4::Document::method_xmlEncoding(), QV4::Document::method_xmlStandalone(), QV4::Document::method_xmlVersion(), QQuickJSContext2DPixelData::proto_get_length(), qmlsqldatabase_changeVersion(), qmlsqldatabase_rows_setForwardOnly(), qmlsqldatabase_transaction_shared(), and QQmlDelegateModelItem::set_groups().

◆ SAVE_JS_STACK

#define SAVE_JS_STACK ( ctx)    Value *__jsStack = ctx->engine->jsStackTop

Definition at line 28 of file qv4scopedvalue_p.h.

◆ THROW_GENERIC_ERROR

◆ THROW_TYPE_ERROR

#define THROW_TYPE_ERROR ( )     return scope.engine->throwTypeError()

Definition at line 53 of file qv4scopedvalue_p.h.

Referenced by firstOrLastIndexOf(), QV4::PromiseCtor::method_all(), QV4::PromisePrototype::method_catch(), QV4::ObjectPrototype::method_defineGetter(), QV4::ObjectPrototype::method_defineProperties(), QV4::ObjectPrototype::method_defineProperty(), QV4::ObjectPrototype::method_defineSetter(), QV4::ArrayPrototype::method_every(), QV4::IntrinsicTypedArrayPrototype::method_every(), QV4::ArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::ArrayPrototype::method_find(), QV4::IntrinsicTypedArrayPrototype::method_find(), QV4::ArrayPrototype::method_findIndex(), QV4::IntrinsicTypedArrayPrototype::method_findIndex(), QV4::QmlIncubatorObject::method_forceCompletion(), QV4::ArrayPrototype::method_forEach(), QV4::IntrinsicTypedArrayPrototype::method_forEach(), QV4::NodePrototype::method_get_attributes(), QV4::NodePrototype::method_get_childNodes(), QQmlDelegateModelGroupChange::method_get_count(), QQuickJSContext2DImageData::method_get_data(), QV4::NodePrototype::method_get_firstChild(), QQuickJSContext2DImageData::method_get_height(), QQmlDelegateModelGroupChange::method_get_index(), QV4::NodePrototype::method_get_lastChild(), QV4::method_get_length(), QQmlDelegateModelGroupChange::method_get_moveId(), QV4::NodePrototype::method_get_namespaceUri(), QV4::NodePrototype::method_get_nextSibling(), QV4::NodePrototype::method_get_nodeName(), QV4::NodePrototype::method_get_nodeType(), QV4::NodePrototype::method_get_nodeValue(), QV4::QmlIncubatorObject::method_get_object(), QV4::NodePrototype::method_get_parentNode(), QV4::NodePrototype::method_get_previousSibling(), QV4::ObjectPrototype::method_get_proto(), QV4::QmlIncubatorObject::method_get_status(), QV4::QmlIncubatorObject::method_get_statusChanged(), QQuickJSContext2DImageData::method_get_width(), QV4::ArrayPrototype::method_map(), QV4::IntrinsicTypedArrayPrototype::method_map(), QV4::PropertyListPrototype::method_push(), QV4::PromiseCtor::method_race(), QV4::ArrayPrototype::method_reduce(), QV4::IntrinsicTypedArrayPrototype::method_reduce(), QV4::ArrayPrototype::method_reduceRight(), QV4::IntrinsicTypedArrayPrototype::method_reduceRight(), QV4::PromiseCtor::method_reject(), QV4::PromiseCtor::method_resolve(), QQuickJSContext2D::method_set_globalCompositeOperation(), QV4::method_set_length(), QQuickJSContext2D::method_set_lineJoin(), QV4::ObjectPrototype::method_set_proto(), QV4::QmlIncubatorObject::method_set_statusChanged(), QV4::ArrayPrototype::method_some(), QV4::IntrinsicTypedArrayPrototype::method_some(), QV4::SequencePrototype::method_sort(), QV4::PropertyListPrototype::method_sort(), QV4::PropertyListPrototype::method_splice(), QV4::PromisePrototype::method_then(), QV4::ObjectPrototype::method_toLocaleString(), QV4::PropertyListPrototype::method_unshift(), QQmlDelegateModelItem::set_groups(), QV4::PromiseCtor::virtualCall(), QV4::CapabilitiesExecutorWrapper::virtualCall(), and QV4::PromiseCtor::virtualCallAsConstructor().