]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoconvert testing to World.
Russ Cox [Thu, 3 Sep 2009 23:20:49 +0000 (16:20 -0700)]
convert testing to World.
start on Decl, but not working yet

R=austin
DELTA=762  (201 added, 205 deleted, 356 changed)
OCL=34335
CL=34349

15 years agomissed in last compiler change
Russ Cox [Thu, 3 Sep 2009 23:18:03 +0000 (16:18 -0700)]
missed in last compiler change

R=ken
OCL=34348
CL=34348

15 years agofix linux 386 build
Russ Cox [Thu, 3 Sep 2009 23:17:21 +0000 (16:17 -0700)]
fix linux 386 build

R=austin
DELTA=140  (128 added, 0 deleted, 12 changed)
OCL=34344
CL=34347

15 years agocorrected bug187; dropped on the floor somehow
Russ Cox [Thu, 3 Sep 2009 23:17:06 +0000 (16:17 -0700)]
corrected bug187; dropped on the floor somehow

R=austin
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=34340
CL=34346

15 years agonil in DeepEqual
Russ Cox [Thu, 3 Sep 2009 22:45:43 +0000 (15:45 -0700)]
nil in DeepEqual

R=r
DELTA=13  (5 added, 6 deleted, 2 changed)
OCL=34337
CL=34343

15 years agostop using filename for disambiguation within a package.
Russ Cox [Thu, 3 Sep 2009 22:23:21 +0000 (15:23 -0700)]
stop using filename for disambiguation within a package.

R=ken
OCL=34339
CL=34341

15 years agofix range on invalid utf8 bug
Russ Cox [Thu, 3 Sep 2009 20:56:06 +0000 (13:56 -0700)]
fix range on invalid utf8 bug

R=r
DELTA=42  (21 added, 20 deleted, 1 changed)
OCL=34328
CL=34333

15 years agopartial rune at end makes string range loop forever
Rob Pike [Thu, 3 Sep 2009 20:33:16 +0000 (13:33 -0700)]
partial rune at end makes string range loop forever

R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=34330
CL=34332

15 years agonew benchmark results.
Rob Pike [Thu, 3 Sep 2009 18:41:01 +0000 (11:41 -0700)]
new benchmark results.
main changes:
gccgo is much slower on  binary-tree and fannkuch
6g seems to struggle with alignment of loops in nbody (dignosis uncertain)
6g is a little faster at regexps and concurrency

R=rsc
DELTA=93  (93 added, 0 deleted, 0 changed)
OCL=34320
CL=34322

15 years agofix bug187 (itself buggy)
Russ Cox [Thu, 3 Sep 2009 17:59:52 +0000 (10:59 -0700)]
fix bug187 (itself buggy)

R=austin
DELTA=26  (0 added, 26 deleted, 0 changed)
OCL=34294
CL=34317

15 years agoFix uninstalling of breakpoints when a process exits. Process
Austin Clements [Thu, 3 Sep 2009 17:55:20 +0000 (10:55 -0700)]
Fix uninstalling of breakpoints when a process exits.  Process
exit is still handled poorly.

R=rsc
APPROVED=rsc
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=34288
CL=34315

15 years agosimplify extractEBNF code
Robert Griesemer [Thu, 3 Sep 2009 17:53:27 +0000 (10:53 -0700)]
simplify extractEBNF code

R=rsc
DELTA=15  (3 added, 2 deleted, 10 changed)
OCL=34307
CL=34314

15 years agosilence hlint
Robert Griesemer [Thu, 3 Sep 2009 17:35:09 +0000 (10:35 -0700)]
silence hlint

R=r
DELTA=7  (0 added, 4 deleted, 3 changed)
OCL=34310
CL=34312

15 years agouse %L in listings so we see source line number in easy format
Rob Pike [Thu, 3 Sep 2009 17:24:38 +0000 (10:24 -0700)]
use %L in listings so we see source line number in easy format

R=ken
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=34309
CL=34311

15 years agolinkify EBNF sections in spec when served via godoc
Robert Griesemer [Thu, 3 Sep 2009 16:58:13 +0000 (09:58 -0700)]
linkify EBNF sections in spec when served via godoc

