Use a primop for getting the fields of the AP_STACK rather than an FFI call
[ghc-hetmet.git] / compiler / prelude / primops.txt.pp
index 1d46095..89b0260 100644 (file)
@@ -1743,6 +1743,10 @@ primop  UnpackClosureOp "unpackClosure#" GenPrimOp
    with
    out_of_line = True
 
+primop  GetApStackValOp "getApStackVal#" GenPrimOp
+   a -> Int# -> (# Int#, b #)
+   with
+   out_of_line = True
 
 ------------------------------------------------------------------------
 section "Etc"