Пример #1
0
  VM* SharedState::new_vm() {
    VM* vm = new VM(*this);
    cf_locations_.push_back(vm->call_frame_location());
    threads_.push_back(vm);

    this->ref();

    // If there is no root vm, then the first on created becomes it.
    if(!root_vm_) root_vm_ = vm;
    return vm;
  }
Пример #2
0
 VM* SharedState::new_vm() {
   VM* vm = new VM(*this);
   cf_locations_.push_back(vm->call_frame_location());
   this->ref();
   return vm;
 }