You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: frame_native.go
    path of file: ./repos/jvm.go/rtda
    
    the code of the file until where you have to start completion: package rtda

import (
	"strings"

	"github.com/zxh0/jvm.go/rtda/heap"
)

var (
	_invokeNativeIReturn = []byte{0xfe, 0xac}
	_invoke
    
func newNativeFrame(thread *Thread, method *heap.Method) *Frame {
	frame := &Frame{}
	frame.Thread = thread
	frame.Method = method
	frame.LocalVars = newLocalVars(method.ParamSlotCount) // todo
	frame.OperandStack = newOperandStack(4)               // todo

	if method.Code == nil {
		method.Code = getHackCode(method.Descriptor) // hack!
	}

	return frame
}