]>
Cypherpunks repositories - gostls13.git/log
Ian Lance Taylor [Tue, 21 Jul 2009 06:26:03 +0000 (23:26 -0700)]
Make struct field names unique.
R=rsc
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=31900
CL=31900
Austin Clements [Tue, 21 Jul 2009 00:41:40 +0000 (17:41 -0700)]
Implement array types and index expressions.
Some cleanup. Elem() on PtrType is now just Elem and matches
with ArrayType. Generators now switch over the result type
instead of the operand type. Delete unused diag function.
R=rsc
APPROVED=rsc
DELTA=281 (219 added, 18 deleted, 44 changed)
OCL=31876
CL=31891
Russ Cox [Tue, 21 Jul 2009 00:41:18 +0000 (17:41 -0700)]
fix cut-and-paste bugs in error messages
R=ken
OCL=31890
CL=31890
Austin Clements [Mon, 20 Jul 2009 23:14:48 +0000 (16:14 -0700)]
Fix typo. MUL_ASSIGN is "*=", not "+=".
R=gri
APPROVED=gri
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31879
CL=31886
Russ Cox [Mon, 20 Jul 2009 21:16:25 +0000 (14:16 -0700)]
avoid strncat in formatters.
the n argument to strncat is the maximum
number of bytes to read from the src,
not the total size of the destination.
R=ken
OCL=31871
CL=31875
Russ Cox [Mon, 20 Jul 2009 21:15:36 +0000 (14:15 -0700)]
triple quote
R=ken
OCL=31868
CL=31874
Russ Cox [Mon, 20 Jul 2009 20:37:35 +0000 (13:37 -0700)]
fix memset in fmtnull.
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31863
CL=31870
Robert Griesemer [Mon, 20 Jul 2009 20:37:28 +0000 (13:37 -0700)]
- bignum.AndNot
- corresponding test cases
- some cleanups
R=rsc
DELTA=173 (68 added, 3 deleted, 102 changed)
OCL=31866
CL=31869
Russ Cox [Mon, 20 Jul 2009 20:29:56 +0000 (13:29 -0700)]
explain selectsend problem
R=ken
OCL=31865
CL=31867
Rob Pike [Mon, 20 Jul 2009 20:19:47 +0000 (13:19 -0700)]
6l cleanup: last set of magic numbers for elf64 moved to ld/elf64*.
R=rsc
DELTA=68 (21 added, 28 deleted, 19 changed)
OCL=31857
CL=31864
Rob Pike [Mon, 20 Jul 2009 17:08:48 +0000 (10:08 -0700)]
clean up generation of exec header.
make endianness explicit when writing values.
R=rsc
DELTA=129 (37 added, 7 deleted, 85 changed)
OCL=31826
CL=31854
Rob Pike [Sat, 18 Jul 2009 00:32:34 +0000 (17:32 -0700)]
take care of a few more magic numbers
R=rsc
DELTA=51 (41 added, 0 deleted, 10 changed)
OCL=31815
CL=31818
Austin Clements [Fri, 17 Jul 2009 23:58:59 +0000 (16:58 -0700)]
Gather errors in a go.scanner.ErrorList instead of printing
them as we go.
Lots of bug fixes. Let the parser toss illegal character and
string literals. Compile unary + correctly. Allow float OP
ideal. Compile unary * correctly. Implement min and max float
values.
R=rsc
APPROVED=rsc
DELTA=64 (29 added, 7 deleted, 28 changed)
OCL=31811
CL=31814
Rob Pike [Fri, 17 Jul 2009 23:34:58 +0000 (16:34 -0700)]
count SHdrs and PHdrs and write them out as a unit
R=rsc
DELTA=181 (93 added, 63 deleted, 25 changed)
OCL=31802
CL=31812
Robert Griesemer [Fri, 17 Jul 2009 23:22:55 +0000 (16:22 -0700)]
- better documentation
- code cleanup
R=rsc,austin
DELTA=28 (12 added, 2 deleted, 14 changed)
OCL=31808
CL=31810
Ian Lance Taylor [Fri, 17 Jul 2009 23:12:29 +0000 (16:12 -0700)]
Recognize gccgo error message.
explicit.go:21:5: error: incompatible types in assignment (need explicit conversion)
explicit.go:26:5: error: incompatible types in assignment (type has no methods)
explicit.go:27:5: error: incompatible types in assignment (need explicit conversion)
explicit.go:30:6: error: incompatible types in assignment (need explicit conversion; missing method ‘N’)
explicit.go:33:7: error: invalid type conversion (need explicit conversion; missing method ‘N’)
explicit.go:36:5: error: incompatible types in assignment
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31805
CL=31807
Austin Clements [Fri, 17 Jul 2009 22:09:43 +0000 (15:09 -0700)]
Support exponential notation in RatFromString.
R=gri
APPROVED=gri
DELTA=30 (25 added, 0 deleted, 5 changed)
OCL=31796
CL=31799
Rob Pike [Fri, 17 Jul 2009 22:09:17 +0000 (15:09 -0700)]
more elf64 support: phdrs, constants
R=rsc
DELTA=130 (68 added, 6 deleted, 56 changed)
OCL=31798
CL=31798
Austin Clements [Fri, 17 Jul 2009 21:58:02 +0000 (14:58 -0700)]
Produce friendlier errors messages for malformed character
literals and when the parser hits an unexpected EOF. Also,
disallow newlines in character literals.
R=gri
APPROVED=gri
DELTA=23 (15 added, 1 deleted, 7 changed)
OCL=31790
CL=31797
Russ Cox [Fri, 17 Jul 2009 21:42:14 +0000 (14:42 -0700)]
another baby step.
excluding import data,
no yacc node has type Type* anymore.
0 reduce/reduce conflicts.
R=ken
OCL=31793
CL=31795
Rob Pike [Fri, 17 Jul 2009 21:32:37 +0000 (14:32 -0700)]
First steps towards cleaner support for ELF64 in 6l.
R=rsc
DELTA=337 (165 added, 119 deleted, 53 changed)
OCL=31786
CL=31794
Rob Pike [Fri, 17 Jul 2009 21:20:33 +0000 (14:20 -0700)]
change reflect.Type.Name() into two functions: Name() and PkgPath() for ease of use.
R=rsc
DELTA=31 (8 added, 2 deleted, 21 changed)
OCL=31778
CL=31792
Russ Cox [Fri, 17 Jul 2009 20:38:16 +0000 (13:38 -0700)]
baby step: const decls can refer to future
consts in the same factored block
const (
X = Y;
Y = 2;
)
R=ken
OCL=31782
CL=31782
Austin Clements [Fri, 17 Jul 2009 18:50:32 +0000 (11:50 -0700)]
Finish shift implementation for ideals.
R=rsc
APPROVED=rsc
DELTA=65 (29 added, 17 deleted, 19 changed)
OCL=31775
CL=31777
Rob Pike [Fri, 17 Jul 2009 18:38:31 +0000 (11:38 -0700)]
ignore missing structs
R=rsc
DELTA=113 (74 added, 14 deleted, 25 changed)
OCL=31776
CL=31776
Austin Clements [Fri, 17 Jul 2009 17:45:53 +0000 (10:45 -0700)]
Cleanup func literals. "func (" -> "func("
R=rsc
APPROVED=rsc
DELTA=41 (0 added, 0 deleted, 41 changed)
OCL=31773
CL=31773
Austin Clements [Fri, 17 Jul 2009 17:38:44 +0000 (10:38 -0700)]
Implement all unary and binary arithmetic operators.
R=rsc
APPROVED=rsc
DELTA=689 (497 added, 169 deleted, 23 changed)
OCL=31755
CL=31772
Russ Cox [Fri, 17 Jul 2009 08:00:44 +0000 (01:00 -0700)]
another step toward eliminating forward declarations.
introduce NodeList* type in compiler to replace OLIST.
this clarifies where lists can and cannot occur.
list append and concatenation are now cheap.
the _r rules are gone from yacc.
rev and unrev are gone.
no more lists of lists.
the representation of assignments is a bit clunkier.
split into OAS (1=1) and OAS2 (2 or more on one side).
delete dead chanrecv3 code.
delay construction of func types.
R=ken
OCL=31745
CL=31762
Rob Pike [Fri, 17 Jul 2009 06:14:33 +0000 (23:14 -0700)]
fix up prints in flag.go
R=rsc
DELTA=11 (0 added, 0 deleted, 11 changed)
OCL=31760
CL=31760
Rob Pike [Fri, 17 Jul 2009 06:01:10 +0000 (23:01 -0700)]
clean up the code, flow errors out to decoder.
R=rsc
DELTA=99 (32 added, 22 deleted, 45 changed)
OCL=31759
CL=31759
Rob Pike [Fri, 17 Jul 2009 04:24:30 +0000 (21:24 -0700)]
use FieldByName where possible.
R=rsc
DELTA=20 (0 added, 12 deleted, 8 changed)
OCL=31758
CL=31758
Robert Griesemer [Fri, 17 Jul 2009 03:31:41 +0000 (20:31 -0700)]
- renamed SimpleVarDecl -> ShortVarDecl, in sync with terminology used in prose
- added a few TODOs
R=r
DELTA=4 (2 added, 0 deleted, 2 changed)
OCL=31751
CL=31756
Rob Pike [Fri, 17 Jul 2009 01:21:14 +0000 (18:21 -0700)]
add FieldByName to the interface of reflect.StructType
R=rsc
DELTA=34 (33 added, 0 deleted, 1 changed)
OCL=31752
CL=31754
Rob Pike [Fri, 17 Jul 2009 00:55:16 +0000 (17:55 -0700)]
- allow wire type and receive type to differ.
- still TODO: ignoring struct fields.
R=rsc
DELTA=309 (240 added, 2 deleted, 67 changed)
OCL=31750
CL=31750
Robert Griesemer [Fri, 17 Jul 2009 00:11:18 +0000 (17:11 -0700)]
ast:
- renamed Program -> SourceFile
- added Package node representing the AST for an entire package
- added filter function to create a source file mimicking the
interface of an entire package
parser:
- parser entry to parse entire packages
- unified naming of parser entry points
- factored out entry points into new file (interface.go)
gofmt:
- extended to accept single .go files, and package paths:
gofmt file.go // formatting of a single file
gofmt -x file.go // interface of a single file
gofmt -x ./MyPackage // interface of a local package
gofmt -x math // interface of a $GOROOT relative package
Various adjustments in dependent files, documentation.
R=rsc
DELTA=634 (369 added, 153 deleted, 112 changed)
OCL=31743
CL=31748
Rob Pike [Thu, 16 Jul 2009 22:01:21 +0000 (15:01 -0700)]
fix some bad testing prints
R=rsc
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=31740
CL=31742
Rob Pike [Thu, 16 Jul 2009 20:05:46 +0000 (13:05 -0700)]
clean up the decode loop and fix a couple of bad prints
R=rsc
DELTA=15 (8 added, 2 deleted, 5 changed)
OCL=31738
CL=31738
Austin Clements [Thu, 16 Jul 2009 16:48:37 +0000 (09:48 -0700)]
Fix handling of non-waitable zombie threads. Now they are not
considered running, so WaitStop doesn't lock up and
breakpoints get installed and uninstalled. We also don't try
to detach from them, since that will fail.
R=rsc
APPROVED=rsc
DELTA=35 (26 added, 2 deleted, 7 changed)
OCL=31683
CL=31731
David Symonds [Thu, 16 Jul 2009 06:24:27 +0000 (23:24 -0700)]
exvar: new Timer var type.
R=rsc
APPROVED=r
DELTA=146 (142 added, 0 deleted, 4 changed)
OCL=31654
CL=31716
Rob Pike [Thu, 16 Jul 2009 04:28:45 +0000 (21:28 -0700)]
add rpc to the build
R=rsc
DELTA=3 (3 added, 0 deleted, 0 changed)
OCL=31693
CL=31714
Rob Pike [Thu, 16 Jul 2009 04:28:08 +0000 (21:28 -0700)]
/usr/local/bin might not exist so use /usr/bin in the chdir test.
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31708
CL=31713
Austin Clements [Thu, 16 Jul 2009 00:56:17 +0000 (17:56 -0700)]
Make Value always represent an l-value and never a generic
container for values.
Instead of having one evaluator function that returns a
generic Value, there is now an evaluator function for each
generalized type that simply returns a native type.
The compiler is more type-safe now because there are almost no
type conversions at evaluation time and it's impossible to
invoke a nil evaluator function during evaluation. This also
makes ideals and pointers really clean.
As an added bonus, expression evaluation should be faster
because it doesn't require heap allocation for every
intermediate value, type switches, or lots of conversions to
and from Value. It also involves fewer function calls.
R=rsc
APPROVED=rsc
DELTA=431 (280 added, 115 deleted, 36 changed)
OCL=31705
CL=31709
Rob Pike [Wed, 15 Jul 2009 23:11:14 +0000 (16:11 -0700)]
improve server handling of errors now that Decoder grabs full message.
R=rsc
DELTA=23 (4 added, 7 deleted, 12 changed)
OCL=31701
CL=31703
Rob Pike [Wed, 15 Jul 2009 23:10:17 +0000 (16:10 -0700)]
make the low-level encoder and decoder private and have them access byte.Buffers rather
than io.Readers and io.Writers.
change the Encoder/Decoder protocol so that each message is preceded by its length in bytes.
R=rsc
DELTA=468 (119 added, 23 deleted, 326 changed)
OCL=31700
CL=31702
Rob Pike [Wed, 15 Jul 2009 19:38:50 +0000 (12:38 -0700)]
post-submit tweaks to previous cl
R=rsc
DELTA=5 (4 added, 1 deleted, 0 changed)
OCL=31690
CL=31692
Austin Clements [Wed, 15 Jul 2009 18:59:13 +0000 (11:59 -0700)]
Beginnings of a Go interpreter. This implements basic and
pointer types, supports literals, identifiers, type-checking
most unary and binary operators, "compiling" a few unary and
binary operators, and assignment and declaration statements.
R=rsc
APPROVED=rsc
DELTA=1751 (1751 added, 0 deleted, 0 changed)
OCL=31309
CL=31691
Rob Pike [Wed, 15 Jul 2009 18:47:29 +0000 (11:47 -0700)]
handle errors better:
1) terminate outstanding calls on the client when we see EOF from server
2) allow data to drain on server before closing the connection
R=rsc
DELTA=41 (23 added, 4 deleted, 14 changed)
OCL=31687
CL=31689
Russ Cox [Wed, 15 Jul 2009 17:49:47 +0000 (10:49 -0700)]
change HTTP access for RPC.
1. use CONNECT instead of GET.
CONNECT has exactly the meaning
we want; most of the time people
connect to ip:port; we're connecting
to /_goRPC_
2. wait for a successful HTTP response
before assuming we are connected to
the RPC protocol. this allows better
error reporting and also keeps the
protocol alternating between speakers,
so that the buffering in the HTTP request
reader cannot accidentally eat some
RPC bytes too.
gotest sometimes hangs, but not in HTTP.
gotest -match=Unknown hangs every few runs
even in a clean client.
R=r
DELTA=117 (57 added, 44 deleted, 16 changed)
OCL=31656
CL=31685
Austin Clements [Wed, 15 Jul 2009 17:17:56 +0000 (10:17 -0700)]
Implement forking debugged processes.
R=rsc
APPROVED=rsc
DELTA=81 (53 added, 3 deleted, 25 changed)
OCL=31651
CL=31675
Robert Griesemer [Wed, 15 Jul 2009 17:12:57 +0000 (10:12 -0700)]
- do not collect BUG comments w/o bug description
R=rsc
DELTA=17 (8 added, 0 deleted, 9 changed)
OCL=31670
CL=31674
Austin Clements [Wed, 15 Jul 2009 17:12:06 +0000 (10:12 -0700)]
Add a dummy WaitStatus.TrapCause for Darwin to unbreak the build.
R=gri
APPROVED=gri
DELTA=5 (5 added, 0 deleted, 0 changed)
OCL=31673
CL=31673
Austin Clements [Wed, 15 Jul 2009 16:58:42 +0000 (09:58 -0700)]
Pretty printer for os.Waitmsg
R=rsc
APPROVED=rsc
DELTA=49 (49 added, 0 deleted, 0 changed)
OCL=31568
CL=31671
Rob Pike [Wed, 15 Jul 2009 03:47:39 +0000 (20:47 -0700)]
add HTTP support
R=rsc
DELTA=159 (110 added, 29 deleted, 20 changed)
OCL=31646
CL=31652
Austin Clements [Wed, 15 Jul 2009 01:05:29 +0000 (18:05 -0700)]
Return ptrace event message when there's no error instead of
only when there's an error.
R=rsc
APPROVED=rsc
DELTA=3 (0 added, 2 deleted, 1 changed)
OCL=31650
CL=31650
Rob Pike [Wed, 15 Jul 2009 00:44:20 +0000 (17:44 -0700)]
allow user to override the Usage function
R=gri
DELTA=15 (6 added, 5 deleted, 4 changed)
OCL=31649
CL=31649
Robert Griesemer [Wed, 15 Jul 2009 00:08:09 +0000 (17:08 -0700)]
fixed typo
TBR=r
OCL=31647
CL=31647
Robert Griesemer [Tue, 14 Jul 2009 23:30:20 +0000 (16:30 -0700)]
- interface and comments cleanup
R=rsc
DELTA=33 (1 added, 3 deleted, 29 changed)
OCL=31620
CL=31642
Robert Griesemer [Tue, 14 Jul 2009 23:30:06 +0000 (16:30 -0700)]
- removed TODO, minor adjustments
R=rsc
DELTA=16 (6 added, 1 deleted, 9 changed)
OCL=31638
CL=31641
Russ Cox [Tue, 14 Jul 2009 22:29:29 +0000 (15:29 -0700)]
darwin ptrace constants
R=austin
DELTA=42 (37 added, 5 deleted, 0 changed)
OCL=31618
CL=31633
Austin Clements [Tue, 14 Jul 2009 22:12:10 +0000 (15:12 -0700)]
Implementation of process tracing using Linux's ptrace.
R=rsc
APPROVED=rsc
DELTA=1543 (1528 added, 0 deleted, 15 changed)
OCL=31570
CL=31630
Austin Clements [Tue, 14 Jul 2009 22:09:39 +0000 (15:09 -0700)]
Support ptracing of fork'd children.
R=rsc
APPROVED=rsc
DELTA=26 (22 added, 1 deleted, 3 changed)
OCL=31613
CL=31629
Austin Clements [Tue, 14 Jul 2009 20:59:54 +0000 (13:59 -0700)]
Zero unused syscall arguments.
R=rsc
APPROVED=rsc
DELTA=12 (12 added, 0 deleted, 0 changed)
OCL=31619
CL=31621
Rob Pike [Tue, 14 Jul 2009 20:23:14 +0000 (13:23 -0700)]
improve rpc code. more robust. more tests.
R=rsc
DELTA=186 (133 added, 20 deleted, 33 changed)
OCL=31611
CL=31616
Austin Clements [Tue, 14 Jul 2009 18:59:19 +0000 (11:59 -0700)]
Regenerate Linux 386 syscall bindings to add ptrace.
R=rsc
APPROVED=rsc
DELTA=82 (80 added, 2 deleted, 0 changed)
OCL=31610
CL=31612
Austin Clements [Tue, 14 Jul 2009 17:53:04 +0000 (10:53 -0700)]
Syscall wrappers for ptrace and supporting wait-related flags.
R=rsc
APPROVED=rsc
DELTA=311 (308 added, 3 deleted, 0 changed)
OCL=31569
CL=31606
Robert Griesemer [Tue, 14 Jul 2009 17:46:18 +0000 (10:46 -0700)]
update remaining files to match new scanner/parser interface
and use shared error handling infrastructure
R=rsc
DELTA=109 (3 added, 86 deleted, 20 changed)
OCL=31600
CL=31605
Robert Griesemer [Tue, 14 Jul 2009 17:45:57 +0000 (10:45 -0700)]
- adjust to new token.Position definition
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31574
CL=31604
Robert Griesemer [Tue, 14 Jul 2009 17:45:43 +0000 (10:45 -0700)]
- use new scanner error handling code
R=rsc
DELTA=109 (0 added, 87 deleted, 22 changed)
OCL=31573
CL=31603
Robert Griesemer [Tue, 14 Jul 2009 17:45:22 +0000 (10:45 -0700)]
- adjust to new scanner interface (pass filename to Init)
- delete error handling code which is not needed anymore
R=rsc
DELTA=83 (0 added, 65 deleted, 18 changed)
OCL=31572
CL=31602
Robert Griesemer [Tue, 14 Jul 2009 17:44:57 +0000 (10:44 -0700)]
- added Filename field to token.Position
- handle //line filename:line comments in scanner
- moved error handling code used by various scanner clients
to errors.go
- added extra tests
R=rsc
DELTA=385 (343 added, 18 deleted, 24 changed)
OCL=31551
CL=31601
Russ Cox [Tue, 14 Jul 2009 16:28:42 +0000 (09:28 -0700)]
dead code
R=r
DELTA=20 (0 added, 20 deleted, 0 changed)
OCL=31584
CL=31598
Russ Cox [Tue, 14 Jul 2009 06:38:39 +0000 (23:38 -0700)]
step toward no function prototypes.
delay evaluation of most types (all but func)
from parse time to type check time.
R=ken
OCL=31585
CL=31585
Russ Cox [Tue, 14 Jul 2009 06:30:30 +0000 (23:30 -0700)]
update 6g to new REGARG convention.
silence gcc warning.
R=ken
OCL=31583
CL=31583
Russ Cox [Tue, 14 Jul 2009 06:29:44 +0000 (23:29 -0700)]
bug148.
R=ken
OCL=31582
CL=31582
Kai Backman [Tue, 14 Jul 2009 05:06:28 +0000 (22:06 -0700)]
added missing pieces required by reflection
R=rsc
APPROVED=rsc
DELTA=61 (40 added, 18 deleted, 3 changed)
OCL=31502
CL=31580
Kai Backman [Tue, 14 Jul 2009 05:04:24 +0000 (22:04 -0700)]
tiny naming cleanup
R=rsc
APPROVED=rsc
DELTA=17 (0 added, 0 deleted, 17 changed)
OCL=31503
CL=31579
Kai Backman [Tue, 14 Jul 2009 03:33:59 +0000 (20:33 -0700)]
fix bug in codegen when we modified move instruction instead
of text.
R=rsc
APPROVED=rsc
DELTA=3 (1 added, 2 deleted, 0 changed)
OCL=31575
CL=31575
Austin Clements [Tue, 14 Jul 2009 02:28:00 +0000 (19:28 -0700)]
Avoid clash between os.WRUSAGE and Linux's WALL flag.
R=rsc
APPROVED=rsc
DELTA=5 (4 added, 0 deleted, 1 changed)
OCL=31564
CL=31567
Russ Cox [Tue, 14 Jul 2009 02:20:43 +0000 (19:20 -0700)]
compilers were inconsistent about
whether no register argument was
REGARG == 0 or REGARG < 0.
use REGARG < 0 because arm needs 0 for R0.
R=ken
OCL=31562
CL=31566
Austin Clements [Tue, 14 Jul 2009 02:20:38 +0000 (19:20 -0700)]
Add accessor for SIGTRAP cause in wait status
R=rsc
APPROVED=rsc
DELTA=7 (7 added, 0 deleted, 0 changed)
OCL=31563
CL=31565
Russ Cox [Tue, 14 Jul 2009 00:28:39 +0000 (17:28 -0700)]
add LockOSThread and UnlockOSThread to
runtime package for use by debugger,
which needs to make sure that all ptrace calls
about a given pid come from the same thread.
R=r
DELTA=175 (90 added, 63 deleted, 22 changed)
OCL=31546
CL=31558
Rob Pike [Mon, 13 Jul 2009 23:52:57 +0000 (16:52 -0700)]
rpc.
client library.
muxes on both ends.
R=rsc
DELTA=178 (132 added, 26 deleted, 20 changed)
OCL=31541
CL=31556
Russ Cox [Mon, 13 Jul 2009 23:48:09 +0000 (16:48 -0700)]
fix undefined function error.
before:
mainstart: undefined: main·init in mainstart
mainstart: branch out of range in mainstart
(95) CALL ,0(PC) [main·init]
mainstart: undefined: main·main in mainstart
mainstart: branch out of range in mainstart
(97) CALL ,0(PC) [main·main]
mainstart: doasm: notfound from=6f to=6f (95) CALL ,
mainstart: doasm: notfound from=6f to=6f (97) CALL ,
mainstart: doasm: notfound from=6f to=6f (95) CALL ,
mainstart: doasm: notfound from=6f to=6f (97) CALL ,
mainstart: doasm: notfound from=6f to=6f (95) CALL ,
mainstart: doasm: notfound from=6f to=6f (97) CALL ,
after:
mainstart: undefined: main·init in mainstart
mainstart: undefined: main·main in mainstart
R=r
DELTA=7 (1 added, 0 deleted, 6 changed)
OCL=31555
CL=31555
Russ Cox [Mon, 13 Jul 2009 22:54:41 +0000 (15:54 -0700)]
add note about once and closures
R=r
DELTA=13 (13 added, 0 deleted, 0 changed)
OCL=31535
CL=31549
Robert Griesemer [Mon, 13 Jul 2009 20:55:39 +0000 (13:55 -0700)]
- handle type forward declarations correctly
R=r
DELTA=8 (6 added, 0 deleted, 2 changed)
OCL=31537
CL=31537
Rob Pike [Mon, 13 Jul 2009 19:58:14 +0000 (12:58 -0700)]
the beginnings of an rpc service.
server side only; no client help yet (but it's easy).
no http yet.
service is synchronous.
all this will improve.
R=rsc
DELTA=403 (403 added, 0 deleted, 0 changed)
OCL=31522
CL=31536
Rob Pike [Mon, 13 Jul 2009 18:41:02 +0000 (11:41 -0700)]
the name of the type was being sent twice. drop the outer instance.
R=rsc
DELTA=10 (5 added, 1 deleted, 4 changed)
OCL=31523
CL=31526
Robert Griesemer [Mon, 13 Jul 2009 17:26:58 +0000 (10:26 -0700)]
ebnflint command
- basic verification of EBNF grammars
- tested with (and has testcase for) go_spec.html
R=rsc
DELTA=150 (148 added, 0 deleted, 2 changed)
OCL=31481
CL=31517
Robert Griesemer [Mon, 13 Jul 2009 17:10:56 +0000 (10:10 -0700)]
Basic EBNF package:
- parsing of EBNF grammars
- basic consistency checks
R=rsc
DELTA=695 (695 added, 0 deleted, 0 changed)
OCL=31479
CL=31516
Kai Backman [Mon, 13 Jul 2009 05:12:33 +0000 (22:12 -0700)]
fixed typo where output arguments where pushed on to R0
instead of SP.
R=rsc
APPROVED=rsc
DELTA=13 (3 added, 7 deleted, 3 changed)
OCL=31488
CL=31501
Kai Backman [Mon, 13 Jul 2009 05:12:19 +0000 (22:12 -0700)]
Fixed minor typo in asm file.
R=rsc
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=31487
CL=31500
Rob Pike [Sat, 11 Jul 2009 22:45:54 +0000 (15:45 -0700)]
first cut at gob decoder.
R=rsc
DELTA=184 (181 added, 1 deleted, 2 changed)
OCL=31474
CL=31486
Robert Griesemer [Sat, 11 Jul 2009 01:21:07 +0000 (18:21 -0700)]
capital_letter was never used
R=rsc
DELTA=2 (0 added, 1 deleted, 1 changed)
OCL=31472
CL=31477
Russ Cox [Fri, 10 Jul 2009 23:32:26 +0000 (16:32 -0700)]
reflection for interface set
rename map access methods to Elem, SetElem.
R=r
DELTA=95 (66 added, 7 deleted, 22 changed)
OCL=31456
CL=31469
Russ Cox [Fri, 10 Jul 2009 23:29:26 +0000 (16:29 -0700)]
cleanup in preparation for new scoping.
walkstate -> walkstmt
walktype -> walkexpr; stmts moved to walkstmt
walktype and friends have a final Node **init
argument that can have side effects appended,
making it more explicit when they do and do not happen.
this replaces the old global addtop and addtotop.
delete switch map and interface conversion cases
(dropped from the language months ago).
R=ken
OCL=31465
CL=31468
Ken Thompson [Fri, 10 Jul 2009 23:12:21 +0000 (16:12 -0700)]
segfault
R=rsc
OCL=31467
CL=31467
Robert Griesemer [Fri, 10 Jul 2009 23:06:40 +0000 (16:06 -0700)]
- mark actual EBNF with pre-formatted class "ebnf" instead of "grammar"
- make real productions for Unicode char classes so that they can be parsed
- use `` for tokens that contain "'s or \'s so that they can be parsed
- added a missing '.'
This version of the spec passes through ebnflint (forthcoming) without errors.
R=r,rsc
DELTA=74 (3 added, 1 deleted, 70 changed)
OCL=31464
CL=31466
Rob Pike [Fri, 10 Jul 2009 20:50:44 +0000 (13:50 -0700)]
one more piece of testing: 2nd send should not send type info.
R=rsc
DELTA=25 (25 added, 0 deleted, 0 changed)
OCL=31460
CL=31460
Rob Pike [Fri, 10 Jul 2009 20:44:37 +0000 (13:44 -0700)]
a better encoder test, with a couple of fixes for bugs it uncovered.
R=rsc
DELTA=84 (65 added, 9 deleted, 10 changed)
OCL=31458
CL=31458
Rob Pike [Fri, 10 Jul 2009 18:20:10 +0000 (11:20 -0700)]
DeepEqual for maps
R=rsc
DELTA=47 (30 added, 16 deleted, 1 changed)
OCL=31455
CL=31455