diff --git a/mozilla/js/js2/tools/gencode.pl b/mozilla/js/js2/tools/gencode.pl index ef489437390..56dd42861ca 100644 --- a/mozilla/js/js2/tools/gencode.pl +++ b/mozilla/js/js2/tools/gencode.pl @@ -120,6 +120,12 @@ $ops{"NEW_OBJECT"} = rem => "dest", params => [ ("TypedRegister") ] }; +$ops{"NEW_CLASS"} = + { + super => "Instruction_2", + rem => "dest, class name", + params => [ ("TypedRegister", "const StringAtom*") ] + }; $ops{"NEW_FUNCTION"} = { super => "Instruction_2", diff --git a/mozilla/js2/tools/gencode.pl b/mozilla/js2/tools/gencode.pl index ef489437390..56dd42861ca 100644 --- a/mozilla/js2/tools/gencode.pl +++ b/mozilla/js2/tools/gencode.pl @@ -120,6 +120,12 @@ $ops{"NEW_OBJECT"} = rem => "dest", params => [ ("TypedRegister") ] }; +$ops{"NEW_CLASS"} = + { + super => "Instruction_2", + rem => "dest, class name", + params => [ ("TypedRegister", "const StringAtom*") ] + }; $ops{"NEW_FUNCTION"} = { super => "Instruction_2",