From 0562ece42df80cd3ffe3c3fe6b2097202fe65500 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 6 Jun 2018 14:48:24 +0200 Subject: Unify DeleteMember and DeleteSubscript instructions The delete operator is rarely used, so it's simpler to unify these into one DeleteProperty instruction. Change-Id: I8c0d4455b35efb03db2ab0010df70030d774a6ae Reviewed-by: Simon Hausmann --- src/qml/compiler/qv4bytecodehandler.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/qml/compiler/qv4bytecodehandler.cpp') diff --git a/src/qml/compiler/qv4bytecodehandler.cpp b/src/qml/compiler/qv4bytecodehandler.cpp index 5709d84f58..18fef62dab 100644 --- a/src/qml/compiler/qv4bytecodehandler.cpp +++ b/src/qml/compiler/qv4bytecodehandler.cpp @@ -325,11 +325,8 @@ std::vector ByteCodeHandler::collectLabelsInBytecode(const char *code, uint COLLECTOR_BEGIN_INSTR(DestructureRestElement) COLLECTOR_END_INSTR(DestructureRestElement) - COLLECTOR_BEGIN_INSTR(DeleteMember) - COLLECTOR_END_INSTR(DeleteMember) - - COLLECTOR_BEGIN_INSTR(DeleteSubscript) - COLLECTOR_END_INSTR(DeleteSubscript) + COLLECTOR_BEGIN_INSTR(DeleteProperty) + COLLECTOR_END_INSTR(DeleteProperty) COLLECTOR_BEGIN_INSTR(DeleteName) COLLECTOR_END_INSTR(DeleteName) -- cgit v1.2.3