CompiledMethod* CompiledMethod::create(STATE) { CompiledMethod* cm = state->new_object<CompiledMethod>(G(cmethod)); cm->local_count(state, Fixnum::from(0)); cm->set_executor(CompiledMethod::default_executor); cm->backend_method_ = NULL; return cm; }
CompiledMethod* CompiledMethod::dup_cm(STATE) { CompiledMethod* cm = CompiledMethod::create(state); cm->copy_object(state, this); cm->set_executor(CompiledMethod::default_executor); cm->jit_data_ = NULL; cm->backend_method_ = NULL; return cm; }
CompiledMethod* CompiledMethod::create(STATE) { CompiledMethod* cm = state->new_object<CompiledMethod>(G(cmethod)); cm->local_count(state, Fixnum::from(0)); cm->set_executor(CompiledMethod::default_executor); cm->backend_method_ = NULL; cm->inliners_ = NULL; cm->prim_index_ = -1; #ifdef ENABLE_LLVM cm->jit_data_ = NULL; #endif return cm; }