+++ /dev/null
-// Copyright 2012 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.
-
-// Used by cmd/gc.
-
-enum {
- gcBits = 4,
- BitsPerPointer = 2,
- BitsDead = 0,
- BitsScalar = 1,
- BitsPointer = 2,
- BitsMask = 3,
- PointersPerByte = 8/BitsPerPointer,
- insData = 1,
- insArray,
- insArrayEnd,
- insEnd,
-
- // 64 bytes cover objects of size 1024/512 on 64/32 bits, respectively.
- MaxGCMask = 65536, // TODO(rsc): change back to 64
-};
+++ /dev/null
-// Copyright 2011 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.
-
-// For the linkers. Must match Go definitions.
-// TODO(rsc): Share Go definitions with linkers directly.
-
-enum {
-#ifdef GOOS_windows
-#define STACKSYSTEM (512 * sizeof(uintptr))
-#endif // GOOS_windows
-#ifdef GOOS_plan9
-#define STACKSYSTEM 512
-#endif // GOOS_plan9
-#ifdef GOOS_darwin
-#ifdef GOARCH_arm
-#define STACKSYSTEM 1024
-#endif // GOARCH_arm
-#endif // GOOS_darwin
-
-#ifndef STACKSYSTEM
-#define STACKSYSTEM 0
-#endif
-
- /*c2go
- STACKSYSTEM = 0,
- */
-
- StackSystem = STACKSYSTEM,
-
- StackBig = 4096,
- StackGuard = 640 + StackSystem,
- StackSmall = 128,
- StackLimit = StackGuard - StackSystem - StackSmall,
-};
-
-#define StackPreempt ((uint64)-1314)
-/*c2go
-enum
-{
- StackPreempt = 1, // TODO: Change to (uint64)-1314 in Go translation
-};
-*/
+++ /dev/null
-// Copyright 2012 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.
-
-// Must match runtime and reflect.
-// Included by cmd/gc.
-
-enum {
- KindBool = 1,
- KindInt,
- KindInt8,
- KindInt16,
- KindInt32,
- KindInt64,
- KindUint,
- KindUint8,
- KindUint16,
- KindUint32,
- KindUint64,
- KindUintptr,
- KindFloat32,
- KindFloat64,
- KindComplex64,
- KindComplex128,
- KindArray,
- KindChan,
- KindFunc,
- KindInterface,
- KindMap,
- KindPtr,
- KindSlice,
- KindString,
- KindStruct,
- KindUnsafePointer,
-
- KindDirectIface = 1 << 5,
- KindGCProg = 1 << 6, // Type.gc points to GC program
- KindNoPointers = 1 << 7,
- KindMask = (1 << 5) - 1,
-};