Class: AsmJIT::Operand
- Inherits:
-
Object
show all
- Defined in:
- lib/asmjit.rb,
ext/asmjit/asmjit.cc
Instance Method Summary
collapse
Instance Method Details
#inspect ⇒ Object
42
43
44
|
# File 'lib/asmjit.rb', line 42
def inspect
"#<#{self.class} #{to_s}>"
end
|
#to_s ⇒ Object
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# File 'ext/asmjit/asmjit.cc', line 195
static VALUE operand_to_s(VALUE obj) {
Operand opnd = opnd_get(obj);
Arch arch = jit_runtime.arch();
const BaseEmitter *emitter = NULL;
VALUE emitterv = rb_iv_get(obj, "@emitter");
if (RTEST(emitterv)) {
emitter = get_emitter(emitterv);
}
String s;
Formatter::formatOperand(s, FormatFlags::kNone, emitter, arch, opnd);
return rb_str_new(s.data(), s.size());
}
|