Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(445)

Unified Diff: src/pkg/runtime/stubs.goc

Issue 138740043: code review 138740043: cmd/cc, runtime: preserve C runtime type names in gener... (Closed)
Patch Set: diff -r 14ab6d0208b61ae3aa52a24c89905571e8973d4e https://code.google.com/p/go/ Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/stubs.go ('k') | src/pkg/runtime/syscall_windows.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/stubs.goc
===================================================================
--- a/src/pkg/runtime/stubs.goc
+++ b/src/pkg/runtime/stubs.goc
@@ -32,11 +32,6 @@
runtime·unlock(p);
}
-#pragma textflag NOSPLIT
-func goreadgogc() (r int32) {
- r = runtime·readgogc();
-}
-
// entry point for testing
// TODO: mcall and run on M stack
func gostringW(str Slice) (s String) {
@@ -44,46 +39,6 @@
}
#pragma textflag NOSPLIT
-func gonanotime() (r int64) {
- r = runtime·nanotime();
-}
-
-#pragma textflag NOSPLIT
-func goatomicload(p *uint32) (v uint32) {
- v = runtime·atomicload(p);
-}
-
-#pragma textflag NOSPLIT
-func goatomicloadp(p **byte) (v *byte) {
- v = runtime·atomicloadp(p);
-}
-
-#pragma textflag NOSPLIT
-func goatomicstore(p *uint32, v uint32) {
- runtime·atomicstore(p, v);
-}
-
-#pragma textflag NOSPLIT
-func goatomicstorep(p **byte, v *byte) {
- runtime·atomicstorep(p, v);
-}
-
-#pragma textflag NOSPLIT
-func runtime·goxadd(p *uint32, x uint32) (ret uint32) {
- ret = runtime·xadd(p, x);
-}
-
-#pragma textflag NOSPLIT
-func runtime·gocas(p *uint32, x uint32, y uint32) (ret bool) {
- ret = runtime·cas(p, x, y);
-}
-
-#pragma textflag NOSPLIT
-func runtime·gocasx(p *uintptr, x uintptr, y uintptr) (ret bool) {
- ret = runtime·casp((void**)p, (void*)x, (void*)y);
-}
-
-#pragma textflag NOSPLIT
func runtime·getg() (ret *G) {
ret = g;
}
@@ -116,12 +71,6 @@
}
#pragma textflag NOSPLIT
-func gopersistentalloc(size uintptr) (x *void) {
- // TODO: used only for itabs for now. Need to make &mstats.other_sys arg parameterized.
- x = runtime·persistentalloc(size, 0, &mstats.other_sys);
-}
-
-#pragma textflag NOSPLIT
func reflect·typelinks() (ret Slice) {
extern Type *runtime·typelink[], *runtime·etypelink[];
ret.array = (byte*)runtime·typelink;
« no previous file with comments | « src/pkg/runtime/stubs.go ('k') | src/pkg/runtime/syscall_windows.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b