! Copyright (C) 2007, 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: arrays byte-arrays generic assocs hashtables io.binary kernel kernel.private math namespaces sequences words quotations strings alien.accessors alien.strings layouts system combinators math.bitfields words.private cpu.architecture math.order accessors growable ; IN: compiler.generator.fixup : no-stack-frame -1 ; inline TUPLE: frame-required n ; : frame-required ( n -- ) \ frame-required boa , ; : stack-frame-size ( code -- n ) no-stack-frame [ dup frame-required? [ n>> max ] [ drop ] if ] reduce ; GENERIC: fixup* ( frame-size obj -- frame-size ) : code-format 22 getenv ; : compiled-offset ( -- n ) building get length code-format * ; TUPLE: label offset ; :