From e09a0f396925198156c304055504b5126a0852d7 Mon Sep 17 00:00:00 2001
From: Roman Khimov <roman@nspcc.ru>
Date: Sat, 28 Aug 2021 22:27:38 +0300
Subject: [PATCH] vm: don't allocate for break points in NewContext

They're rarely used and when they're used they're appended to.
---
 pkg/vm/context.go | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/pkg/vm/context.go b/pkg/vm/context.go
index 25d29f2fb..a4a288477 100644
--- a/pkg/vm/context.go
+++ b/pkg/vm/context.go
@@ -79,11 +79,10 @@ func NewContext(b []byte) *Context {
 // return value count and initial position in script.
 func NewContextWithParams(b []byte, pcount int, rvcount int, pos int) *Context {
 	return &Context{
-		prog:        b,
-		breakPoints: []int{},
-		ParamCount:  pcount,
-		RetCount:    rvcount,
-		nextip:      pos,
+		prog:       b,
+		ParamCount: pcount,
+		RetCount:   rvcount,
+		nextip:     pos,
 	}
 }