| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // go-specific code shared across loaders (5l, 6l, 8l). |
| // Toolchain experiments. |
| // These are controlled by the GOEXPERIMENT environment |
| // variable recorded when the toolchain is built. |
| // This list is also known to cmd/gc. |
| {"fieldtrack", &Fieldtrack_enabled}, |
| {"framepointer", &Framepointer_enabled}, |
| for i := 0; i < len(exper); i++ { |
| fmt.Printf("unknown experiment %s\n", s) |
| for _, f := range strings.Split(goexperiment, ",") { |
| func Expstring() string { |
| buf += "," + exper[i].name |