Class: AArch64::Assembler::Label
- Inherits:
-
Object
- Object
- AArch64::Assembler::Label
- Defined in:
- lib/aarch64.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
- #immediate? ⇒ Boolean
-
#initialize(name) ⇒ Label
constructor
A new instance of Label.
- #integer? ⇒ Boolean
- #set_offset(offset) ⇒ Object
- #to_i ⇒ Object
- #unwrap_label ⇒ Object
Constructor Details
#initialize(name) ⇒ Label
145 146 147 148 |
# File 'lib/aarch64.rb', line 145 def initialize name @name = name @offset = nil end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
143 144 145 |
# File 'lib/aarch64.rb', line 143 def offset @offset end |
Instance Method Details
#immediate? ⇒ Boolean
163 |
# File 'lib/aarch64.rb', line 163 def immediate?; false; end |
#integer? ⇒ Boolean
164 |
# File 'lib/aarch64.rb', line 164 def integer?; false; end |
#set_offset(offset) ⇒ Object
150 151 152 153 |
# File 'lib/aarch64.rb', line 150 def set_offset offset @offset = offset freeze end |
#to_i ⇒ Object
159 160 161 |
# File 'lib/aarch64.rb', line 159 def to_i @offset end |
#unwrap_label ⇒ Object
155 156 157 |
# File 'lib/aarch64.rb', line 155 def unwrap_label to_i end |