From 51985251d30af47c04d033831e4106c66f37292b Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Tue, 23 May 2000 00:09:02 +0000 Subject: [PATCH] Fall out from operator overloading. git-svn-id: svn://10.0.0.236/trunk@70635 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/js2/tools/gencode.pl | 28 ++++++++++++++-------------- mozilla/js2/tools/gencode.pl | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/mozilla/js/js2/tools/gencode.pl b/mozilla/js/js2/tools/gencode.pl index 4c46f090432..43b3a6e035d 100644 --- a/mozilla/js/js2/tools/gencode.pl +++ b/mozilla/js/js2/tools/gencode.pl @@ -32,12 +32,12 @@ my $opcode_maxlen = 0; # # template definitions for compare, arithmetic, and conditional branch ops # -my $compare_op = +my $binary_op = { - super => "Compare", + super => "Instruction_3", super_has_print => 1, - rem => "dest, source", - params => [ ("Register", "Register") ] + rem => "dest, source1, source2", + params => [ ("Register", "Register", "Register") ] }; my $math_op = @@ -180,16 +180,16 @@ $ops{"USHIFTRIGHT"}= $math_op; $ops{"AND"} = $math_op; $ops{"OR"} = $math_op; $ops{"XOR"} = $math_op; -$ops{"COMPARE_LT"} = $compare_op; -$ops{"COMPARE_LE"} = $compare_op; -$ops{"COMPARE_EQ"} = $compare_op; -$ops{"COMPARE_NE"} = $compare_op; -$ops{"COMPARE_GE"} = $compare_op; -$ops{"COMPARE_GT"} = $compare_op; -$ops{"COMPARE_IN"} = $compare_op; -$ops{"STRICT_EQ"} = $compare_op; -$ops{"STRICT_NE"} = $compare_op; -$ops{"INSTANCEOF"} = $compare_op; +$ops{"COMPARE_LT"} = $binary_op; +$ops{"COMPARE_LE"} = $binary_op; +$ops{"COMPARE_EQ"} = $binary_op; +$ops{"COMPARE_NE"} = $binary_op; +$ops{"COMPARE_GE"} = $binary_op; +$ops{"COMPARE_GT"} = $binary_op; +$ops{"COMPARE_IN"} = $binary_op; +$ops{"STRICT_EQ"} = $binary_op; +$ops{"STRICT_NE"} = $binary_op; +$ops{"INSTANCEOF"} = $binary_op; $ops{"BITNOT"} = $unary_op; $ops{"NOT"} = $unary_op; $ops{"TEST"} = $unary_op; diff --git a/mozilla/js2/tools/gencode.pl b/mozilla/js2/tools/gencode.pl index 4c46f090432..43b3a6e035d 100644 --- a/mozilla/js2/tools/gencode.pl +++ b/mozilla/js2/tools/gencode.pl @@ -32,12 +32,12 @@ my $opcode_maxlen = 0; # # template definitions for compare, arithmetic, and conditional branch ops # -my $compare_op = +my $binary_op = { - super => "Compare", + super => "Instruction_3", super_has_print => 1, - rem => "dest, source", - params => [ ("Register", "Register") ] + rem => "dest, source1, source2", + params => [ ("Register", "Register", "Register") ] }; my $math_op = @@ -180,16 +180,16 @@ $ops{"USHIFTRIGHT"}= $math_op; $ops{"AND"} = $math_op; $ops{"OR"} = $math_op; $ops{"XOR"} = $math_op; -$ops{"COMPARE_LT"} = $compare_op; -$ops{"COMPARE_LE"} = $compare_op; -$ops{"COMPARE_EQ"} = $compare_op; -$ops{"COMPARE_NE"} = $compare_op; -$ops{"COMPARE_GE"} = $compare_op; -$ops{"COMPARE_GT"} = $compare_op; -$ops{"COMPARE_IN"} = $compare_op; -$ops{"STRICT_EQ"} = $compare_op; -$ops{"STRICT_NE"} = $compare_op; -$ops{"INSTANCEOF"} = $compare_op; +$ops{"COMPARE_LT"} = $binary_op; +$ops{"COMPARE_LE"} = $binary_op; +$ops{"COMPARE_EQ"} = $binary_op; +$ops{"COMPARE_NE"} = $binary_op; +$ops{"COMPARE_GE"} = $binary_op; +$ops{"COMPARE_GT"} = $binary_op; +$ops{"COMPARE_IN"} = $binary_op; +$ops{"STRICT_EQ"} = $binary_op; +$ops{"STRICT_NE"} = $binary_op; +$ops{"INSTANCEOF"} = $binary_op; $ops{"BITNOT"} = $unary_op; $ops{"NOT"} = $unary_op; $ops{"TEST"} = $unary_op;