From 1c61e70a0c0f1718c538c04dcc80dd3039ccd384 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Fri, 24 Aug 2018 15:41:53 +0200 Subject: ES7: Detect Tail Position Calls and pass that to the runtime Doing the tail call in the runtime will come in a follow-up patch Change-Id: I8224aac0edbdc765ee9b97703948edd52fd33f3e Reviewed-by: Simon Hausmann --- src/qml/compiler/qv4bytecodehandler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/compiler/qv4bytecodehandler.cpp') diff --git a/src/qml/compiler/qv4bytecodehandler.cpp b/src/qml/compiler/qv4bytecodehandler.cpp index 65293becfd..9cf96d27f3 100644 --- a/src/qml/compiler/qv4bytecodehandler.cpp +++ b/src/qml/compiler/qv4bytecodehandler.cpp @@ -542,6 +542,9 @@ std::vector ByteCodeHandler::collectLabelsInBytecode(const char *code, uint COLLECTOR_BEGIN_INSTR(LoadQmlImportedScripts) COLLECTOR_END_INSTR(LoadQmlImportedScripts) + + COLLECTOR_BEGIN_INSTR(TailCall) + COLLECTOR_END_INSTR(TailCall) } return labels; -- cgit v1.2.3