From 3c201dd0d95020c4cb4c8ceaf779673d411664e7 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 16 Aug 2017 21:24:33 +0200 Subject: Specialize possible direct calls to eval To avoid additional overhead on most function calls Change-Id: I2477b91fda6216b508c8331884a02b601f65590c Reviewed-by: Erik Verbruggen --- src/qml/compiler/qv4instr_moth_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/compiler/qv4instr_moth_p.h') diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 3d004d10e9..2ce0ff7b22 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -110,6 +110,7 @@ QT_BEGIN_NAMESPACE F(CallPropertyLookup, callPropertyLookup) \ F(CallElement, callElement) \ F(CallName, callName) \ + F(CallPossiblyDirectEval, callPossiblyDirectEval) \ F(CallGlobalLookup, callGlobalLookup) \ F(SetExceptionHandler, setExceptionHandler) \ F(ThrowException, throwException) \ @@ -440,6 +441,10 @@ union Instr int name; StackSlot callData; }; + struct instr_callPossiblyDirectEval { + MOTH_INSTR_HEADER + StackSlot callData; + }; struct instr_callGlobalLookup { MOTH_INSTR_HEADER int index; @@ -750,6 +755,7 @@ union Instr instr_callPropertyLookup callPropertyLookup; instr_callElement callElement; instr_callName callName; + instr_callPossiblyDirectEval callPossiblyDirectEval; instr_callGlobalLookup callGlobalLookup; instr_throwException throwException; instr_getException getException; -- cgit v1.2.3