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::CompiledData::Function Struct Reference

#include <qv4compileddata_p.h>

+ Collaboration diagram for QV4::CompiledData::Function:

Public Types

enum  Flags : unsigned int { IsStrict = 0x1 , IsArrowFunction = 0x2 , IsGenerator = 0x4 , IsClosureWrapper = 0x8 }
 

Public Member Functions

size_t lineAndStatementNumberOffset () const
 
size_t labelInfosOffset () const
 
const ParameterformalsTable () const
 
const quint32_lelocalsTable () const
 
const CodeOffsetToLineAndStatementlineAndStatementNumberTable () const
 
const ParameterformalsBegin () const
 
const ParameterformalsEnd () const
 
const quint32_lelabelInfoTable () const
 
const char * code () const
 

Static Public Member Functions

static int calculateSize (int nFormals, int nLocals, int nLinesAndStatements, int nInnerfunctions, int labelInfoSize, int codeSize)
 
static size_t align (size_t a)
 

Public Attributes

quint32_le codeOffset
 
quint32_le codeSize
 
quint32_le nameIndex
 
quint16_le length
 
quint16_le nFormals
 
quint32_le formalsOffset
 
ParameterType returnType
 
quint32_le localsOffset
 
quint16_le nLocals
 
quint16_le nLineAndStatementNumbers
 
quint32_le nestedFunctionIndex
 
quint32_le nRegisters
 
Location location
 
quint32_le nLabelInfos
 
quint16_le sizeOfLocalTemporalDeadZone
 
quint16_le firstTemporalDeadZoneRegister
 
quint16_le sizeOfRegisterTemporalDeadZone
 
quint8 flags
 
quint8 padding1
 

Detailed Description

Definition at line 362 of file qv4compileddata_p.h.

Member Enumeration Documentation

◆ Flags

Enumerator
IsStrict 
IsArrowFunction 
IsGenerator 
IsClosureWrapper 

Definition at line 364 of file qv4compileddata_p.h.

Member Function Documentation

◆ align()

static size_t QV4::CompiledData::Function::align ( size_t a)
inlinestatic

Definition at line 443 of file qv4compileddata_p.h.

Referenced by calculateSize().

+ Here is the caller graph for this function:

◆ calculateSize()

static int QV4::CompiledData::Function::calculateSize ( int nFormals,
int nLocals,
int nLinesAndStatements,
int nInnerfunctions,
int labelInfoSize,
int codeSize )
inlinestatic

Definition at line 431 of file qv4compileddata_p.h.

References align(), codeSize, nFormals, nLocals, and Q_ASSERT.

+ Here is the call graph for this function:

◆ code()

const char * QV4::CompiledData::Function::code ( ) const
inline

Definition at line 429 of file qv4compileddata_p.h.

References codeOffset.

◆ formalsBegin()

const Parameter * QV4::CompiledData::Function::formalsBegin ( ) const
inline

Definition at line 423 of file qv4compileddata_p.h.

References formalsTable().

+ Here is the call graph for this function:

◆ formalsEnd()

const Parameter * QV4::CompiledData::Function::formalsEnd ( ) const
inline

Definition at line 424 of file qv4compileddata_p.h.

References formalsTable(), and nFormals.

+ Here is the call graph for this function:

◆ formalsTable()

const Parameter * QV4::CompiledData::Function::formalsTable ( ) const
inline

Definition at line 406 of file qv4compileddata_p.h.

References formalsOffset.

Referenced by QV4::Function::Function(), QV4::coerceAndCall(), formalsBegin(), and formalsEnd().

+ Here is the caller graph for this function:

◆ labelInfosOffset()

size_t QV4::CompiledData::Function::labelInfosOffset ( ) const
inline

Definition at line 394 of file qv4compileddata_p.h.

References lineAndStatementNumberOffset(), and nLineAndStatementNumbers.

Referenced by labelInfoTable().

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

◆ labelInfoTable()

const quint32_le * QV4::CompiledData::Function::labelInfoTable ( ) const
inline

