diff src/cpu/x86/vm/graalRuntime_x86.cpp @ 9419:640d86a6bf4a

replaced register_finalizer assembler stub with a compiled stub (GRAAL-81)
author Doug Simon <doug.simon@oracle.com>
date Mon, 29 Apr 2013 22:49:49 +0200
parents 4e260c2ced0e
children 393d62a868da
line wrap: on
line diff
--- a/src/cpu/x86/vm/graalRuntime_x86.cpp	Mon Apr 29 22:41:24 2013 +0200
+++ b/src/cpu/x86/vm/graalRuntime_x86.cpp	Mon Apr 29 22:49:49 2013 +0200
@@ -811,27 +811,6 @@
   OopMapSet* oop_maps = NULL;
   switch (id) {
 
-    case register_finalizer_id:
-      {
-        __ set_info("register_finalizer", dont_gc_arguments);
-
-        // This is called via call_runtime so the arguments
-        // will be place in C abi locations
-        __ verify_oop(j_rarg0);
-        __ enter();
-        OopMap* oop_map = save_live_registers(sasm, 2 /*num_rt_args */);
-        int call_offset = __ call_RT(noreg, noreg, CAST_FROM_FN_PTR(address, SharedRuntime::register_finalizer), j_rarg0);
-        oop_maps = new OopMapSet();
-        oop_maps->add_gc_map(call_offset, oop_map);
-
-        // Now restore all the live registers
-        restore_live_registers(sasm);
-
-        __ leave();
-        __ ret(0);
-      }
-      break;
-
     case handle_exception_nofpu_id:
       { GraalStubFrame f(sasm, "handle_exception", dont_gc_arguments);
         oop_maps = generate_handle_exception(id, sasm);