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

Delta Between Two Patch Sets: src/pkg/runtime/stubs.goc

Issue 138740043: code review 138740043: cmd/cc, runtime: preserve C runtime type names in gener... (Closed)
Left Patch Set: diff -r 30698178519cc3125815e08b7119b91c6c6dce13 https://code.google.com/p/go/ Created 10 years, 6 months ago
Right Patch Set: diff -r 14ab6d0208b61ae3aa52a24c89905571e8973d4e https://code.google.com/p/go/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/stubs.go ('k') | src/pkg/runtime/syscall_windows.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2014 The Go Authors. All rights reserved. 1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package runtime 5 package runtime
6 #include "runtime.h" 6 #include "runtime.h"
7 #include "arch_GOARCH.h" 7 #include "arch_GOARCH.h"
8 #include "malloc.h" 8 #include "malloc.h"
9 #include "stack.h" 9 #include "stack.h"
10 #include "../../cmd/ld/textflag.h" 10 #include "../../cmd/ld/textflag.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // For testing. 66 // For testing.
67 // TODO: find a better place for this. 67 // TODO: find a better place for this.
68 func GCMask(x Eface) (mask Slice) { 68 func GCMask(x Eface) (mask Slice) {
69 runtime·getgcmask(x.data, x.type, &mask.array, &mask.len); 69 runtime·getgcmask(x.data, x.type, &mask.array, &mask.len);
70 mask.cap = mask.len; 70 mask.cap = mask.len;
71 } 71 }
72 72
73 #pragma textflag NOSPLIT 73 #pragma textflag NOSPLIT
74 func reflect·typelinks() (ret Slice) { 74 func reflect·typelinks() (ret Slice) {
75 extern Type *typelink[], *etypelink[]; 75 extern Type *runtime·typelink[], *runtime·etypelink[];
76 ret.array = (byte*)typelink; 76 ret.array = (byte*)runtime·typelink;
77 ret.len = etypelink - typelink; 77 ret.len = runtime·etypelink - runtime·typelink;
78 ret.cap = ret.len; 78 ret.cap = ret.len;
79 } 79 }
LEFTRIGHT

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