![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qv4vme_moth_p.h"
#include <QtCore/qjsondocument.h>
#include <QtCore/qjsonobject.h>
#include <private/qv4alloca_p.h>
#include <private/qv4instr_moth_p.h>
#include <private/qv4value_p.h>
#include <private/qv4debugging_p.h>
#include <private/qv4function_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4math_p.h>
#include <private/qv4scopedvalue_p.h>
#include <private/qv4lookup_p.h>
#include <private/qv4regexp_p.h>
#include <private/qv4regexpobject_p.h>
#include <private/qv4string_p.h>
#include <private/qv4profiling_p.h>
#include <private/qv4jscall_p.h>
#include <private/qv4generatorobject_p.h>
#include <private/qqmljavascriptexpression_p.h>
#include <private/qv4qmlcontext_p.h>
#include <QtQml/private/qv4runtime_p.h>
#include <iostream>
#include <qtqml_tracepoints_p.h>
Go to the source code of this file.
Macros | |
#define | MOTH_BEGIN_INSTR_COMMON(instr) |
#define | MOTH_BEGIN_INSTR(instr) |
#define | MOTH_END_INSTR(instr) |
#define | STACK_VALUE(temp) |
#define | CHECK_EXCEPTION |
#define | STORE_IP() |
#define | STORE_ACC() |
#define | ACC Value::fromReturnedValue(acc) |
#define | VALUE_TO_INT(i, val) |
Enumerations | |
enum | { ShowWhenDeoptimiationHappens = 0 , ShowWhenDeoptimiationHappens = 0 } |
enum | { ShowWhenDeoptimiationHappens = 0 , ShowWhenDeoptimiationHappens = 0 } |
Functions | |
Q_QML_EXPORT void | qt_v4ResolvePendingBreakpointsHook () |
Q_QML_EXPORT void | qt_v4TriggeredBreakpointHook () |
Q_QML_EXPORT int | qt_v4DebuggerHook (const char *json) |
static QV4::Value & | stackValue (QV4::Value *stack, size_t slot, const JSTypesStackFrame *frame) |
static Heap::CallContext * | getScope (QV4::Value *stack, int level) |
static const QV4::Value & | constant (Function *function, int index) |
static bool | compareEqualInt (QV4::Value &accumulator, QV4::Value lhs, int rhs) |
#define ACC Value::fromReturnedValue(acc) |
Definition at line 383 of file qv4vme_moth.cpp.
#define CHECK_EXCEPTION |
Definition at line 334 of file qv4vme_moth.cpp.
#define MOTH_BEGIN_INSTR | ( | instr | ) |
Definition at line 304 of file qv4vme_moth.cpp.
#define MOTH_BEGIN_INSTR_COMMON | ( | instr | ) |
Definition at line 295 of file qv4vme_moth.cpp.
#define MOTH_END_INSTR | ( | instr | ) |
Definition at line 313 of file qv4vme_moth.cpp.
#define STACK_VALUE | ( | temp | ) |
Definition at line 328 of file qv4vme_moth.cpp.
#define STORE_ACC | ( | ) |
Definition at line 382 of file qv4vme_moth.cpp.
#define STORE_IP | ( | ) |
Definition at line 381 of file qv4vme_moth.cpp.
#define VALUE_TO_INT | ( | i, | |
val ) |
Definition at line 384 of file qv4vme_moth.cpp.
anonymous enum |
Enumerator | |
---|---|
ShowWhenDeoptimiationHappens | |
ShowWhenDeoptimiationHappens |
Definition at line 42 of file qv4vme_moth.cpp.
anonymous enum |
Enumerator | |
---|---|
ShowWhenDeoptimiationHappens | |
ShowWhenDeoptimiationHappens |
Definition at line 42 of file qv4vme_moth.cpp.
|
static |
Definition at line 354 of file qv4vme_moth.cpp.
|
inlinestatic |
Definition at line 349 of file qv4vme_moth.cpp.
|
inlinestatic |
Definition at line 338 of file qv4vme_moth.cpp.
Q_QML_EXPORT int qt_v4DebuggerHook | ( | const char * | json | ) |
The main entry point into "Native Mixed" Debugging.
Commands are passed as UTF-8 encoded JSON data. The data has two compulsory fields: \list
version:
Version of the protocol (currently 1) command:
Name of the command \endlistDepending on command
, more fields can be present.
Error is indicated by negative return values, success by non-negative return values.
protocolVersion:
Returns version of implemented protocol.
insertBreakpoint:
Sets a breakpoint on a given file and line. \list
fullName:
Name of the QML/JS file lineNumber:
Line number in the file condition:
Breakpoint condition \endlist Returns a unique positive number as handle.removeBreakpoint:
Removes a breakpoint from a given file and line. \list
fullName:
Name of the QML/JS file lineNumber:
Line number in the file condition:
Breakpoint condition \endlist Returns zero on success, a negative number on failure.prepareStep:
Puts the interpreter in stepping mode. Returns zero.
Q_QML_EXPORT void qt_v4ResolvePendingBreakpointsHook | ( | ) |
This function is called uncondionally from VME::run().
An attached debugger can set a breakpoint here to intercept calls to VME::run().
Definition at line 57 of file qv4vme_moth.cpp.
Referenced by QV4::Moth::VME::exec(), and QV4::Moth::VME::exec().
Q_QML_EXPORT void qt_v4TriggeredBreakpointHook | ( | ) |
This function is called when a QML interpreter breakpoint is hit.
An attached debugger can set a breakpoint here.
Definition at line 69 of file qv4vme_moth.cpp.
|
inlinestatic |
Definition at line 318 of file qv4vme_moth.cpp.