summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-09-28disallow interface { x, y() }Russ Cox1-10/+9
R=ken OCL=35042 CL=35044
2009-09-25Add eval and ogle to the build process so they can be kept upAustin Clements1-0/+6
to date. R=rsc APPROVED=rsc DELTA=8 (6 added, 0 deleted, 2 changed) OCL=35009 CL=35011
2009-09-25Switch ogle to in-tree gosym package. Delete my private symAustin Clements1-1/+3
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
2009-09-24comparisons have type boolRuss Cox1-6/+6
R=ken OCL=34995 CL=34997
2009-09-24install assembly math.Sqrt on amd64Russ Cox3-1/+33
R=r DELTA=33 (32 added, 0 deleted, 1 changed) OCL=34983 CL=34986
2009-09-24missing files; cleaned up g4 nothave output.Russ Cox2-0/+33
fixes 386 build. R=r DELTA=56 (56 added, 0 deleted, 0 changed) OCL=34979 CL=34981
2009-09-24convert 8l to new ELF code.Russ Cox10-379/+722
mostly cut and paste from 6l. R=r DELTA=930 (525 added, 182 deleted, 223 changed) OCL=34976 CL=34976
2009-09-24allow runes >= 0x80 in symbols in #pragmasRuss Cox1-2/+2
R=ken OCL=34975 CL=34975
2009-09-24add Size method to dwarf.TypeRuss Cox1-6/+27
R=r DELTA=30 (24 added, 3 deleted, 3 changed) OCL=34950 CL=34974
2009-09-24cgo checkpoint.Russ Cox10-68/+885
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
2009-09-24Switch ogle over to the in-tree debug/proc package. FixAustin Clements1-1/+1
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
2009-09-24go/printer: fix sync bug - avoid sending on errors twice -Russ Cox1-1/+4
and report node type in error R=gri DELTA=4 (3 added, 0 deleted, 1 changed) OCL=34949 CL=34955
2009-09-23expand ticker interface to allow a client to shut down a ticker.Rob Pike2-18/+48
existing interface still works. R=rsc DELTA=50 (32 added, 2 deleted, 16 changed) OCL=34930 CL=34932
2009-09-22nacl - run tests under emulator.Russ Cox4-3/+29
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
2009-09-22changes to accommodate nacl:Russ Cox15-6/+358
* 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
2009-09-22restore the old algorithm. the new one is more memory efficient in large casesRob Pike1-262/+93
but too slow across the board. R=rsc DELTA=315 (50 added, 219 deleted, 46 changed) OCL=34868 CL=34902
2009-09-22fix bad code generation.Kai Backman2-8/+7
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
2009-09-22nacl syscall: write return values to correct stack locationRuss Cox1-18/+18
R=r DELTA=18 (0 added, 0 deleted, 18 changed) OCL=34894 CL=34894
2009-09-22nacl syscall package - machine generated filesRuss Cox5-0/+515
R=r DELTA=515 (515 added, 0 deleted, 0 changed) OCL=34881 CL=34891
2009-09-22nacl syscall package.Russ Cox15-6/+857
similar tweaks to make debug/proc, net, os build. R=r DELTA=861 (855 added, 4 deleted, 2 changed) OCL=34877 CL=34890
2009-09-22use $(shell uname) instead of $GOOS whenRuss Cox3-3/+3
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
2009-09-22nacl:Russ Cox4-5/+35
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
2009-09-21more inlining of slicesliceKen Thompson1-12/+37
R=rsc OCL=34871 CL=34871
2009-09-21improved spacing around if, switch, and for control clausesRobert Griesemer4-5/+82
R=r DELTA=89 (82 added, 5 deleted, 2 changed) OCL=34870 CL=34870
2009-09-21rewrite RET, indirect CALL, indirect JMP for nacl.Russ Cox1-3/+66
can JMP or CALL indirect through a register R provided the preceding instruction is AND $~31, R. R=ken OCL=34863 CL=34867
2009-09-21convert 386 to use %gs instead of %fs for extern register.Russ Cox6-37/+29
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
2009-09-21ideal bools and related fixesRuss Cox11-40/+76
R=ken OCL=34859 CL=34865
2009-09-21add required conversions; bug in compiler let it slip throughRuss Cox1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=34860 CL=34864
2009-09-21move strings.Buffer into bytesRob Pike9-669/+370
delete strings.Buffer add a test for a bug not caught before (mustn't install zero-length blocks) R=rsc DELTA=987 (289 added, 587 deleted, 111 changed) OCL=34850 CL=34850
2009-09-21step 2 of the great buffer shift.Rob Pike5-68/+280
make strings.Buffer handle strings and bytes with comparable efficiency. if ok, next step will be to move this code to bytes.Buffer and terminate strings.Buffer's short happy life. R=rsc DELTA=292 (212 added, 0 deleted, 80 changed) OCL=34837 CL=34849
2009-09-21accept CALL $(constant) to call absolute PCRuss Cox4-2/+14
R=ken OCL=34845 CL=34845
2009-09-20Unit tests for image/png, based off the semi-official pngsuite fromNigel Tao35-1/+1160
libpng.org. R=rsc APPROVED=r DELTA=1176 (1175 added, 1 deleted, 0 changed) OCL=34727 CL=34838
2009-09-19- filter trailing whitespaceRobert Griesemer4-26/+95
- removed some unused code R=rsc DELTA=103 (84 added, 15 deleted, 4 changed) OCL=34816 CL=34829
2009-09-18expanded arm regression testing. will go away once 5g is compliantKai Backman1-3/+12
R=rsc APPROVED=rsc DELTA=300 (297 added, 0 deleted, 3 changed) OCL=34813 CL=34821
2009-09-188l: step toward native client.Russ Cox4-20/+111
- ELF header bits and addresses - do not let instructions span 32-byte boundary - align CALLs so return is to 32-byte boundary - align indirect jump targets to 32-byte boundary (only possible indirect jumps are function entries) still to do: - replace indirect jump, indirect call, and ret with nacl-approved instruction sequences - switch to GS segment for m-local storage R=ken OCL=34818 CL=34818
2009-09-18merge first pass into main loop in span calculation.Russ Cox1-45/+26
having one copy will cut nacl changes in half. R=ken OCL=34815 CL=34815
2009-09-18changed 5c calling convention to use stack exclusively for inKai Backman6-9/+20
params. a number of fixes to assembly routines that assumed R0 had the first arg. one stack offset fix, arm pushes the link register on stack top. go/test: passes 65% (235/364) tests R=rsc APPROVED=rsc DELTA=20 (11 added, 0 deleted, 9 changed) OCL=34809 CL=34812
2009-09-18fix build again; this time for sure. sighRuss Cox1-3/+3
TBR=r OCL=34803 CL=34803
2009-09-18fix 5g -S and -g outputKai Backman2-22/+101
R=rsc APPROVED=rsc DELTA=115 (93 added, 14 deleted, 8 changed) OCL=34798 CL=34802
2009-09-18revert setting of name from type. already set correctly.Kai Backman1-1/+0
R=rsc APPROVED=rsc DELTA=1 (0 added, 1 deleted, 0 changed) OCL=34799 CL=34801
2009-09-18fix build - missing fileRuss Cox1-0/+0
TBR=r OCL=34800 CL=34800
2009-09-18cgo: can look up C identifier kind (type or value) and typeRuss Cox7-310/+638
gmp.go:197:4: type mpz_t C type mpz_t gmp.go:205:2: call mpz_init C value func(mpz_ptr) void gmp.go:206:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void gmp.go:221:2: call mpz_init C value func(mpz_ptr) void gmp.go:227:7: call size_t C type size_t gmp.go:228:2: call mpz_export C value func(*void, *size_t, int, size_t, int, size_t, mpz_srcptr) *void gmp.go:235:13: call mpz_sizeinbase C value func(mpz_srcptr, int) size_t gmp.go:241:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void gmp.go:252:3: call mpz_import C value func(mpz_ptr, size_t, int, size_t, int, size_t, *const void) void gmp.go:261:2: call mpz_set_si C value func(mpz_ptr, long int) void gmp.go:273:5: call mpz_set_str C value func(mpz_ptr, *const char, int) int gmp.go:282:9: call mpz_get_str C value func(*char, int, mpz_srcptr) *char gmp.go:287:3: call mpz_clear C value func(mpz_ptr) void gmp.go:302:2: call mpz_add C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:311:2: call mpz_sub C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:320:2: call mpz_mul C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:329:2: call mpz_tdiv_q C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:339:2: call mpz_tdiv_r C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:348:2: call mpz_mul_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:356:2: call mpz_div_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:367:3: call mpz_pow_ui C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:369:3: call mpz_powm C value func(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr) void gmp.go:378:2: call mpz_neg C value func(mpz_ptr, mpz_srcptr) void gmp.go:386:2: call mpz_abs C value func(mpz_ptr, mpz_srcptr) void gmp.go:404:9: call mpz_cmp C value func(mpz_srcptr, mpz_srcptr) int gmp.go:413:2: call mpz_tdiv_qr C value func(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:426:2: call mpz_gcdext C value func(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void R=r DELTA=938 (628 added, 308 deleted, 2 changed) OCL=34733 CL=34791
2009-09-18add DWARF method to elf.File.Russ Cox6-42/+76
test both ELF and Mach-O in dwarf package. R=r DELTA=83 (44 added, 10 deleted, 29 changed) OCL=34717 CL=34790
2009-09-18Mach-O file readingRuss Cox7-0/+775
R=r DELTA=784 (784 added, 0 deleted, 0 changed) OCL=34715 CL=34788
2009-09-18Rudimentary command shell for Ogle. Hack to prevent linkerAustin Clements1-0/+6
from inlining newprocreadylocked. Fix type bridge's handling of basic types. Include interpreter's Thread in bridged native function calls. ; load . "6.out" Started 6.out ; BpSet("main·merge") ; ContWait() breakpoint at 0x400800 => 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19 ; bt => 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19 400b6a main·mergeSort+0x1be /home/austin/src-go1/usr/austin/ptrace/test/sort.go:34 448313 goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133 ; main.merge.a {1} ; load . "pid:25753" Attached to 25753 ; bt => 479ddf syscall·Syscall+0x24 /home/austin/src-go1/src/pkg/syscall/asm_linux_amd64.s:24 47c011 syscall·Read+0x5d /home/austin/src-go1/src/pkg/syscall/zsyscall_linux_amd64.go:368 4119e5 os·*File·Read+0x5f /home/austin/src-go1/src/pkg/os/file.go:122 427bf3 bufio·*Reader·fill+0x116 /home/austin/src-go1/src/pkg/bufio/bufio.go:105 428361 bufio·*Reader·ReadSlice+0x195 /home/austin/src-go1/src/pkg/bufio/bufio.go:244 40204a ogle·Main+0x94 /home/austin/src-go1/usr/austin/ogle/cmd.go:226 40080f main·main+0xf /home/austin/src-go1/usr/austin/ogle/main.go:6 41c4b8 mainstart+0xf /home/austin/src-go1/src/pkg/runtime/amd64/asm.s:55 41531f goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133 R=rsc APPROVED=rsc DELTA=433 (420 added, 2 deleted, 11 changed) OCL=34410 CL=34782
2009-09-17use buf.String() instead of string(buf.Bytes())Rob Pike12-29/+27
use strings.Buffer instead of bytes.Buffer in some places R=rsc DELTA=40 (0 added, 3 deleted, 37 changed) OCL=34770 CL=34775
2009-09-17fixing width bug in DATA output. some logging to make fixingKai Backman2-5/+6
similar issues easier in the future. R=rsc APPROVED=rsc DELTA=6 (1 added, 0 deleted, 5 changed) OCL=34771 CL=34773
2009-09-17fix code generation of CMP to use registers properly. also fixKai Backman4-30/+72
one case of uninitialized memory and some output. R=rsc APPROVED=rsc DELTA=73 (43 added, 1 deleted, 29 changed) OCL=34743 CL=34772
2009-09-17floating point constants and symbol export fix.Kai Backman1-16/+15
R=rsc APPROVED=rsc DELTA=16 (0 added, 1 deleted, 15 changed) OCL=34753 CL=34769
2009-09-17move static init code from 6g into gc.Russ Cox8-267/+261
hook up to 8g and 5g too. R=ken OCL=34768 CL=34768