R=rsc
DELTA=217  (216 added, 0 deleted, 1 changed)
OCL=34279
CL=34306

15 years agounsafe is not declared in the outermost scope
Russ Cox [Thu, 3 Sep 2009 16:46:24 +0000 (09:46 -0700)]
unsafe is not declared in the outermost scope

R=gri
DELTA=3  (0 added, 3 deleted, 0 changed)
OCL=34305
CL=34305

15 years agofix one bug involving [...] constructors.
Russ Cox [Thu, 3 Sep 2009 06:26:13 +0000 (23:26 -0700)]
fix one bug involving [...] constructors.

added iant's bug202 (in main code)
and ken's bug203 (in init function).
bug187 remains at large.

R=ken
OCL=34293
CL=34293

15 years agoUpdate restriction on declarations of methods.
Stephen Ma [Thu, 3 Sep 2009 03:09:25 +0000 (20:09 -0700)]
Update restriction on declarations of methods.

APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34289
CL=34289

15 years agoconvenience wrapper
Russ Cox [Thu, 3 Sep 2009 00:15:43 +0000 (17:15 -0700)]
convenience wrapper

R=austin
DELTA=142  (128 added, 4 deleted, 10 changed)
OCL=34275
CL=34284

15 years agofix initialization of noreturn
Rob Pike [Thu, 3 Sep 2009 00:14:30 +0000 (17:14 -0700)]
fix initialization of noreturn

R=ken
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=34283
CL=34283

15 years agofor loops
Rob Pike [Wed, 2 Sep 2009 23:41:41 +0000 (16:41 -0700)]
for loops
comment out incomplete stuff

R=rsc
DELTA=61  (58 added, 0 deleted, 3 changed)
OCL=34278
CL=34281

15 years agomove abortChan into Thread.
Russ Cox [Wed, 2 Sep 2009 21:11:40 +0000 (14:11 -0700)]
move abortChan into Thread.
reuse Thread in function calls.

R=austin
DELTA=59  (8 added, 7 deleted, 44 changed)
OCL=34266
CL=34266

15 years agofix build
Russ Cox [Wed, 2 Sep 2009 20:13:40 +0000 (13:13 -0700)]
fix build

TBR=gri
OCL=34264
CL=34264

15 years agoheap algorithm
Robert Griesemer [Wed, 2 Sep 2009 19:54:38 +0000 (12:54 -0700)]
heap algorithm

R=rsc
DELTA=196  (194 added, 0 deleted, 2 changed)
OCL=34234
CL=34263

15 years agoadd debug/gosym and debug/proc to build
Russ Cox [Wed, 2 Sep 2009 19:03:33 +0000 (12:03 -0700)]
add debug/gosym and debug/proc to build
(was waiting until after release)

R=austin
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=34222
CL=34261

15 years agos/vm/Thread/
Russ Cox [Wed, 2 Sep 2009 19:03:20 +0000 (12:03 -0700)]
s/vm/Thread/
change eval functions from taking *Frame to *Thread

R=austin
DELTA=500  (7 added, 4 deleted, 489 changed)
OCL=34256
CL=34260

15 years agoUpdate asInterface now that 6g type switch is fixed.
Austin Clements [Wed, 2 Sep 2009 18:59:53 +0000 (11:59 -0700)]
Update asInterface now that 6g type switch is fixed.

R=rsc
APPROVED=rsc
DELTA=31  (0 added, 4 deleted, 27 changed)
OCL=34251
CL=34259

15 years agofix bug introduced in 33293
Russ Cox [Wed, 2 Sep 2009 18:12:42 +0000 (11:12 -0700)]
fix bug introduced in 33293

R=r
OCL=34253
CL=34253

15 years agothe last bug involving type hashes
Russ Cox [Wed, 2 Sep 2009 16:09:32 +0000 (09:09 -0700)]
the last bug involving type hashes

R=ken
OCL=34244
CL=34249

15 years agotwo gob nits found with stricter 6g
Russ Cox [Wed, 2 Sep 2009 16:03:42 +0000 (09:03 -0700)]
two gob nits found with stricter 6g

(6g had a few pretty major bugs
where it was more lax than it should
have been when checking when things
satisfied interfaces; i fixed them and
this turned up.)

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34243
CL=34248

