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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent cefbf302
...@@ -32,8 +32,8 @@ package x86 ...@@ -32,8 +32,8 @@ package x86
import "cmd/internal/obj" import "cmd/internal/obj"
// mark flags
const ( const (
/* mark flags */
DONE = 1 << iota DONE = 1 << iota
) )
...@@ -140,11 +140,11 @@ const ( ...@@ -140,11 +140,11 @@ const (
REG_FS REG_FS
REG_GS REG_GS
REG_GDTR /* global descriptor table register */ REG_GDTR // global descriptor table register
REG_IDTR /* interrupt descriptor table register */ REG_IDTR // interrupt descriptor table register
REG_LDTR /* local descriptor table register */ REG_LDTR // local descriptor table register
REG_MSW /* machine status word */ REG_MSW // machine status word
REG_TASK /* task register */ REG_TASK // task register
REG_CR0 REG_CR0
REG_CR1 REG_CR1
...@@ -194,9 +194,9 @@ const ( ...@@ -194,9 +194,9 @@ const (
FREGRET = REG_X0 FREGRET = REG_X0
REGSP = REG_SP REGSP = REG_SP
REGCTXT = REG_DX REGCTXT = REG_DX
REGEXT = REG_R15 /* compiler allocates external registers R15 down */ REGEXT = REG_R15 // compiler allocates external registers R15 down
FREGMIN = REG_X0 + 5 /* first register variable */ FREGMIN = REG_X0 + 5 // first register variable
FREGEXT = REG_X0 + 15 /* first external register */ FREGEXT = REG_X0 + 15 // first external register
T_TYPE = 1 << 0 T_TYPE = 1 << 0
T_INDEX = 1 << 1 T_INDEX = 1 << 1
T_OFFSET = 1 << 2 T_OFFSET = 1 << 2
......
This diff is collapsed.
...@@ -36,7 +36,7 @@ import ( ...@@ -36,7 +36,7 @@ import (
) )
var Register = []string{ var Register = []string{
"AL", /* [D_AL] */ "AL", // [D_AL]
"CL", "CL",
"DL", "DL",
"BL", "BL",
...@@ -52,7 +52,7 @@ var Register = []string{ ...@@ -52,7 +52,7 @@ var Register = []string{
"R13B", "R13B",
"R14B", "R14B",
"R15B", "R15B",
"AX", /* [D_AX] */ "AX", // [D_AX]
"CX", "CX",
"DX", "DX",
"BX", "BX",
...@@ -72,7 +72,7 @@ var Register = []string{ ...@@ -72,7 +72,7 @@ var Register = []string{
"CH", "CH",
"DH", "DH",
"BH", "BH",
"F0", /* [D_F0] */ "F0", // [D_F0]
"F1", "F1",
"F2", "F2",
"F3", "F3",
...@@ -120,18 +120,18 @@ var Register = []string{ ...@@ -120,18 +120,18 @@ var Register = []string{
"Y13", "Y13",
"Y14", "Y14",
"Y15", "Y15",
"CS", /* [D_CS] */ "CS", // [D_CS]
"SS", "SS",
"DS", "DS",
"ES", "ES",
"FS", "FS",
"GS", "GS",
"GDTR", /* [D_GDTR] */ "GDTR", // [D_GDTR]
"IDTR", /* [D_IDTR] */ "IDTR", // [D_IDTR]
"LDTR", /* [D_LDTR] */ "LDTR", // [D_LDTR]
"MSW", /* [D_MSW] */ "MSW", // [D_MSW]
"TASK", /* [D_TASK] */ "TASK", // [D_TASK]
"CR0", /* [D_CR] */ "CR0", // [D_CR]
"CR1", "CR1",
"CR2", "CR2",
"CR3", "CR3",
...@@ -147,7 +147,7 @@ var Register = []string{ ...@@ -147,7 +147,7 @@ var Register = []string{
"CR13", "CR13",
"CR14", "CR14",
"CR15", "CR15",
"DR0", /* [D_DR] */ "DR0", // [D_DR]
"DR1", "DR1",
"DR2", "DR2",
"DR3", "DR3",
...@@ -155,7 +155,7 @@ var Register = []string{ ...@@ -155,7 +155,7 @@ var Register = []string{
"DR5", "DR5",
"DR6", "DR6",
"DR7", "DR7",
"TR0", /* [D_TR] */ "TR0", // [D_TR]
"TR1", "TR1",
"TR2", "TR2",
"TR3", "TR3",
...@@ -163,8 +163,8 @@ var Register = []string{ ...@@ -163,8 +163,8 @@ var Register = []string{
"TR5", "TR5",
"TR6", "TR6",
"TR7", "TR7",
"TLS", /* [D_TLS] */ "TLS", // [D_TLS]
"MAXREG", /* [MAXREG] */ "MAXREG", // [MAXREG]
} }
func init() { 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