From 11134b4173ce318337d6c37e017f3474796a2a24 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Thu, 29 Jun 2000 17:11:50 +0000 Subject: [PATCH] added DELETE_PROP instruction to implement the "delete" operation. --- js/js2/tools/gencode.pl | 6 ++++++ js2/tools/gencode.pl | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/js/js2/tools/gencode.pl b/js/js2/tools/gencode.pl index 435383ec4779..400632db3200 100644 --- a/js/js2/tools/gencode.pl +++ b/js/js2/tools/gencode.pl @@ -138,6 +138,12 @@ $ops{"NEW_ARRAY"} = rem => "dest", params => [ ("TypedRegister") ] }; +$ops{"DELETE_PROP"} = + { + super => "Instruction_3", + rem => "dest, object, prop name", + params => [ ("TypedRegister", "TypedRegister", "const StringAtom*") ] + }; $ops{"GET_PROP"} = { super => "Instruction_3", diff --git a/js2/tools/gencode.pl b/js2/tools/gencode.pl index 435383ec4779..400632db3200 100644 --- a/js2/tools/gencode.pl +++ b/js2/tools/gencode.pl @@ -138,6 +138,12 @@ $ops{"NEW_ARRAY"} = rem => "dest", params => [ ("TypedRegister") ] }; +$ops{"DELETE_PROP"} = + { + super => "Instruction_3", + rem => "dest, object, prop name", + params => [ ("TypedRegister", "TypedRegister", "const StringAtom*") ] + }; $ops{"GET_PROP"} = { super => "Instruction_3",