15 years agoadd generator for expr1.go
Russ Cox [Wed, 2 Sep 2009 05:57:53 +0000 (22:57 -0700)]
add generator for expr1.go

R=austin
DELTA=959  (404 added, 99 deleted, 456 changed)
OCL=34214
CL=34237

15 years agotype switch bug involving function parameter names
Russ Cox [Wed, 2 Sep 2009 01:04:49 +0000 (18:04 -0700)]
type switch bug involving function parameter names

R=ken
OCL=34232
CL=34232

15 years agoInterpreter unit tests for statements and expressions
Austin Clements [Wed, 2 Sep 2009 00:21:44 +0000 (17:21 -0700)]
Interpreter unit tests for statements and expressions

R=rsc
APPROVED=rsc
DELTA=1003  (1003 added, 0 deleted, 0 changed)
OCL=34223
CL=34227

15 years agoDon't crash for regexps > 19 characters.
Austin Clements [Tue, 1 Sep 2009 23:46:16 +0000 (16:46 -0700)]
Don't crash for regexps > 19 characters.

R=r
APPROVED=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34216
CL=34220

15 years agotemplate:
Russ Cox [Tue, 1 Sep 2009 23:31:49 +0000 (16:31 -0700)]
template:
  * do full lookup for {.section},
   so that it is always allowed to replace
{Foo} with {.section Foo}{@}{.end}
  * treat False as empty so that .section can
   be used to test bools

R=r
DELTA=29  (21 added, 0 deleted, 8 changed)
OCL=34215
CL=34219

15 years agomake debug/proc "build" on more architectures
Russ Cox [Tue, 1 Sep 2009 23:19:14 +0000 (16:19 -0700)]
make debug/proc "build" on more architectures

R=austin
DELTA=17  (0 added, 16 deleted, 1 changed)
OCL=34213
CL=34218

15 years agoSwitch back to returning Value from the public expression
Austin Clements [Tue, 1 Sep 2009 23:17:50 +0000 (16:17 -0700)]
Switch back to returning Value from the public expression
interface, but implement it better this time.  Also, work
around a 6g bug in asInterface.

R=rsc
APPROVED=rsc
DELTA=39  (13 added, 1 deleted, 25 changed)
OCL=34211
CL=34217

15 years agoimport debug/gosym from usr/austin/sym
Russ Cox [Tue, 1 Sep 2009 23:11:17 +0000 (16:11 -0700)]
import debug/gosym from usr/austin/sym

R=austin
DELTA=958  (956 added, 0 deleted, 2 changed)
OCL=34180
CL=34212

15 years agoClean up the statement and expression public interfaces. The
Austin Clements [Tue, 1 Sep 2009 21:16:51 +0000 (14:16 -0700)]
Clean up the statement and expression public interfaces.  The
only visible change is that evaluating an expression returns a
interface{} instead of a Value.

R=rsc
APPROVED=rsc
DELTA=60  (15 added, 26 deleted, 19 changed)
OCL=34206
CL=34208

15 years agocatch package net import "net" for release
Russ Cox [Tue, 1 Sep 2009 21:12:09 +0000 (14:12 -0700)]
catch package net import "net" for release

R=ken
OCL=34205
CL=34207

15 years agoupdated Implementation differences section
Robert Griesemer [Tue, 1 Sep 2009 21:07:30 +0000 (14:07 -0700)]
updated Implementation differences section

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

15 years agocasing operations for byte arrays
Rob Pike [Tue, 1 Sep 2009 20:46:59 +0000 (13:46 -0700)]
casing operations for byte arrays

R=rsc
DELTA=186  (181 added, 0 deleted, 5 changed)
OCL=34203
CL=34203

15 years agoAdd stack frame support. Architectures are now responsible
Austin Clements [Tue, 1 Sep 2009 20:01:37 +0000 (13:01 -0700)]
Add stack frame support.  Architectures are now responsible
for decoding closures.  There is now no notion of a current OS
thread, though that needs to come back in the form of a
current Go thread.  As a result, Process now implements Peek
and Poke and maps them to any stopped OS thread, since they
all share the address space anyways.

