2013-02-22 11:06:43 -07:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
|
|
|
// +build race
|
|
|
|
|
2013-08-07 13:20:05 -06:00
|
|
|
#include "../../cmd/ld/textflag.h"
|
|
|
|
|
2013-02-27 23:32:29 -07:00
|
|
|
// func runtime·racefuncenter(pc uintptr)
|
2013-08-07 13:20:05 -06:00
|
|
|
TEXT runtime·racefuncenter(SB), NOSPLIT, $16-8
|
2013-02-27 23:32:29 -07:00
|
|
|
MOVQ DX, saved-8(SP) // save function entry context (for closures)
|
|
|
|
MOVQ pc+0(FP), DX
|
|
|
|
MOVQ DX, arg-16(SP)
|
2013-02-22 11:06:43 -07:00
|
|
|
CALL runtime·racefuncenter1(SB)
|
2013-02-27 23:32:29 -07:00
|
|
|
MOVQ saved-8(SP), DX
|
2013-02-22 11:06:43 -07:00
|
|
|
RET
|