]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/entry_points.cpp
xmode.rules: removing test no longer needed
[factor.git] / vm / entry_points.cpp
index 41db6cc297f38360380b6a18ccb96b1ac8e220be..05ec2eade8b82394545ea1e6d72912ad27607af4 100644 (file)
@@ -3,10 +3,10 @@
 namespace factor {
 
 void factor_vm::c_to_factor(cell quot) {
-  /* First time this is called, wrap the c-to-factor sub-primitive inside
-     of a callback stub, which saves and restores non-volatile registers
-     per platform ABI conventions, so that the Factor compiler can treat
-     all registers as volatile */
+  // First time this is called, wrap the c-to-factor sub-primitive inside
+  // of a callback stub, which saves and restores non-volatile registers
+  // per platform ABI conventions, so that the Factor compiler can treat
+  // all registers as volatile
   if (!c_to_factor_func) {
     tagged<word> c_to_factor_word(special_objects[C_TO_FACTOR_WORD]);
     code_block* c_to_factor_block = callbacks->add(c_to_factor_word.value(), 0);
@@ -17,11 +17,6 @@ void factor_vm::c_to_factor(cell quot) {
   c_to_factor_func(quot);
 }
 
-template <typename Func> Func factor_vm::get_entry_point(cell n) {
-  tagged<word> entry_point_word(special_objects[n]);
-  return (Func) entry_point_word->entry_point;
-}
-
 void factor_vm::unwind_native_frames(cell quot, cell to) {
   tagged<word> entry_point_word(special_objects[UNWIND_NATIVE_FRAMES_WORD]);
   cell func = entry_point_word->entry_point;