Class: Fisk::Instructions::Instruction
- Inherits:
-
Struct
- Object
- Struct
- Fisk::Instructions::Instruction
- Defined in:
- lib/fisk/instructions.rb
Instance Attribute Summary collapse
-
#forms ⇒ Object
Returns the value of attribute forms.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#forms ⇒ Object
Returns the value of attribute forms
39 40 41 |
# File 'lib/fisk/instructions.rb', line 39 def forms @forms end |
#name ⇒ Object
Returns the value of attribute name
39 40 41 |
# File 'lib/fisk/instructions.rb', line 39 def name @name end |
Instance Method Details
#check_performance(operands) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/fisk/instructions.rb', line 40 def check_performance(operands) case name when Instructions::MOV.name if operands[0].register? && operands[1].register? && operands[0].name == operands[1].name return "MOV with same register (#{operands[0].name})" end end end |