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
QV4::CallData Struct Reference

#include <qv4calldata_p.h>

+ Collaboration diagram for QV4::CallData:

Public Types

enum  Offsets {
  Function = 0 , Context = 1 , Accumulator = 2 , This = 3 ,
  NewTarget = 4 , Argc = 5 , LastOffset = Argc , OffsetCount = LastOffset + 1
}
 

Public Member Functions

int argc () const
 
void setArgc (int argc)
 
ReturnedValue argument (int i) const
 
template<typename Value >
ValueargValues ()
 
template<typename Value >
const ValueargValues () const
 
template<>
ValueargValues ()
 
template<>
const ValueargValues () const
 

Static Public Member Functions

static constexpr int HeaderSize ()
 

Public Attributes

StaticValue function
 
StaticValue context
 
StaticValue accumulator
 
StaticValue thisObject
 
StaticValue newTarget
 
StaticValue _argc
 
StaticValue args [1]
 

Detailed Description

Definition at line 24 of file qv4calldata_p.h.

Member Enumeration Documentation

◆ Offsets

Enumerator
Function 
Context 
Accumulator 
This 
NewTarget 
Argc 
LastOffset 
OffsetCount 

Definition at line 26 of file qv4calldata_p.h.

Member Function Documentation

◆ argc()

int QV4::CallData::argc ( ) const
inline

Definition at line 45 of file qv4calldata_p.h.

References _argc, QV4::StaticValue::int_32(), QV4::StaticValue::isInteger(), and Q_ASSERT.

Referenced by argument(), QQmlJavaScriptExpression::evaluate(), QQmlV4Function::length(), QV4::numDefinedArguments(), and setArgc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ argument()

ReturnedValue QV4::CallData::argument ( int i) const
inline

Definition at line 55 of file qv4calldata_p.h.

References argc(), args, QV4::StaticValue::asReturnedValue(), i, and QV4::StaticValue::undefinedValue().

+ Here is the call graph for this function:

◆ argValues() [1/4]

template<typename Value >
Value * QV4::CallData::argValues ( )

Referenced by QQmlJavaScriptExpression::evaluate().

+ Here is the caller graph for this function:

◆ argValues() [2/4]

template<>
Value * QV4::CallData::argValues ( )
inline

Definition at line 260 of file qv4value_p.h.

References args.

◆ argValues() [3/4]

template<typename Value >
const Value * QV4::CallData::argValues ( ) const

◆ argValues() [4/4]

template<>
const Value * QV4::CallData::argValues ( ) const
inline

Definition at line 266 of file qv4value_p.h.

References args.

◆ HeaderSize()

static constexpr int QV4::CallData::HeaderSize ( )
inlinestaticconstexpr

Definition at line 62 of file qv4calldata_p.h.

References args.

Referenced by QV4::Moth::dumpRegister(), and stackValue().

+ Here is the caller graph for this function:

◆ setArgc()

void QV4::CallData::setArgc ( int argc)
inline

Definition at line 50 of file qv4calldata_p.h.

References _argc, argc(), Q_ASSERT, and QV4::StaticValue::setInt_32().

+ Here is the call graph for this function:

Member Data Documentation

◆ _argc

StaticValue QV4::CallData::_argc

Definition at line 43 of file qv4calldata_p.h.

Referenced by argc(), and setArgc().

◆ accumulator

StaticValue QV4::CallData::accumulator

Definition at line 40 of file qv4calldata_p.h.

Referenced by QV4::Runtime::PushWithContext::call().

◆ args

◆ context

StaticValue QV4::CallData::context

Definition at line 39 of file qv4calldata_p.h.

Referenced by QV4::Runtime::PushWithContext::call().

◆ function

StaticValue QV4::CallData::function

◆ newTarget

StaticValue QV4::CallData::newTarget

Definition at line 42 of file qv4calldata_p.h.

◆ thisObject

StaticValue QV4::CallData::thisObject

Definition at line 41 of file qv4calldata_p.h.

Referenced by QQmlJavaScriptExpression::evaluate().


The documentation for this struct was generated from the following files: