Class: WORF::DebugLine::Registers
- Inherits:
-
Object
- Object
- WORF::DebugLine::Registers
- Defined in:
- lib/worf.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#basic_block ⇒ Object
Returns the value of attribute basic_block.
-
#column ⇒ Object
Returns the value of attribute column.
-
#discriminator ⇒ Object
Returns the value of attribute discriminator.
-
#end_sequence ⇒ Object
Returns the value of attribute end_sequence.
-
#epilogue_begin ⇒ Object
Returns the value of attribute epilogue_begin.
-
#file ⇒ Object
Returns the value of attribute file.
-
#is_stmt ⇒ Object
Returns the value of attribute is_stmt.
-
#isa ⇒ Object
Returns the value of attribute isa.
-
#line ⇒ Object
Returns the value of attribute line.
-
#op_index ⇒ Object
Returns the value of attribute op_index.
-
#prologue_end ⇒ Object
Returns the value of attribute prologue_end.
Instance Method Summary collapse
-
#initialize(default_is_stmt) ⇒ Registers
constructor
A new instance of Registers.
- #inspect ⇒ Object
Constructor Details
#initialize(default_is_stmt) ⇒ Registers
Returns a new instance of Registers.
250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/worf.rb', line 250 def initialize default_is_stmt @address = 0 @op_index = 0 @file = 1 @line = 1 @column = 0 @is_stmt = default_is_stmt @basic_block = false @end_sequence = false @prologue_end = false @epilogue_begin = false @isa = 0 @discriminator = 0 end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
246 247 248 |
# File 'lib/worf.rb', line 246 def address @address end |
#basic_block ⇒ Object
Returns the value of attribute basic_block.
246 247 248 |
# File 'lib/worf.rb', line 246 def basic_block @basic_block end |
#column ⇒ Object
Returns the value of attribute column.
246 247 248 |
# File 'lib/worf.rb', line 246 def column @column end |
#discriminator ⇒ Object
Returns the value of attribute discriminator.
246 247 248 |
# File 'lib/worf.rb', line 246 def discriminator @discriminator end |
#end_sequence ⇒ Object
Returns the value of attribute end_sequence.
246 247 248 |
# File 'lib/worf.rb', line 246 def end_sequence @end_sequence end |
#epilogue_begin ⇒ Object
Returns the value of attribute epilogue_begin.
246 247 248 |
# File 'lib/worf.rb', line 246 def epilogue_begin @epilogue_begin end |
#file ⇒ Object
Returns the value of attribute file.
246 247 248 |
# File 'lib/worf.rb', line 246 def file @file end |
#is_stmt ⇒ Object
Returns the value of attribute is_stmt.
246 247 248 |
# File 'lib/worf.rb', line 246 def is_stmt @is_stmt end |
#isa ⇒ Object
Returns the value of attribute isa.
246 247 248 |
# File 'lib/worf.rb', line 246 def isa @isa end |
#line ⇒ Object
Returns the value of attribute line.
246 247 248 |
# File 'lib/worf.rb', line 246 def line @line end |
#op_index ⇒ Object
Returns the value of attribute op_index.
246 247 248 |
# File 'lib/worf.rb', line 246 def op_index @op_index end |
#prologue_end ⇒ Object
Returns the value of attribute prologue_end.
246 247 248 |
# File 'lib/worf.rb', line 246 def prologue_end @prologue_end end |
Instance Method Details
#inspect ⇒ Object
265 266 267 268 269 270 |
# File 'lib/worf.rb', line 265 def inspect sprintf("%#018x %s %s %s", address, line.to_s.rjust(6), column.to_s.rjust(6), file.to_s.rjust(6)) end |