- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestStartLineAsm (0.23 sec)
-
src/runtime/start_line_amd64_test.go
package runtime_test import ( "runtime/internal/startlinetest" "testing" ) // TestStartLineAsm tests the start line metadata of an assembly function. This // is only tested on amd64 to avoid the need for a proliferation of per-arch // copies of this function. func TestStartLineAsm(t *testing.T) { startlinetest.CallerStartLine = callerStartLine const wantLine = 23 got := startlinetest.AsmFunc()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 22 04:34:33 UTC 2022 - 647 bytes - Viewed (0) -
src/runtime/internal/startlinetest/func_amd64.go
// Copyright 2022 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. // Package startlinetest contains helpers for runtime_test.TestStartLineAsm. package startlinetest // Defined in func_amd64.s, this is a trivial assembly function that calls // runtime_test.callerStartLine. func AsmFunc() int // Provided by runtime_test.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 22 04:34:33 UTC 2022 - 452 bytes - Viewed (0) -
src/runtime/internal/startlinetest/func_amd64.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "funcdata.h" #include "textflag.h" // Assembly function for runtime_test.TestStartLineAsm. // // Note that this file can't be built directly as part of runtime_test, as assembly // files can't declare an alternative package. Building it into runtime is // possible, but linkshared complicates things: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 22 04:34:33 UTC 2022 - 1K bytes - Viewed (0)