runtime: add dummy getCurrentStackPointer functions

This is useful for the next commit, to get it to compile on all systems.
This commit is contained in:
Ayke van Laethem
2019-08-23 17:56:29 +02:00
committed by Ron Evans
parent 9b1dd8e03d
commit db4de46d88
5 changed files with 10 additions and 0 deletions
+2
View File
@@ -9,3 +9,5 @@ const TargetBits = 32
func align(ptr uintptr) uintptr {
return (ptr + 3) &^ 3
}
func getCurrentStackPointer() uintptr
+2
View File
@@ -11,3 +11,5 @@ const TargetBits = 64
func align(ptr uintptr) uintptr {
return (ptr + 15) &^ 15
}
func getCurrentStackPointer() uintptr
+2
View File
@@ -9,3 +9,5 @@ const TargetBits = 64
func align(ptr uintptr) uintptr {
return (ptr + 7) &^ 7
}
func getCurrentStackPointer() uintptr
+2
View File
@@ -12,3 +12,5 @@ func align(ptr uintptr) uintptr {
// No alignment necessary on the AVR.
return ptr
}
func getCurrentStackPointer() uintptr
+2
View File
@@ -28,3 +28,5 @@ const wasmPageSize = 64 * 1024
func align(ptr uintptr) uintptr {
return (ptr + 3) &^ 3
}
func getCurrentStackPointer() uintptr