R=rsc
APPROVED=rsc
DELTA=322  (310 added, 3 deleted, 9 changed)
OCL=34136
CL=34201

15 years agodon't show exported methods of non-exported types
Robert Griesemer [Tue, 1 Sep 2009 18:56:42 +0000 (11:56 -0700)]
don't show exported methods of non-exported types

R=rsc
DELTA=44  (10 added, 30 deleted, 4 changed)
OCL=34195
CL=34200

15 years agoadded "Under construction" to package comment
Robert Griesemer [Tue, 1 Sep 2009 18:56:24 +0000 (11:56 -0700)]
added "Under construction" to package comment

R=rsc
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=34196
CL=34199

15 years agomove generated code into its own file.
Russ Cox [Tue, 1 Sep 2009 18:51:33 +0000 (11:51 -0700)]
move generated code into its own file.
simplify expr by merging all simple eval functions
into a single eval interface{}.

R=austin
DELTA=1597  (730 added, 780 deleted, 87 changed)
OCL=34182
CL=34198

15 years agoimport debug/proc from usr/austin/ptrace
Russ Cox [Tue, 1 Sep 2009 18:51:05 +0000 (11:51 -0700)]
import debug/proc from usr/austin/ptrace

R=austin
DELTA=1892  (1892 added, 0 deleted, 0 changed)
OCL=34183
CL=34197

15 years agomake ToUpper, ToLower etc. handle unicode properly.
Rob Pike [Tue, 1 Sep 2009 18:06:28 +0000 (11:06 -0700)]
make ToUpper, ToLower etc. handle unicode properly.
Change their names too.

R=rsc
DELTA=206  (123 added, 2 deleted, 81 changed)
OCL=34170
CL=34194

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 1 Sep 2009 04:39:08 +0000 (21:39 -0700)]
Match gccgo error messages.

bug197.go:10:5: error: incompatible type in initialization
bug197.go:11:5: error: incompatible type in initialization
bug197.go:12:5: error: incompatible type in initialization
bug197.go:13:5: error: incompatible type in initialization
bug197.go:20:13: error: incompatible types in binary expression
bug197.go:21:27: error: incompatible types in binary expression

R=rsc
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=34135
CL=34177

15 years agotest that ASCII optimizations agree with the unicode tables
Rob Pike [Tue, 1 Sep 2009 04:18:40 +0000 (21:18 -0700)]
test that ASCII optimizations agree with the unicode tables

R=rsc
DELTA=40  (40 added, 0 deleted, 0 changed)
OCL=34168
CL=34176

15 years agoIsSpace
Rob Pike [Tue, 1 Sep 2009 01:12:40 +0000 (18:12 -0700)]
IsSpace

R=rsc
DELTA=39  (39 added, 0 deleted, 0 changed)
OCL=34153
CL=34167

15 years agoadd newprocreadylocked for debugger
Russ Cox [Tue, 1 Sep 2009 01:10:11 +0000 (18:10 -0700)]
add newprocreadylocked for debugger

R=austin
DELTA=10  (9 added, 0 deleted, 1 changed)
OCL=34163
CL=34166

15 years agofix 386 build
Russ Cox [Tue, 1 Sep 2009 01:05:12 +0000 (18:05 -0700)]
fix 386 build

R=ken
OCL=34164
CL=34164

15 years agoremove leftover forward-decl syntax and example
Robert Griesemer [Tue, 1 Sep 2009 00:57:14 +0000 (17:57 -0700)]
remove leftover forward-decl syntax and example
(per feedback from Austin)

R=rsc
DELTA=7  (0 added, 2 deleted, 5 changed)
OCL=34158
CL=34161

15 years ago- use "package block" nomenclature for exported identifier section
Robert Griesemer [Tue, 1 Sep 2009 00:30:55 +0000 (17:30 -0700)]
- use "package block" nomenclature for exported identifier section
- same capitalization for "Declarations and scope" section as for
  other sections

DELTA=23  (2 added, 1 deleted, 20 changed)
OCL=34131
CL=34156

15 years agosubmitter's regret. rename Props to Properties
Rob Pike [Mon, 31 Aug 2009 23:48:56 +0000 (16:48 -0700)]
submitter's regret. rename Props to Properties

