]> gitweb.factorcode.org Git - factor.git/commitdiff
removed some global functions from quotations.cpp
authorPhil Dawes <phil@phildawes.net>
Mon, 17 Aug 2009 20:37:19 +0000 (21:37 +0100)
committerPhil Dawes <phil@phildawes.net>
Wed, 16 Sep 2009 07:16:28 +0000 (08:16 +0100)
vm/quotations.cpp
vm/quotations.hpp

index ef615dc09531e6ae9439ae9e94676f464b1ffbe4..b7bce0bfd76aef97f11539358fbaaf0d9f25b03b 100755 (executable)
@@ -198,8 +198,8 @@ void quotation_jit::iterate_quotation()
 
                                if(compiling)
                                {
-                                       jit_compile(array_nth(elements.untagged(),i),relocate);
-                                       jit_compile(array_nth(elements.untagged(),i + 1),relocate);
+                                       myvm->jit_compile(array_nth(elements.untagged(),i),relocate);
+                                       myvm->jit_compile(array_nth(elements.untagged(),i + 1),relocate);
                                }
 
                                literal(array_nth(elements.untagged(),i));
@@ -214,7 +214,7 @@ void quotation_jit::iterate_quotation()
                        else if(fast_dip_p(i))
                        {
                                if(compiling)
-                                       jit_compile(obj.value(),relocate);
+                                       myvm->jit_compile(obj.value(),relocate);
                                emit_with(userenv[JIT_DIP],obj.value());
                                i++;
                                break;
@@ -223,7 +223,7 @@ void quotation_jit::iterate_quotation()
                        else if(fast_2dip_p(i))
                        {
                                if(compiling)
-                                       jit_compile(obj.value(),relocate);
+                                       myvm->jit_compile(obj.value(),relocate);
                                emit_with(userenv[JIT_2DIP],obj.value());
                                i++;
                                break;
@@ -232,7 +232,7 @@ void quotation_jit::iterate_quotation()
                        else if(fast_3dip_p(i))
                        {
                                if(compiling)
-                                       jit_compile(obj.value(),relocate);
+                                       myvm->jit_compile(obj.value(),relocate);
                                emit_with(userenv[JIT_3DIP],obj.value());
                                i++;
                                break;
@@ -274,11 +274,6 @@ void factorvm::set_quot_xt(quotation *quot, code_block *code)
        quot->xt = code->xt();
 }
 
-void set_quot_xt(quotation *quot, code_block *code)
-{
-       return vm->set_quot_xt(quot,code);
-}
-
 /* Allocates memory */
 void factorvm::jit_compile(cell quot_, bool relocating)
 {
@@ -294,11 +289,6 @@ void factorvm::jit_compile(cell quot_, bool relocating)
        if(relocating) relocate_code_block(compiled);
 }
 
-void jit_compile(cell quot_, bool relocating)
-{
-       return vm->jit_compile(quot_,relocating);
-}
-
 inline void factorvm::vmprim_jit_compile()
 {
        jit_compile(dpop(),true);
@@ -357,11 +347,6 @@ void factorvm::compile_all_words()
        iterate_code_heap(factor::relocate_code_block);
 }
 
-void compile_all_words()
-{
-       return vm->compile_all_words();
-}
-
 /* Allocates memory */
 fixnum factorvm::quot_code_offset_to_scan(cell quot_, cell offset)
 {
@@ -375,11 +360,6 @@ fixnum factorvm::quot_code_offset_to_scan(cell quot_, cell offset)
        return compiler.get_position();
 }
 
-fixnum quot_code_offset_to_scan(cell quot_, cell offset)
-{
-       return vm->quot_code_offset_to_scan(quot_,offset);
-}
-
 cell factorvm::lazy_jit_compile_impl(cell quot_, stack_frame *stack)
 {
        gc_root<quotation> quot(quot_,this);
index dad41917e01150111222ff12199c8ed2566239d9..6c8b17db21fb5620dbeb5611a18df8e7d58291d2 100755 (executable)
@@ -22,14 +22,8 @@ struct quotation_jit : public jit {
        void iterate_quotation();
 };
 
-void set_quot_xt(quotation *quot, code_block *code);
-void jit_compile(cell quot, bool relocate);
-fixnum quot_code_offset_to_scan(cell quot, cell offset);
-
 PRIMITIVE(jit_compile);
 
-void compile_all_words();
-
 PRIMITIVE(array_to_quotation);
 PRIMITIVE(quotation_xt);