Skip to content

Commit

Permalink
Disable stack allocation when nan enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-serrano committed Nov 9, 2024
1 parent 885c0e2 commit 06292a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions hopscript/array.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
;* ------------------------------------------------------------- */
;* Author : Manuel Serrano */
;* Creation : Sun Dec 18 08:02:30 2016 */
;* Last change : Sun Apr 30 21:17:30 2023 (serrano) */
;* Copyright : 2016-23 Manuel Serrano */
;* Last change : Sat Nov 9 09:25:13 2024 (serrano) */
;* Copyright : 2016-24 Manuel Serrano */
;* ------------------------------------------------------------- */
;* Array macros for js2scheme */
;*=====================================================================*/
Expand Down Expand Up @@ -250,7 +250,7 @@
(match-case proc
((lambda (?v) . ?body)
(cond-expand
((and bigloo-c (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
(let ((p (gensym 'p))
(len (length args)))
`(let ()
Expand All @@ -269,7 +269,7 @@
(match-case proc
((lambda (?v) . ?body)
(cond-expand
((and bigloo-c (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
(let ((p (gensym 'p)))
`(let ()
,(decl-vector p len)
Expand All @@ -284,7 +284,7 @@
(match-case proc
((lambda (?v) . ?body)
(cond-expand
((and bigloo-c (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
(let ((p (gensym 'p))
(l (gensym 'l)))
`(let ((,l ,len))
Expand All @@ -302,7 +302,7 @@
(match-case proc
((lambda (?v) . ?body)
(cond-expand
((and bigloo-c (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (not bigloo-saw) (config have-c99-stack-alloc #t) (not devel) (not debug))
(let* ((p (gensym 'p))
(i (gensym 'i))
(len (gensym 'l))
Expand Down
4 changes: 2 additions & 2 deletions hopscript/property_expd.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;* ------------------------------------------------------------- */
;* Author : Manuel Serrano */
;* Creation : Wed Feb 17 09:28:50 2016 */
;* Last change : Fri Jul 5 07:35:02 2024 (serrano) */
;* Last change : Sat Nov 9 09:26:36 2024 (serrano) */
;* Copyright : 2016-24 Manuel Serrano */
;* ------------------------------------------------------------- */
;* HopScript property expanders */
Expand Down Expand Up @@ -1446,7 +1446,7 @@
(match-case proc
((lambda (?l) . ?body)
(cond-expand
((and bigloo-c (config have-c99-stack-alloc #t) (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (config have-c99-stack-alloc #t) (not devel) (not debug))
(let ((stk (gensym 'stk))
(p (gensym 'p))
(aux (gensym 'aux))
Expand Down
6 changes: 3 additions & 3 deletions hopscript/public_expd.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
;* ------------------------------------------------------------- */
;* Author : Manuel Serrano */
;* Creation : Wed Aug 23 07:35:40 2017 */
;* Last change : Mon Feb 7 08:09:26 2022 (serrano) */
;* Copyright : 2017-22 Manuel Serrano */
;* Last change : Sat Nov 9 09:26:59 2024 (serrano) */
;* Copyright : 2017-24 Manuel Serrano */
;* ------------------------------------------------------------- */
;* HopScript public expanders */
;* ------------------------------------------------------------- */
Expand Down Expand Up @@ -347,7 +347,7 @@
((?- (and ?yield (js-make-yield ?val ?done ?%this))
(and ?proc (lambda (?y) . ?body)))
(cond-expand
((and bigloo-c (not devel) (not debug))
((and bigloo-c (config nan-tagging #f) (not devel) (not debug))
(let ((tmp (gensym 'aux)))
(e `(let ()
(pragma ,(format "struct BgL_jsyieldz00_bgl ~a;" tmp))
Expand Down

0 comments on commit 06292a5

Please sign in to comment.