R=rsc
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=34148
CL=34151

15 years agoelf file parser
Russ Cox [Mon, 31 Aug 2009 23:48:44 +0000 (16:48 -0700)]
elf file parser

R=austin
DELTA=448  (447 added, 0 deleted, 1 changed)
OCL=34139
CL=34150

15 years agoadd property tables
Rob Pike [Mon, 31 Aug 2009 23:43:17 +0000 (16:43 -0700)]
add property tables

R=rsc
DELTA=1087  (1001 added, 78 deleted, 8 changed)
OCL=34137
CL=34147

15 years agoconvert C runtime to 32-bit runes;
Russ Cox [Mon, 31 Aug 2009 23:38:50 +0000 (16:38 -0700)]
convert C runtime to 32-bit runes;
rune now unsigned.

R=r
DELTA=10  (1 added, 0 deleted, 9 changed)
OCL=34140
CL=34146

15 years agofmt: add verbs:
Russ Cox [Mon, 31 Aug 2009 23:38:30 +0000 (16:38 -0700)]
fmt: add verbs:
%E - upper case %e
%G - upper case %g
%#v - Go syntax

R=r
DELTA=332  (238 added, 47 deleted, 47 changed)
OCL=34091
CL=34145

15 years agoadd SectionReader, ReaderAt.
Russ Cox [Mon, 31 Aug 2009 23:34:43 +0000 (16:34 -0700)]
add SectionReader, ReaderAt.

R=r
DELTA=85  (85 added, 0 deleted, 0 changed)
OCL=34141
CL=34144

15 years agopackage debug/binary
Russ Cox [Mon, 31 Aug 2009 23:10:16 +0000 (16:10 -0700)]
package debug/binary

R=austin
DELTA=320  (320 added, 0 deleted, 0 changed)
OCL=33983
CL=34143

15 years agotranslate C ld/elf.h into Go
Russ Cox [Mon, 31 Aug 2009 23:08:12 +0000 (16:08 -0700)]
translate C ld/elf.h into Go

R=austin
DELTA=1630  (1630 added, 0 deleted, 0 changed)
OCL=34001
CL=34142

