comparison src/cpu/x86/vm/graalRuntime_x86.cpp @ 9591:0381c7937e7a

replaced create_null_pointer_exception assembler stub with compiled stub (GRAAL-81)
author Doug Simon <doug.simon@oracle.com>
date Mon, 06 May 2013 23:42:17 +0200
parents 5f9c41cd3b1e
children efb8c1918ea5
comparison
equal deleted inserted replaced
9590:5f9c41cd3b1e 9591:0381c7937e7a
623 623
624 // stub code & info for the different stubs 624 // stub code & info for the different stubs
625 OopMapSet* oop_maps = NULL; 625 OopMapSet* oop_maps = NULL;
626 switch (id) { 626 switch (id) {
627 627
628 case create_null_pointer_exception_id: {
629 __ enter();
630 oop_maps = new OopMapSet();
631 OopMap* oop_map = save_live_registers(sasm, 0);
632 int call_offset = __ call_RT(rax, noreg, (address)create_null_exception, 0);
633 oop_maps->add_gc_map(call_offset, oop_map);
634 restore_live_registers_except_rax(sasm);
635 __ leave();
636 __ ret(0);
637 break;
638 }
639
640 case create_out_of_bounds_exception_id: { 628 case create_out_of_bounds_exception_id: {
641 __ enter(); 629 __ enter();
642 oop_maps = new OopMapSet(); 630 oop_maps = new OopMapSet();
643 OopMap* oop_map = save_live_registers(sasm, 1); 631 OopMap* oop_map = save_live_registers(sasm, 1);
644 int call_offset = __ call_RT(rax, noreg, (address)create_out_of_bounds_exception, j_rarg0); 632 int call_offset = __ call_RT(rax, noreg, (address)create_out_of_bounds_exception, j_rarg0);