JitVm struct stub. Forwards calls to DebugVm.

This commit is contained in:
Paweł Bylica
2015-01-12 19:40:14 +01:00
parent 8a1b51c716
commit ba225017c4
3 changed files with 34 additions and 0 deletions

View File

@ -15,6 +15,8 @@ func New(env Environment, typ Type) VirtualMachine {
switch typ {
case DebugVmTy:
return NewDebugVm(env)
case JitVmTy:
return NewJitVm(env)
default:
return &Vm{env: env}
}