aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/slice.c
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-07-31 13:48:48 -0700
committerKeith Randall <khr@golang.org>2014-07-31 13:48:48 -0700
commit721c8735dffcf488b1ff1c072909eb84426f3da3 (patch)
tree32129d785505661f1390cca65ccaff4a9f157bf6 /src/pkg/runtime/slice.c
parent53304558f95660233be1259b817fb1ca4693279d (diff)
downloadgo-721c8735dffcf488b1ff1c072909eb84426f3da3.tar.xz
runtime: move built-in print routines to go.
Fixes #8297 LGTM=bradfitz R=golang-codereviews, bradfitz, khr, dave, dvyukov CC=golang-codereviews https://golang.org/cl/119240043
Diffstat (limited to 'src/pkg/runtime/slice.c')
-rw-r--r--src/pkg/runtime/slice.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c
deleted file mode 100644
index 5483a2084d..0000000000
--- a/src/pkg/runtime/slice.c
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-#include "runtime.h"
-#include "arch_GOARCH.h"
-
-void
-runtime·printslice_m(G *gp)
-{
- void *array;
- uintptr len, cap;
-
- array = g->m->ptrarg[0];
- g->m->ptrarg[0] = nil;
- len = g->m->scalararg[0];
- cap = g->m->scalararg[1];
-
- runtime·prints("[");
- runtime·printint(len);
- runtime·prints("/");
- runtime·printint(cap);
- runtime·prints("]");
- runtime·printpointer(array);
-
- runtime·gogo(&gp->sched);
-}