! Copyright (C) 2007, 2010 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: arrays bit-arrays byte-arrays byte-vectors generic assocs hashtables io.binary kernel kernel.private math namespaces make sequences words quotations strings sorting alien.accessors alien.strings layouts system combinators math.bitwise math.order combinators.short-circuit combinators.smart accessors growable fry memoize compiler.constants compiler.cfg.instructions cpu.architecture ; IN: compiler.codegen.fixup ! Utilities : push-uint ( value vector -- ) [ length ] [ B{ 0 0 0 0 } swap push-all ] [ underlying>> ] tri swap set-alien-unsigned-4 ; ! Parameter table SYMBOL: parameter-table : add-parameter ( obj -- ) parameter-table get push ; ! Literal table SYMBOL: literal-table : add-literal ( obj -- ) literal-table get push ; ! Labels SYMBOL: label-table TUPLE: label offset ; :