]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoFixing HTTP POST handling to work with Chrome and Safari.
Bill Neubauer [Sat, 3 Oct 2009 18:09:01 +0000 (11:09 -0700)]
Fixing HTTP POST handling to work with Chrome and Safari.

request.go does not handle Content-Type correctly for the definition of
Media Types.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7

R=rsc
APPROVED=rsc
DELTA=44  (42 added, 0 deleted, 2 changed)
OCL=35274
CL=35306

15 years agoclean more
Russ Cox [Sat, 3 Oct 2009 17:38:03 +0000 (10:38 -0700)]
clean more

R=r
DELTA=40  (9 added, 3 deleted, 28 changed)
OCL=35277
CL=35305

15 years ago8c, 8l dynamic loading support.
Russ Cox [Sat, 3 Oct 2009 17:37:12 +0000 (10:37 -0700)]
8c, 8l dynamic loading support.
better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.

on snow leopard:
  - non-cgo binaries work; all tests pass.
  - cgo binaries work on amd64 but not 386.

R=r
DELTA=2031  (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304

15 years agoexpand error regexp in dns test
Russ Cox [Sat, 3 Oct 2009 17:35:49 +0000 (10:35 -0700)]
expand error regexp in dns test

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=35292
CL=35303

15 years agogarbage collections, conversions, concurrency
Rob Pike [Sat, 3 Oct 2009 16:38:47 +0000 (09:38 -0700)]
garbage collections, conversions, concurrency

R=iant,rsc,gri
DELTA=106  (87 added, 8 deleted, 11 changed)
OCL=35298
CL=35302

15 years ago- improved handling of white space around declarations and statements
Robert Griesemer [Sat, 3 Oct 2009 05:24:05 +0000 (22:24 -0700)]
- improved handling of white space around declarations and statements
- extra tests

R=rsc
DELTA=366  (264 added, 37 deleted, 65 changed)
OCL=35299
CL=35301

15 years agoadd comment about C API.
Russ Cox [Sat, 3 Oct 2009 01:07:27 +0000 (18:07 -0700)]
add comment about C API.
somehow managed not to Put this before.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=35289
CL=35294

15 years agofinal Native Client package - av
Russ Cox [Fri, 2 Oct 2009 20:25:26 +0000 (13:25 -0700)]
final Native Client package - av

R=r
DELTA=894  (887 added, 0 deleted, 7 changed)
OCL=35115
CL=35286

15 years ago- allow parenthesized [...]T types as in: ([...]int){}
Robert Griesemer [Fri, 2 Oct 2009 17:03:25 +0000 (10:03 -0700)]
- allow parenthesized [...]T types as in: ([...]int){}
- added extra tests

R=rsc
DELTA=55  (37 added, 0 deleted, 18 changed)
OCL=35250
CL=35276

15 years agoa few more code generation bugs and an interface alignment issue.
Kai Backman [Fri, 2 Oct 2009 16:06:51 +0000 (09:06 -0700)]
a few more code generation bugs and an interface alignment issue.

go/test: passes 74% (251/339)

R=rsc
APPROVED=rsc
DELTA=40  (34 added, 0 deleted, 6 changed)
OCL=35254
CL=35275

15 years agoChange deflate.go's default compression level from 4 to 6.
Nigel Tao [Fri, 2 Oct 2009 00:50:16 +0000 (17:50 -0700)]
Change deflate.go's default compression level from 4 to 6.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35208
CL=35261

15 years agoreplace "ideal" with "untyped"
Robert Griesemer [Thu, 1 Oct 2009 23:58:17 +0000 (16:58 -0700)]
replace "ideal" with "untyped"

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35242
CL=35258

15 years agouse the notion of "untyped constant" instead of "ideal constant"
Robert Griesemer [Thu, 1 Oct 2009 21:12:18 +0000 (14:12 -0700)]
use the notion of "untyped constant" instead of "ideal constant"

R=iant
DELTA=13  (1 added, 0 deleted, 12 changed)
OCL=35241
CL=35246

15 years agoFactored out boilerplate from all html docs in doc directory:
Robert Griesemer [Thu, 1 Oct 2009 21:08:00 +0000 (14:08 -0700)]
Factored out boilerplate from all html docs in doc directory:
- the first HTML comment in those files is extracted as page
  title when serving them
- lib/godoc.html is top-level template for all pages served
- experimented a bit with package documentation layout
  (feedback welcome)
- various related cleanups

TODO:
- The / page (doc/root.html) content repeats links that are
  in the navigation bar. It needs to be cleaned up.

R=rsc
DELTA=826  (86 added, 692 deleted, 48 changed)
OCL=35230
CL=35245

15 years agogenerate float registers correctly.
Kai Backman [Thu, 1 Oct 2009 20:52:55 +0000 (13:52 -0700)]
generate float registers correctly.

go/test: passes 71% (242/339)

R=rsc
APPROVED=rsc
DELTA=9  (5 added, 0 deleted, 4 changed)
OCL=35233
CL=35243

15 years agosome progress on arm linux syscall interface. ztypes_linux_arm
Kai Backman [Thu, 1 Oct 2009 13:55:01 +0000 (06:55 -0700)]
some progress on arm linux syscall interface. ztypes_linux_arm
still has problems with godefs.

R=rsc
APPROVED=rsc
DELTA=801  (134 added, 235 deleted, 432 changed)
OCL=35189
CL=35211

15 years agocgen_asop sudoaddable
Kai Backman [Thu, 1 Oct 2009 13:50:59 +0000 (06:50 -0700)]
cgen_asop sudoaddable

R=rsc
APPROVED=rsc
DELTA=14  (4 added, 0 deleted, 10 changed)
OCL=35190
CL=35210

15 years agofixed a few calls to gcmp and some really bothched OINDEX code
Kai Backman [Thu, 1 Oct 2009 01:56:37 +0000 (18:56 -0700)]
fixed a few calls to gcmp and some really bothched OINDEX code
(how did that happen?)

go/test: passes 70% (238/339)

R=rsc
APPROVED=rsc
DELTA=18  (10 added, 0 deleted, 8 changed)
OCL=35185
CL=35188

15 years agostep toward darwin ffi: factor out macho code
Russ Cox [Thu, 1 Oct 2009 00:33:39 +0000 (17:33 -0700)]
step toward darwin ffi: factor out macho code

R=r
DELTA=771  (374 added, 287 deleted, 110 changed)
OCL=35187
CL=35187

15 years agoload binary op arguments into registers
Kai Backman [Wed, 30 Sep 2009 21:28:18 +0000 (14:28 -0700)]
load binary op arguments into registers

go/test: passes 69% (237/339)

R=rsc
APPROVED=rsc
DELTA=12  (3 added, 9 deleted, 0 changed)
OCL=35178
CL=35180

15 years agocgo working on linux/386
Russ Cox [Wed, 30 Sep 2009 20:47:15 +0000 (13:47 -0700)]
cgo working on linux/386

R=r
DELTA=70  (47 added, 4 deleted, 19 changed)
OCL=35167
CL=35171

15 years agorename the public exvar package to be expvar.
Rob Pike [Wed, 30 Sep 2009 20:11:33 +0000 (13:11 -0700)]
rename the public exvar package to be expvar.

R=rsc
DELTA=684  (324 added, 324 deleted, 36 changed)
OCL=35161
CL=35163

15 years ago- completed section on built-in functions
Robert Griesemer [Wed, 30 Sep 2009 19:00:25 +0000 (12:00 -0700)]
- completed section on built-in functions
- moved Conversions section out of built-in functions and into expressions
- fixed syntax of conversions (parens are not mandatory if the type is not a TypeName)
  (this is the only change to the Conversions section; the rest of the text is just moved;
  old line: 4043, new line: 3078)
- fixed syntax of composite literals (parens are allowed around LiteralType)

DELTA=239  (115 added, 98 deleted, 26 changed)
OCL=35118
CL=35159

15 years agocgo: works on amd64.
Russ Cox [Wed, 30 Sep 2009 18:51:08 +0000 (11:51 -0700)]
cgo: works on amd64.
integrated into Makefiles (see misc/cgo/gmp/Makefile).

R=r
DELTA=1110  (540 added, 525 deleted, 45 changed)
OCL=35153
CL=35158

15 years agodelete
Russ Cox [Wed, 30 Sep 2009 18:06:35 +0000 (11:06 -0700)]
delete

R=r
DELTA=791  (0 added, 791 deleted, 0 changed)
OCL=35154
CL=35154

15 years agoc compiler bug tickled by
Russ Cox [Wed, 30 Sep 2009 17:25:22 +0000 (10:25 -0700)]
c compiler bug tickled by
void f(struct { int x[1]; } p) { }
the "int" was getting attached to f.

R=ken
OCL=35145
CL=35151

15 years agoanother brace of questions: types, maps, bookkeeping
Rob Pike [Wed, 30 Sep 2009 16:58:19 +0000 (09:58 -0700)]
another brace of questions: types, maps, bookkeeping

DELTA=136  (120 added, 13 deleted, 3 changed)
OCL=35133
CL=35147

15 years agoclean up error output;
Russ Cox [Wed, 30 Sep 2009 15:59:56 +0000 (08:59 -0700)]
clean up error output;
do not print entire buffer on error,
since it can be very large.
instead print identifying string.

R=krasin
DELTA=14  (1 added, 3 deleted, 10 changed)
OCL=35141
CL=35143

15 years agofix 386 build - register allocation and shift bug
Russ Cox [Wed, 30 Sep 2009 15:56:01 +0000 (08:56 -0700)]
fix 386 build - register allocation and shift bug

R=ken
OCL=35140
CL=35142

15 years agomissing error checking related to ([...]int){...}
Russ Cox [Wed, 30 Sep 2009 04:23:34 +0000 (21:23 -0700)]
missing error checking related to ([...]int){...}

R=ken
OCL=35132
CL=35132

15 years agonacl system call updates
Russ Cox [Wed, 30 Sep 2009 04:22:25 +0000 (21:22 -0700)]
nacl system call updates

R=r
DELTA=236  (211 added, 18 deleted, 7 changed)
OCL=35084
CL=35131

15 years agoundo 35108 (disallow parens around type in struct literal).
Russ Cox [Wed, 30 Sep 2009 04:21:14 +0000 (21:21 -0700)]
undo 35108 (disallow parens around type in struct literal).
allow parens around [...]int in struct literal.

R=ken
OCL=35112
CL=35130

15 years agoZLIB deflater.
Nigel Tao [Wed, 30 Sep 2009 02:47:05 +0000 (19:47 -0700)]
ZLIB deflater.

R=rsc
APPROVED=rsc
DELTA=222  (219 added, 0 deleted, 3 changed)
OCL=35031
CL=35129

15 years agoAdd a Vim syntax highlighting file for Go.
David Symonds [Wed, 30 Sep 2009 01:43:20 +0000 (18:43 -0700)]
Add a Vim syntax highlighting file for Go.

APPROVED=rsc
DELTA=190  (190 added, 0 deleted, 0 changed)
OCL=35073
CL=35128

15 years agofix munging of pointer.
Kai Backman [Tue, 29 Sep 2009 23:07:59 +0000 (16:07 -0700)]
fix munging of pointer.

go/test: passes 69% (235/339)

R=rsc
APPROVED=rsc
DELTA=5  (4 added, 1 deleted, 0 changed)
OCL=35107
CL=35109

15 years agodisallow parens around type in struct literal syntax,
Russ Cox [Tue, 29 Sep 2009 23:05:44 +0000 (16:05 -0700)]
disallow parens around type in struct literal syntax,
per discussion with gri.

R=ken
OCL=35108
CL=35108

15 years agoNative Client SRPC (simple RPC), both server and client.
Russ Cox [Tue, 29 Sep 2009 23:00:28 +0000 (16:00 -0700)]
Native Client SRPC (simple RPC), both server and client.

R=r
DELTA=958  (958 added, 0 deleted, 0 changed)
OCL=35096
CL=35106

15 years agotoy draw implementation
Russ Cox [Tue, 29 Sep 2009 21:04:08 +0000 (14:04 -0700)]
toy draw implementation

R=r
DELTA=471  (471 added, 0 deleted, 0 changed)
OCL=35090
CL=35099

15 years agoDeflate encoder
Ivan Krasin [Tue, 29 Sep 2009 20:16:21 +0000 (13:16 -0700)]
Deflate encoder

APPROVED=rsc
OCL=34514
CL=35093

15 years agoAdd crypto/rc4.
Adam Langley [Tue, 29 Sep 2009 19:15:24 +0000 (12:15 -0700)]
Add crypto/rc4.

RC4 is a common stream cipher. This adds a pure-go C implementation.

R=r
APPROVED=r
DELTA=139  (138 added, 0 deleted, 1 changed)
OCL=35056
CL=35092

15 years agomake the sidebars consistent
Rob Pike [Tue, 29 Sep 2009 18:57:28 +0000 (11:57 -0700)]
make the sidebars consistent
add Effective Go to the set of links

DELTA=166  (62 added, 57 deleted, 47 changed)
OCL=35085
CL=35089

15 years agomore language FAQ
Rob Pike [Tue, 29 Sep 2009 18:56:57 +0000 (11:56 -0700)]
more language FAQ

DELTA=79  (61 added, 3 deleted, 15 changed)
OCL=35083
CL=35088

15 years agofixed alignment issue resulting from confusion around the
Kai Backman [Tue, 29 Sep 2009 14:27:49 +0000 (07:27 -0700)]
fixed alignment issue resulting from confusion around the
meaning of out args.

go/test: passes 68% (231/339)

R=rsc
APPROVED=rsc
DELTA=13  (7 added, 0 deleted, 6 changed)
OCL=35072
CL=35080

15 years ago- assignments to structs are only legal if all struct fields are visible
Robert Griesemer [Tue, 29 Sep 2009 02:21:15 +0000 (19:21 -0700)]
- assignments to structs are only legal if all struct fields are visible
- removed section on Multiple-file packages as this seems now now covered
  sufficiently elsewhere

DELTA=45  (11 added, 25 deleted, 9 changed)
OCL=35065
CL=35071

15 years agoanother bite-sized checkpoint on the language design FAQ
Rob Pike [Mon, 28 Sep 2009 23:40:34 +0000 (16:40 -0700)]
another bite-sized checkpoint on the language design FAQ

R=rsc,iant
DELTA=87  (54 added, 2 deleted, 31 changed)
OCL=35058
CL=35061

15 years ago- added gcmp for proper ACMP generation, changed all call
Kai Backman [Mon, 28 Sep 2009 22:40:13 +0000 (15:40 -0700)]
- added gcmp for proper ACMP generation, changed all call
  sites plus optimized constant code a bit (one less register
  used).
- changed conditional branches, might need a re-tweak later
- gave up on agen OINDEX and copied/fixed the version in 8g

go/test: passes 66% (225/339)

R=rsc
APPROVED=rsc
DELTA=148  (67 added, 32 deleted, 49 changed)
OCL=35040
CL=35055

15 years agopermit only one method name per method signature in interface types
Robert Griesemer [Mon, 28 Sep 2009 21:54:53 +0000 (14:54 -0700)]
permit only one method name per method signature in interface types
(in sync with spec CL 35047)

R=rsc
DELTA=44  (4 added, 8 deleted, 32 changed)
OCL=35048
CL=35054

15 years agostart of a language design FAQ.
Rob Pike [Mon, 28 Sep 2009 21:37:14 +0000 (14:37 -0700)]
start of a language design FAQ.

R=rsc
DELTA=224  (214 added, 10 deleted, 0 changed)
OCL=35041
CL=35050

15 years agomight as well make 6g run faster.... go from gcc -O1 to -O2
Rob Pike [Mon, 28 Sep 2009 21:36:20 +0000 (14:36 -0700)]
might as well make 6g run faster.... go from gcc -O1 to -O2

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35023
CL=35049

15 years agodisallow interface {x, y()}
Russ Cox [Mon, 28 Sep 2009 21:16:33 +0000 (14:16 -0700)]
disallow interface {x, y()}

R=gri
DELTA=8  (3 added, 0 deleted, 5 changed)
OCL=35045
CL=35047

15 years ago- clarify type declaration (specifying status quo)
Robert Griesemer [Mon, 28 Sep 2009 21:10:20 +0000 (14:10 -0700)]
- clarify type declaration (specifying status quo)

DELTA=68  (51 added, 8 deleted, 9 changed)
OCL=35038
CL=35046

15 years agodisallow interface { x, y() }
Russ Cox [Mon, 28 Sep 2009 21:05:34 +0000 (14:05 -0700)]
disallow interface { x, y() }

R=ken
OCL=35042
CL=35044

15 years agoadd a data section and start populating it with info about allocation, arrays
Rob Pike [Mon, 28 Sep 2009 00:59:36 +0000 (17:59 -0700)]
add a data section and start populating it with info about allocation, arrays

R=rsc
DELTA=331  (266 added, 61 deleted, 4 changed)
OCL=35024
CL=35030

15 years agorewrite the section about imports
Rob Pike [Sat, 26 Sep 2009 00:00:22 +0000 (17:00 -0700)]
rewrite the section about imports

DELTA=42  (10 added, 11 deleted, 21 changed)
OCL=35017
CL=35020

15 years agodelete unused file
Robert Griesemer [Fri, 25 Sep 2009 22:43:43 +0000 (15:43 -0700)]
delete unused file
### 3656
XXstart 3656
XXedit 3656 src/cmd/5g/ggen.c
XXedit 3656 src/pkg/runtime/arm/asm.s
XXedit 3656 test/arm-pass.txt
# submit 3656
hg ci -u 'Kai Backman <kaib@golang.org>' -d '1253922857 25200' -l - <<'HGEOF'
support for go and defer.

go/test: passes 64% (218/339)

R=rsc
APPROVED=rsc
DELTA=60  (39 added, 0 deleted, 21 changed)
OCL=35018
CL=35018

15 years agofix to be able to run full gofmt test
Robert Griesemer [Fri, 25 Sep 2009 22:43:43 +0000 (15:43 -0700)]
fix to be able to run full gofmt test

TBR=r
OCL=35015
CL=35015

15 years ago- reworked section on import declarations
Robert Griesemer [Fri, 25 Sep 2009 22:36:25 +0000 (15:36 -0700)]
- reworked section on import declarations
- added missing <p> tags in various places

DELTA=62  (32 added, 4 deleted, 26 changed)
OCL=35014
CL=35014

15 years ago- fixed sieve.go example (channel directions were wrong)
Robert Griesemer [Fri, 25 Sep 2009 21:11:03 +0000 (14:11 -0700)]
- fixed sieve.go example (channel directions were wrong)
- cosmetic adjustments

R=r
DELTA=30  (0 added, 0 deleted, 30 changed)
OCL=35010
CL=35012

15 years agoAdd eval and ogle to the build process so they can be kept up
Austin Clements [Fri, 25 Sep 2009 18:36:27 +0000 (11:36 -0700)]
Add eval and ogle to the build process so they can be kept up
to date.

R=rsc
APPROVED=rsc
DELTA=8  (6 added, 0 deleted, 2 changed)
OCL=35009
CL=35011

15 years agoSwitch ogle to in-tree gosym package. Delete my private sym
Austin Clements [Fri, 25 Sep 2009 16:39:08 +0000 (09:39 -0700)]
Switch ogle to in-tree gosym package.  Delete my private sym
package.  If a Sym is a function symbol, include a reference
to the Func so it's easily accessible when you're traversing
the list of all symbols.  This diff is more interesting than
the proc switch because the gosym interface differs from the
old sym interface.

R=rsc
APPROVED=rsc
DELTA=1957  (34 added, 1868 deleted, 55 changed)
OCL=34969
CL=35008

15 years agoFix unused imports
Austin Clements [Fri, 25 Sep 2009 16:38:10 +0000 (09:38 -0700)]
Fix unused imports

R=rsc
APPROVED=rsc
DELTA=3  (0 added, 3 deleted, 0 changed)
OCL=34970
CL=35007

15 years agos/switch _ :=/switch/
Austin Clements [Fri, 25 Sep 2009 16:37:35 +0000 (09:37 -0700)]
s/switch _ :=/switch/

R=rsc
APPROVED=rsc
DELTA=36  (0 added, 0 deleted, 36 changed)
OCL=34971
CL=35006

15 years agorewording around ideal and basic types
Robert Griesemer [Fri, 25 Sep 2009 02:36:48 +0000 (19:36 -0700)]
rewording around ideal and basic types

DELTA=355  (93 added, 85 deleted, 177 changed)
OCL=34904
CL=34998

15 years agocomparisons have type bool
Russ Cox [Fri, 25 Sep 2009 00:55:22 +0000 (17:55 -0700)]
comparisons have type bool

R=ken
OCL=34995
CL=34997

15 years agotest: comparisons have type bool
Russ Cox [Fri, 25 Sep 2009 00:54:47 +0000 (17:54 -0700)]
test: comparisons have type bool

R=r
DELTA=81  (57 added, 24 deleted, 0 changed)
OCL=34991
CL=34996

15 years agomore cleanup
Robert Griesemer [Fri, 25 Sep 2009 00:25:25 +0000 (17:25 -0700)]
more cleanup

15 years agocleanup in personal dir:
Robert Griesemer [Fri, 25 Sep 2009 00:25:24 +0000 (17:25 -0700)]
cleanup in personal dir:
- delete some unused files (copies archived elsewhere)

TBR=r
OCL=34994
CL=34994

15 years agoSqrt in assembler is worth 3-4X for nbody
Rob Pike [Thu, 24 Sep 2009 21:47:34 +0000 (14:47 -0700)]
Sqrt in assembler is worth 3-4X for nbody

R=rsc
DELTA=10  (10 added, 0 deleted, 0 changed)
OCL=34987
CL=34987

15 years agoinstall assembly math.Sqrt on amd64
Russ Cox [Thu, 24 Sep 2009 21:27:52 +0000 (14:27 -0700)]
install assembly math.Sqrt on amd64

R=r
DELTA=33  (32 added, 0 deleted, 1 changed)
OCL=34983
CL=34986

15 years agomissing files; cleaned up g4 nothave output.
Russ Cox [Thu, 24 Sep 2009 20:38:18 +0000 (13:38 -0700)]
missing files; cleaned up g4 nothave output.
fixes 386 build.

R=r
DELTA=56  (56 added, 0 deleted, 0 changed)
OCL=34979
CL=34981

15 years agodelete obsolete Makefile
Robert Griesemer [Thu, 24 Sep 2009 20:17:09 +0000 (13:17 -0700)]
delete obsolete Makefile

TBR=rsc
OCL=34978
CL=34978

15 years agoconvert 8l to new ELF code.
Russ Cox [Thu, 24 Sep 2009 19:53:35 +0000 (12:53 -0700)]
convert 8l to new ELF code.
mostly cut and paste from 6l.

R=r
DELTA=930  (525 added, 182 deleted, 223 changed)
OCL=34976
CL=34976

15 years agoallow runes >= 0x80 in symbols in #pragmas
Russ Cox [Thu, 24 Sep 2009 18:45:08 +0000 (11:45 -0700)]
allow runes >= 0x80 in symbols in #pragmas

R=ken
OCL=34975
CL=34975

15 years agoadd Size method to dwarf.Type
Russ Cox [Thu, 24 Sep 2009 18:43:38 +0000 (11:43 -0700)]
add Size method to dwarf.Type

R=r
DELTA=30  (24 added, 3 deleted, 3 changed)
OCL=34950
CL=34974

15 years agocgo checkpoint.
Russ Cox [Thu, 24 Sep 2009 18:43:19 +0000 (11:43 -0700)]
cgo checkpoint.
can write all 3 output files and then compile them by hand.

R=r
DELTA=919  (841 added, 16 deleted, 62 changed)
OCL=34954
CL=34973

15 years agoSwitch ogle over to the in-tree debug/proc package. Fix
Austin Clements [Thu, 24 Sep 2009 16:07:47 +0000 (09:07 -0700)]
Switch ogle over to the in-tree debug/proc package.  Fix
debug/proc to install to the right place.  Delete the old
ptrace package.  The diff looks huge, but it's mostly
s/ptrace/proc/.

R=rsc
APPROVED=rsc
DELTA=1940  (10 added, 1835 deleted, 95 changed)
OCL=34966
CL=34968

15 years agoFix declared and not used errors in ogle.
Austin Clements [Thu, 24 Sep 2009 15:32:59 +0000 (08:32 -0700)]
Fix declared and not used errors in ogle.

R=rsc
APPROVED=rsc
DELTA=8  (0 added, 2 deleted, 6 changed)
OCL=34854
CL=34965

15 years agoFix declared and not set errors in old ptrace package (still
Austin Clements [Thu, 24 Sep 2009 15:32:10 +0000 (08:32 -0700)]
Fix declared and not set errors in old ptrace package (still
used by ogle)

R=rsc
APPROVED=rsc
DELTA=4  (0 added, 1 deleted, 3 changed)
OCL=34852
CL=34964

15 years agoFix declared and not used errors and unused import errors in
Austin Clements [Thu, 24 Sep 2009 15:25:14 +0000 (08:25 -0700)]
Fix declared and not used errors and unused import errors in
the interpreter and update code to use ast.BasicDecl and
multi-type switch.  There are still a lot of "switch _ :=
x.(type)" that should make use of the new type switch syntax,
but those will be a different CL.

R=rsc
APPROVED=rsc
DELTA=58  (16 added, 23 deleted, 19 changed)
OCL=34853
CL=34963

15 years agoFix declared and not used errors in old sym package (ogle
Austin Clements [Thu, 24 Sep 2009 15:19:16 +0000 (08:19 -0700)]
Fix declared and not used errors in old sym package (ogle
hasn't been ported to the new sym package yet)

R=rsc
APPROVED=rsc
DELTA=9  (0 added, 1 deleted, 8 changed)
OCL=34851
CL=34962

15 years agogo/printer: fix sync bug - avoid sending on errors twice -
Russ Cox [Thu, 24 Sep 2009 08:37:27 +0000 (01:37 -0700)]
go/printer: fix sync bug - avoid sending on errors twice -
and report node type in error

R=gri
DELTA=4  (3 added, 0 deleted, 1 changed)
OCL=34949
CL=34955

15 years agochange code font to "monospace", which will
Russ Cox [Thu, 24 Sep 2009 04:38:52 +0000 (21:38 -0700)]
change code font to "monospace", which will
let the browser use the font the user has set up
as the default fixed-width font, instead of forcing Courier.

also set the size to 100%, which means 100% of the
font size in the surrounding text.  this looks a little
better in the main body but much better when the
code is in a heading (like Package unsafe).

R=r
DELTA=4  (1 added, 0 deleted, 3 changed)
OCL=34947
CL=34947

15 years agoexpand ticker interface to allow a client to shut down a ticker.
Rob Pike [Wed, 23 Sep 2009 20:02:14 +0000 (13:02 -0700)]
expand ticker interface to allow a client to shut down a ticker.
existing interface still works.

R=rsc
DELTA=50  (32 added, 2 deleted, 16 changed)
OCL=34930
CL=34932

15 years agoprocess tutorial into new format
Rob Pike [Wed, 23 Sep 2009 19:31:57 +0000 (12:31 -0700)]
process tutorial into new format

R=rsc
DELTA=161  (57 added, 56 deleted, 48 changed)
OCL=34926
CL=34929

15 years agonacl - run tests under emulator.
Russ Cox [Tue, 22 Sep 2009 23:56:28 +0000 (16:56 -0700)]
nacl - run tests under emulator.
special all-nacl.bash and test/run-nacl that
run just the tests known to work under nacl.
the rest requires closures.

fix another bug or two in syscall.

R=r
DELTA=420  (410 added, 8 deleted, 2 changed)
OCL=34882
CL=34907

15 years agochanges to accommodate nacl:
Russ Cox [Tue, 22 Sep 2009 23:28:32 +0000 (16:28 -0700)]
changes to accommodate nacl:
  * change ldt0setup to set GS itself; nacl won't let us do it.
  * change breakpoint to INT $3 so 8l can translate to HLT for nacl.
  * panic if closure is needed on nacl.
  * do not try to access symbol table on nacl.
  * mmap in 64kB chunks.

nacl support:
  * system calls, threading, locks.

R=r
DELTA=365  (357 added, 5 deleted, 3 changed)
OCL=34880
CL=34906

15 years agorestore the old algorithm. the new one is more memory efficient in large cases
Rob Pike [Tue, 22 Sep 2009 21:53:48 +0000 (14:53 -0700)]
restore the old algorithm. the new one is more memory efficient in large cases
but too slow across the board.

R=rsc
DELTA=315  (50 added, 219 deleted, 46 changed)
OCL=34868
CL=34902

15 years agoupdated numbers after more slice inlining
Rob Pike [Tue, 22 Sep 2009 21:13:40 +0000 (14:13 -0700)]
updated numbers after more slice inlining

R=rsc
DELTA=57  (57 added, 0 deleted, 0 changed)
OCL=34896
CL=34901

15 years agofix bad code generation.
Kai Backman [Tue, 22 Sep 2009 20:13:23 +0000 (13:13 -0700)]
fix bad code generation.

go/test: passes 64% (215/337) tests

metric updated, had total number of tests wrong. number of
failing tests is down from 129 to 122.

R=rsc
APPROVED=rsc
DELTA=228  (12 added, 5 deleted, 211 changed)
OCL=34897
CL=34899

15 years agonacl syscall: write return values to correct stack location
Russ Cox [Tue, 22 Sep 2009 17:34:44 +0000 (10:34 -0700)]
nacl syscall: write return values to correct stack location

R=r
DELTA=18  (0 added, 0 deleted, 18 changed)
OCL=34894
CL=34894

15 years agonacl syscall package - machine generated files
Russ Cox [Tue, 22 Sep 2009 14:49:49 +0000 (07:49 -0700)]
nacl syscall package - machine generated files

R=r
DELTA=515  (515 added, 0 deleted, 0 changed)
OCL=34881
CL=34891

15 years agonacl syscall package.
Russ Cox [Tue, 22 Sep 2009 14:49:31 +0000 (07:49 -0700)]
nacl syscall package.
similar tweaks to make debug/proc, net, os build.

R=r
DELTA=861  (855 added, 4 deleted, 2 changed)
OCL=34877
CL=34890

15 years agouse $(shell uname) instead of $GOOS when
Russ Cox [Tue, 22 Sep 2009 14:48:43 +0000 (07:48 -0700)]
use $(shell uname) instead of $GOOS when
deciding what the host process support is.
this makes a cross-compiling (e.g., GOOS=nacl) build
still generate valid host debugger binaries.

R=r
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=34878
CL=34889

15 years agonacl:
Russ Cox [Tue, 22 Sep 2009 08:10:40 +0000 (01:10 -0700)]
nacl:
add jmp to constant pc.
generate HLT for INT $3
do not insert NOPs between REP/REPN and subsequent instruction.
allow very long time for convergence.

R=ken
OCL=34879
CL=34879

15 years agotest of named operations
Russ Cox [Tue, 22 Sep 2009 05:45:19 +0000 (22:45 -0700)]
test of named operations

R=r
DELTA=305  (305 added, 0 deleted, 0 changed)
OCL=34848
CL=34875

15 years agomore inlining of sliceslice
Ken Thompson [Tue, 22 Sep 2009 01:23:16 +0000 (18:23 -0700)]
more inlining of sliceslice

R=rsc
OCL=34871
CL=34871

15 years agoimproved spacing around if, switch, and for control clauses
Robert Griesemer [Tue, 22 Sep 2009 01:07:20 +0000 (18:07 -0700)]
improved spacing around if, switch, and for control clauses

R=r
DELTA=89  (82 added, 5 deleted, 2 changed)
OCL=34870
CL=34870

15 years agorewrite RET, indirect CALL, indirect JMP for nacl.
Russ Cox [Mon, 21 Sep 2009 22:48:22 +0000 (15:48 -0700)]
rewrite RET, indirect CALL, indirect JMP for nacl.
can JMP or CALL indirect through a register R
provided the preceding instruction is AND $~31, R.

R=ken
OCL=34863
CL=34867

15 years agoconvert 386 to use %gs instead of %fs for extern register.
Russ Cox [Mon, 21 Sep 2009 22:46:50 +0000 (15:46 -0700)]
convert 386 to use %gs instead of %fs for extern register.
required for nacl and may be nicer for ffi,
because %gs is the standard register for thread-local storage.

R=ken
OCL=34861
CL=34866

15 years agoideal bools and related fixes
Russ Cox [Mon, 21 Sep 2009 22:45:55 +0000 (15:45 -0700)]
ideal bools and related fixes

R=ken
OCL=34859
CL=34865