Commit 47427d67 authored by isharipo's avatar isharipo Committed by Brad Fitzpatrick

cmd/internal/obj/x86: cleanup comments and consts

- Unexport MaxLoopPad and LoopAlign; associated comments updated
- Remove commented-out C code
- Replace C-style /**/ code comments with single-line comments

Change-Id: I51bd92a05b4d3823757b12efd798951c9f252bd4
Reviewed-on: https://go-review.googlesource.com/104795
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent cefbf302
......@@ -32,8 +32,8 @@ package x86
import "cmd/internal/obj"
// mark flags
const (
/* mark flags */
DONE = 1 << iota
)
......@@ -140,11 +140,11 @@ const (
REG_FS
REG_GS
REG_GDTR /* global descriptor table register */
REG_IDTR /* interrupt descriptor table register */
REG_LDTR /* local descriptor table register */
REG_MSW /* machine status word */
REG_TASK /* task register */
REG_GDTR // global descriptor table register
REG_IDTR // interrupt descriptor table register
REG_LDTR // local descriptor table register
REG_MSW // machine status word
REG_TASK // task register
REG_CR0
REG_CR1
......@@ -194,9 +194,9 @@ const (
FREGRET = REG_X0
REGSP = REG_SP
REGCTXT = REG_DX
REGEXT = REG_R15 /* compiler allocates external registers R15 down */
FREGMIN = REG_X0 + 5 /* first register variable */
FREGEXT = REG_X0 + 15 /* first external register */
REGEXT = REG_R15 // compiler allocates external registers R15 down
FREGMIN = REG_X0 + 5 // first register variable
FREGEXT = REG_X0 + 15 // first external register
T_TYPE = 1 << 0
T_INDEX = 1 << 1
T_OFFSET = 1 << 2
......
This diff is collapsed.
......@@ -36,7 +36,7 @@ import (
)
var Register = []string{
"AL", /* [D_AL] */
"AL", // [D_AL]
"CL",
"DL",
"BL",
......@@ -52,7 +52,7 @@ var Register = []string{
"R13B",
"R14B",
"R15B",
"AX", /* [D_AX] */
"AX", // [D_AX]
"CX",
"DX",
"BX",
......@@ -72,7 +72,7 @@ var Register = []string{
"CH",
"DH",
"BH",
"F0", /* [D_F0] */
"F0", // [D_F0]
"F1",
"F2",
"F3",
......@@ -120,18 +120,18 @@ var Register = []string{
"Y13",
"Y14",
"Y15",
"CS", /* [D_CS] */
"CS", // [D_CS]
"SS",
"DS",
"ES",
"FS",
"GS",
"GDTR", /* [D_GDTR] */
"IDTR", /* [D_IDTR] */
"LDTR", /* [D_LDTR] */
"MSW", /* [D_MSW] */
"TASK", /* [D_TASK] */
"CR0", /* [D_CR] */
"GDTR", // [D_GDTR]
"IDTR", // [D_IDTR]
"LDTR", // [D_LDTR]
"MSW", // [D_MSW]
"TASK", // [D_TASK]
"CR0", // [D_CR]
"CR1",
"CR2",
"CR3",
......@@ -147,7 +147,7 @@ var Register = []string{
"CR13",
"CR14",
"CR15",
"DR0", /* [D_DR] */
"DR0", // [D_DR]
"DR1",
"DR2",
"DR3",
......@@ -155,7 +155,7 @@ var Register = []string{
"DR5",
"DR6",
"DR7",
"TR0", /* [D_TR] */
"TR0", // [D_TR]
"TR1",
"TR2",
"TR3",
......@@ -163,8 +163,8 @@ var Register = []string{
"TR5",
"TR6",
"TR7",
"TLS", /* [D_TLS] */
"MAXREG", /* [MAXREG] */
"TLS", // [D_TLS]
"MAXREG", // [MAXREG]
}
func init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment