Skip to content

Commit

Permalink
fix other 128-bit allocations too
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Sep 13, 2024
1 parent 2ea6700 commit eed383f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codegen/compile_enhanced.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5338,7 +5338,7 @@ module Cycles = struct

let balance env =
Func.share_code0 Func.Always env "cycle_balance" [I64Type] (fun env ->
Stack.with_words env "dst" 4L (fun get_dst ->
Stack.with_words env "dst" 2L (fun get_dst ->
get_dst ^^
IC.cycle_balance env ^^
get_dst ^^
Expand All @@ -5355,7 +5355,7 @@ module Cycles = struct

let accept env =
Func.share_code1 Func.Always env "cycle_accept" ("cycles", I64Type) [I64Type] (fun env get_x ->
Stack.with_words env "dst" 4L (fun get_dst ->
Stack.with_words env "dst" 2L (fun get_dst ->
get_x ^^
to_two_word64 env ^^
get_dst ^^
Expand All @@ -5367,7 +5367,7 @@ module Cycles = struct

let available env =
Func.share_code0 Func.Always env "cycle_available" [I64Type] (fun env ->
Stack.with_words env "dst" 4L (fun get_dst ->
Stack.with_words env "dst" 2L (fun get_dst ->
get_dst ^^
IC.cycles_available env ^^
get_dst ^^
Expand All @@ -5377,7 +5377,7 @@ module Cycles = struct

let refunded env =
Func.share_code0 Func.Always env "cycle_refunded" [I64Type] (fun env ->
Stack.with_words env "dst" 4L (fun get_dst ->
Stack.with_words env "dst" 2L (fun get_dst ->
get_dst ^^
IC.cycles_refunded env ^^
get_dst ^^
Expand Down

0 comments on commit eed383f

Please sign in to comment.