15 years agoConsistency changes to container/* packages for iteration.
David Symonds [Mon, 31 Aug 2009 21:43:27 +0000 (14:43 -0700)]
Consistency changes to container/* packages for iteration.

container/list:
  - change Iter to go over the list values

container/ring:
  - add Iter, drop Forward/Backward

container/vector:
  - add channel direction constraints

R=rsc,gri
APPROVED=rsc
DELTA=86  (23 added, 40 deleted, 23 changed)
OCL=33935
CL=34132

15 years agosimplified heuristic for associating const/var decls with types
Robert Griesemer [Mon, 31 Aug 2009 20:13:04 +0000 (13:13 -0700)]
simplified heuristic for associating const/var decls with types
(per suggestion from rsc)

R=rsc
DELTA=24  (3 added, 9 deleted, 12 changed)
OCL=34121
CL=34130

15 years agorearrange some constants. unicode package now defines MaxRune and ReplacementChar.
Rob Pike [Mon, 31 Aug 2009 20:01:25 +0000 (13:01 -0700)]
rearrange some constants.  unicode package now defines MaxRune and ReplacementChar.
utf8 package imports unicode to get those definitions.
regenerate dependencies.

R=rsc
DELTA=41  (19 added, 3 deleted, 19 changed)
OCL=34123
CL=34129

15 years agouse correct pc for printing fn+%#x in tracebacks
Russ Cox [Mon, 31 Aug 2009 17:55:24 +0000 (10:55 -0700)]
use correct pc for printing fn+%#x in tracebacks

R=austin
DELTA=12  (2 added, 0 deleted, 10 changed)
OCL=34098
CL=34120

15 years agoassociate const and var declarations with a type where possible
Robert Griesemer [Mon, 31 Aug 2009 17:47:34 +0000 (10:47 -0700)]
associate const and var declarations with a type where possible

R=rsc
DELTA=105  (87 added, 7 deleted, 11 changed)
OCL=34062
CL=34119

15 years agocan't encode array or slice - catch in sendType rather than failing in Encode
Rob Pike [Mon, 31 Aug 2009 02:46:35 +0000 (19:46 -0700)]
can't encode array or slice - catch in sendType rather than failing in Encode

R=rsc
DELTA=38  (33 added, 3 deleted, 2 changed)
OCL=34101
CL=34104

15 years agofix line numbers, again.
Russ Cox [Mon, 31 Aug 2009 02:21:48 +0000 (19:21 -0700)]
fix line numbers, again.

if first function in file was dead code, it was being
discarded along with the file name information for that file.
leave the functions in the master function list longer:
let xfol take the dead code out of the code list,
and let span skip the unreachable functions during output.

before
throw: sys·mapaccess1: key not in map

panic PC=0x2e7b20
throw+0x33 /Users/rsc/go/src/pkg/runtime/runtime.c:65
throw(0x5834f, 0x0)
sys·mapaccess1+0x73 /Users/rsc/go/src/pkg/runtime/hashmap.c:769
sys·mapaccess1(0x2b9bd0, 0x0)
gob·*Encoder·Encode+0x16b /Users/rsc/go/src/pkg/fmt/print.go:2926
gob·*Encoder·Encode(0x2bb440, 0x0, 0x558b0, 0x0, 0x2e4be0, ...)
main·walk+0x331 :1603
main·walk(0x33a480, 0x0)
main·walk+0x271 :1596
main·walk(0x300640, 0x0)
main·walk+0x271 :1596
main·walk(0x300520, 0x0)
main·walk+0x271 :1596
main·walk(0x300240, 0x0)
main·walk+0x271 :1596
main·walk(0x678f8, 0x0)
main·main+0x22 :1610
main·main()

after
throw: sys·mapaccess1: key not in map

panic PC=0x2e7b20
throw+0x33 /Users/rsc/go/src/pkg/runtime/runtime.c:65
throw(0x5834f, 0x0)
sys·mapaccess1+0x73 /Users/rsc/go/src/pkg/runtime/hashmap.c:769
sys·mapaccess1(0x2b9bd0, 0x0)
gob·*Encoder·Encode+0x16b /Users/rsc/go/src/pkg/gob/encoder.go:319
gob·*Encoder·Encode(0x2bb3c0, 0x0, 0x558b0, 0x0, 0x2e4be0, ...)
main·walk+0x331 /Users/rsc/dir.go:121
main·walk(0x2f6ab0, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301640, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301520, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301240, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x678f8, 0x0)
main·main+0x22 /Users/rsc/dir.go:128
main·main()
mainstart+0xe /Users/rsc/go/src/pkg/runtime/amd64/asm.s:55
mainstart()
goexit /Users/rsc/go/src/pkg/runtime/proc.c:133
goexit()

R=r
DELTA=46  (20 added, 25 deleted, 1 changed)
OCL=34094
CL=34103

15 years agolist untested packages instead of tested
Russ Cox [Mon, 31 Aug 2009 02:21:32 +0000 (19:21 -0700)]
list untested packages instead of tested

R=r
DELTA=68  (12 added, 55 deleted, 1 changed)
OCL=34095
CL=34102

15 years agoarray index bug
Russ Cox [Mon, 31 Aug 2009 01:47:48 +0000 (18:47 -0700)]
array index bug

x[i]
x not addressable, i >= UINF
double evaluated i
second eval killed live registers

manifested as gob instability

R=ken
OCL=34097
CL=34099

15 years agofurther simplification of the case fold calculation.
Rob Pike [Mon, 31 Aug 2009 01:17:52 +0000 (18:17 -0700)]
further simplification of the case fold calculation.
hard to beat at this point, i think.

R=rsc
DELTA=38  (8 added, 21 deleted, 9 changed)
OCL=34092
CL=34096

15 years agocleanup getting ready for static init
Ken Thompson [Sun, 30 Aug 2009 21:43:33 +0000 (14:43 -0700)]
cleanup getting ready for static init

R=rsc
OCL=34090
CL=34090

15 years agoadd the Upper/Lower sequence optimization.
Rob Pike [Sun, 30 Aug 2009 21:02:42 +0000 (14:02 -0700)]
add the Upper/Lower sequence optimization.
tables shrink 900 lines.
mapping code gets a little slower

R=rsc
DELTA=1124  (105 added, 952 deleted, 67 changed)
OCL=34079
CL=34089

15 years agoremoved debug print
Ken Thompson [Sun, 30 Aug 2009 18:36:42 +0000 (11:36 -0700)]
removed debug print

R=r
OCL=34087
CL=34087

15 years agoFix .alternates execution: it was skipping every second token.
David Symonds [Sun, 30 Aug 2009 04:13:32 +0000 (21:13 -0700)]
Fix .alternates execution: it was skipping every second token.

R=r
APPROVED=r
DELTA=13  (11 added, 0 deleted, 2 changed)
OCL=34081
CL=34081

15 years agosped up optimization by not optimizing
Ken Thompson [Sun, 30 Aug 2009 03:33:21 +0000 (20:33 -0700)]
sped up optimization by not optimizing
very large functions.

R=r
OCL=34080
CL=34080

15 years agofirst cut at case mapping tables and library.
Rob Pike [Sat, 29 Aug 2009 06:05:16 +0000 (23:05 -0700)]
first cut at case mapping tables and library.
next cut will do the optimization for alternating sequences.

R=rsc
DELTA=1658  (1620 added, 9 deleted, 29 changed)
OCL=34072
CL=34075

15 years agoSplit decls.go up, taking advantage of whole-package
Austin Clements [Sat, 29 Aug 2009 01:25:56 +0000 (18:25 -0700)]
Split decls.go up, taking advantage of whole-package
compilation to put the definitions in reasonable places.  No
code changes, just movement.

R=rsc
APPROVED=rsc
DELTA=479  (232 added, 247 deleted, 0 changed)
OCL=34067
CL=34069

15 years agoDebugged processes, remote values, and remote type parser
Austin Clements [Sat, 29 Aug 2009 01:04:35 +0000 (18:04 -0700)]
Debugged processes, remote values, and remote type parser

R=rsc
APPROVED=rsc
DELTA=917  (917 added, 0 deleted, 0 changed)
OCL=34049
CL=34066

15 years agoDebugger's remote runtime definitions.
Austin Clements [Sat, 29 Aug 2009 01:04:18 +0000 (18:04 -0700)]
Debugger's remote runtime definitions.

R=rsc
APPROVED=rsc
DELTA=237  (237 added, 0 deleted, 0 changed)
OCL=33966
CL=34065

15 years agoImplement cap, len, and make, as well as the general framework
Austin Clements [Sat, 29 Aug 2009 01:03:03 +0000 (18:03 -0700)]
Implement cap, len, and make, as well as the general framework
for built-in functions and type conversions.  Extract out
common operations on expression nodes for converting them to
ints and implicitly dereferencing arrays.

R=rsc
APPROVED=rsc
DELTA=442  (365 added, 50 deleted, 27 changed)
OCL=34064
CL=34064

15 years agoarraytoslice and some cleanup
Ken Thompson [Fri, 28 Aug 2009 22:44:24 +0000 (15:44 -0700)]
arraytoslice and some cleanup

R=rsc
OCL=34058
CL=34058

15 years agoFix named types being defined to named types. In general, the
Austin Clements [Fri, 28 Aug 2009 21:39:12 +0000 (14:39 -0700)]
Fix named types being defined to named types.  In general, the
code assumes that the definition of a named type is not a
named type, but some code paths could violate that.

R=rsc
APPROVED=rsc
DELTA=9  (5 added, 2 deleted, 2 changed)
OCL=34046
CL=34053

15 years agosliceslice bug
Ken Thompson [Fri, 28 Aug 2009 20:45:48 +0000 (13:45 -0700)]
sliceslice bug

R=rsc
OCL=34050
CL=34050

15 years agobug in sliceslice
Ken Thompson [Fri, 28 Aug 2009 20:32:09 +0000 (13:32 -0700)]
bug in sliceslice

R=rsc
OCL=34047
CL=34047

15 years agoprint the value using (in effect) %v when Printf is given mismatched args for its...
Rob Pike [Fri, 28 Aug 2009 20:02:34 +0000 (13:02 -0700)]
print the value using (in effect) %v when Printf is given mismatched args for its format
Printf("%s", 2) gives %s(int=2)

R=rsc
DELTA=12  (10 added, 0 deleted, 2 changed)
OCL=34042
CL=34044

15 years agoGive NamedTypes a public interface
Austin Clements [Fri, 28 Aug 2009 19:45:30 +0000 (12:45 -0700)]
Give NamedTypes a public interface

R=rsc
APPROVED=rsc
DELTA=32  (14 added, 1 deleted, 17 changed)
OCL=34043
CL=34043

15 years agosliceslice inline
Ken Thompson [Fri, 28 Aug 2009 19:37:39 +0000 (12:37 -0700)]
sliceslice inline

R=rsc
OCL=34041
CL=34041

15 years agofix ", First" ", Last" ranges from UnicodeData.txt
Rob Pike [Fri, 28 Aug 2009 18:57:38 +0000 (11:57 -0700)]
fix ", First" ", Last" ranges from UnicodeData.txt

R=rsc
DELTA=54  (38 added, 2 deleted, 14 changed)
OCL=34032
CL=34040

15 years agoRun the tests for the testing package. Fix them so that they
Ian Lance Taylor [Fri, 28 Aug 2009 18:44:46 +0000 (11:44 -0700)]
Run the tests for the testing package.  Fix them so that they
work.

R=rsc
DELTA=16  (1 added, 1 deleted, 14 changed)
OCL=34012
CL=34038

15 years ago- don't associate factory methods to basic types (which have no explicit declarations)
Robert Griesemer [Fri, 28 Aug 2009 18:39:25 +0000 (11:39 -0700)]
- don't associate factory methods to basic types (which have no explicit declarations)
- be more robust in the presence of absent type declarations

R=rsc
DELTA=81  (63 added, 14 deleted, 4 changed)
OCL=34033
CL=34036

15 years ago- exponentially back off auto-sync'ing instead disabling it in case of failure
Robert Griesemer [Fri, 28 Aug 2009 18:28:05 +0000 (11:28 -0700)]
- exponentially back off auto-sync'ing instead disabling it in case of failure

R=rsc
DELTA=48  (35 added, 3 deleted, 10 changed)
OCL=34030
CL=34034

15 years agoImplement runtime errors, divide-by-zero checking, nil pointer
Austin Clements [Fri, 28 Aug 2009 17:39:57 +0000 (10:39 -0700)]
Implement runtime errors, divide-by-zero checking, nil pointer
checking, bounds checking, and map key checking.

R=rsc
APPROVED=rsc
DELTA=202  (108 added, 72 deleted, 22 changed)
OCL=33981
CL=34031

15 years ago- collect consts and vars in one list
Robert Griesemer [Fri, 28 Aug 2009 16:11:01 +0000 (09:11 -0700)]
- collect consts and vars in one list
- handle absence of forward-decls correctly
  (cannot assume a type was declared before it was used)

R=rsc
DELTA=112  (32 added, 38 deleted, 42 changed)
OCL=34008
CL=34027

15 years ago64 bit lsh, sub, and/or/eor. some placeholder files in syscall and os.
Kai Backman [Fri, 28 Aug 2009 14:23:24 +0000 (07:23 -0700)]
64 bit lsh, sub, and/or/eor. some placeholder files in syscall and os.

R=rsc
APPROVED=rsc
DELTA=204  (139 added, 0 deleted, 65 changed)
OCL=34009
CL=34025

15 years agoBuild fix: fix typo in sort pkg.
David Symonds [Fri, 28 Aug 2009 09:27:32 +0000 (02:27 -0700)]
Build fix: fix typo in sort pkg.

APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34016
CL=34022

15 years agoimprove generated code for godocability
Rob Pike [Fri, 28 Aug 2009 01:38:02 +0000 (18:38 -0700)]
improve generated code for godocability

R=rsc
DELTA=459  (168 added, 279 deleted, 12 changed)
OCL=34005
CL=34007

15 years agoos.File.ReadAt/WriteAt
Russ Cox [Fri, 28 Aug 2009 01:36:45 +0000 (18:36 -0700)]
os.File.ReadAt/WriteAt

R=r
DELTA=84  (81 added, 0 deleted, 3 changed)
OCL=34006
CL=34006