Definition at line 427 of file qv4compileddata_p.h.

References labelInfosOffset().

+ Here is the call graph for this function:

◆ lineAndStatementNumberOffset()

size_t QV4::CompiledData::Function::lineAndStatementNumberOffset ( ) const
inline

Definition at line 383 of file qv4compileddata_p.h.

References localsOffset, and nLocals.

Referenced by labelInfosOffset(), and lineAndStatementNumberTable().

+ Here is the caller graph for this function:

◆ lineAndStatementNumberTable()

const CodeOffsetToLineAndStatement * QV4::CompiledData::Function::lineAndStatementNumberTable ( ) const
inline

Definition at line 416 of file qv4compileddata_p.h.

References lineAndStatementNumberOffset().

Referenced by lineAndStatement().

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

◆ localsTable()

const quint32_le * QV4::CompiledData::Function::localsTable ( ) const
inline

Definition at line 411 of file qv4compileddata_p.h.

References localsOffset.

Referenced by QV4::Function::Function(), and QV4::Function::updateInternalClass().

+ Here is the caller graph for this function:

Member Data Documentation

◆ codeOffset

quint32_le QV4::CompiledData::Function::codeOffset

Definition at line 372 of file qv4compileddata_p.h.

Referenced by code().

◆ codeSize

quint32_le QV4::CompiledData::Function::codeSize

Definition at line 373 of file qv4compileddata_p.h.

Referenced by calculateSize().

◆ firstTemporalDeadZoneRegister

quint16_le QV4::CompiledData::Function::firstTemporalDeadZoneRegister

Definition at line 391 of file qv4compileddata_p.h.

◆ flags

◆ formalsOffset

quint32_le QV4::CompiledData::Function::formalsOffset

Definition at line 378 of file qv4compileddata_p.h.

Referenced by formalsTable().

◆ length

quint16_le QV4::CompiledData::Function::length

Definition at line 376 of file qv4compileddata_p.h.

◆ localsOffset

quint32_le QV4::CompiledData::Function::localsOffset

Definition at line 380 of file qv4compileddata_p.h.

Referenced by lineAndStatementNumberOffset(), and localsTable().

◆ location

Location QV4::CompiledData::Function::location

Definition at line 387 of file qv4compileddata_p.h.

Referenced by QV4::Function::sourceLocation().

◆ nameIndex

quint32_le QV4::CompiledData::Function::nameIndex

◆ nestedFunctionIndex

quint32_le QV4::CompiledData::Function::nestedFunctionIndex

Definition at line 384 of file qv4compileddata_p.h.

Referenced by QV4::Function::nestedFunction().

◆ nFormals

quint16_le QV4::CompiledData::Function::nFormals

Definition at line 377 of file qv4compileddata_p.h.

Referenced by QV4::Function::Function(), calculateSize(), and formalsEnd().

◆ nLabelInfos

quint32_le QV4::CompiledData::Function::nLabelInfos

Definition at line 388 of file qv4compileddata_p.h.

◆ nLineAndStatementNumbers

quint16_le QV4::CompiledData::Function::nLineAndStatementNumbers

Definition at line 382 of file qv4compileddata_p.h.

Referenced by labelInfosOffset(), and lineAndStatement().

◆ nLocals

◆ nRegisters

quint32_le QV4::CompiledData::Function::nRegisters

◆ padding1

quint8 QV4::CompiledData::Function::padding1

Definition at line 401 of file qv4compileddata_p.h.

◆ returnType

ParameterType QV4::CompiledData::Function::returnType

Definition at line 379 of file qv4compileddata_p.h.

Referenced by QV4::Function::Function(), and QV4::coerceAndCall().

◆ sizeOfLocalTemporalDeadZone

quint16_le QV4::CompiledData::Function::sizeOfLocalTemporalDeadZone

Definition at line 390 of file qv4compileddata_p.h.

◆ sizeOfRegisterTemporalDeadZone

quint16_le QV4::CompiledData::Function::sizeOfRegisterTemporalDeadZone

Definition at line 392 of file qv4compileddata_p.h.


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