diff options
Diffstat (limited to 'src/cmd/compile/internal/gc/go.go')
-rw-r--r-- | src/cmd/compile/internal/gc/go.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/cmd/compile/internal/gc/go.go b/src/cmd/compile/internal/gc/go.go index 4b6ffe58d1..4370a06839 100644 --- a/src/cmd/compile/internal/gc/go.go +++ b/src/cmd/compile/internal/gc/go.go @@ -12,27 +12,6 @@ import ( "sync" ) -var ( - // maximum size variable which we will allocate on the stack. - // This limit is for explicit variable declarations like "var x T" or "x := ...". - // Note: the flag smallframes can update this value. - maxStackVarSize = int64(10 * 1024 * 1024) - - // maximum size of implicit variables that we will allocate on the stack. - // p := new(T) allocating T on the stack - // p := &T{} allocating T on the stack - // s := make([]T, n) allocating [n]T on the stack - // s := []byte("...") allocating [n]byte on the stack - // Note: the flag smallframes can update this value. - maxImplicitStackVarSize = int64(64 * 1024) - - // smallArrayBytes is the maximum size of an array which is considered small. - // Small arrays will be initialized directly with a sequence of constant stores. - // Large arrays will be initialized by copying from a static temp. - // 256 bytes was chosen to minimize generated code + statictmp size. - smallArrayBytes = int64(256) -) - // Slices in the runtime are represented by three components: // // type slice struct { @@ -89,16 +68,12 @@ var ( var dclcontext ir.Class // PEXTERN/PAUTO -var Curfn *ir.Func - var Widthptr int var Widthreg int var typecheckok bool -var nodfp *ir.Name - // interface to back end type Arch struct { |