[Vm-dev] [NB] NativeBoost meets JIT
Denis Kudriashov
dionisiydk at gmail.com
Fri Sep 21 15:53:22 UTC 2012
Hello
2012/9/21 Igor Stasenko <siguctua at gmail.com>
> nbFoo2
> <primitive: #primitiveNativeCall module: #NativeBoostPlugin error:
> errorCode>
>
> ^ NBNativeCodeGen methodAssembly: [:gen :proxy :asm |
> asm noStackFrame.
> asm
> mov: (42 << 1) + 1 to: asm EAX;
> ret.
> ]
>
> And this one uses JIT:
>
> nbFoo
> <primitive: 220 error: errorCode>
>
> [ errorCode = ErrRunningViaInterpreter ] whileTrue: [ ^ self
> nbFoo ].
>
> ^ NBNativeCodeGen jitMethodAssembly: [:gen :proxy :asm |
> asm noStackFrame.
> asm
> mov: (42 << 1) + 1 to: asm EDX;
> ret: 4 asUImm.
> ]
>
Why assembly code is different for jitted and non jitted versions?
What I should change in my nativeboost assembly to be able to jit it?
Any way thank's for such impressive work.
Best regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20120921/77cf1070/attachment.htm
More information about the Vm-dev
mailing list