Beispiel #1
0
func newNativeFrame(thread *Thread, method *heap.Method) *Frame {
	frame := &Frame{}
	frame.thread = thread
	frame.method = method
	frame.localVars = newLocalVars(method.ArgSlotCount()) // todo
	frame.operandStack = newOperandStack(4)               // todo

	code := method.Code()
	if code == nil {
		code = getHackCode(method.Descriptor())
		method.HackSetCode(code)
	}

	return frame
}