Mercurial > hg > truffle
comparison src/cpu/sparc/vm/interp_masm_sparc.cpp @ 21559:be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 15:36:48 +0200 |
parents | 52b4284cb496 |
children |
comparison
equal
deleted
inserted
replaced
21558:d563baeca9df | 21559:be896a1983c0 |
---|---|
1642 // Record the receiver type. | 1642 // Record the receiver type. |
1643 record_klass_in_profile(receiver, scratch, true); | 1643 record_klass_in_profile(receiver, scratch, true); |
1644 bind(skip_receiver_profile); | 1644 bind(skip_receiver_profile); |
1645 | 1645 |
1646 // The method data pointer needs to be updated to reflect the new target. | 1646 // The method data pointer needs to be updated to reflect the new target. |
1647 #ifdef GRAAL | 1647 #ifdef JVMCI |
1648 if (MethodProfileWidth == 0) { | 1648 if (MethodProfileWidth == 0) { |
1649 update_mdp_by_constant(in_bytes(VirtualCallData::virtual_call_data_size())); | 1649 update_mdp_by_constant(in_bytes(VirtualCallData::virtual_call_data_size())); |
1650 } | 1650 } |
1651 #else | 1651 #else |
1652 update_mdp_by_constant(in_bytes(VirtualCallData::virtual_call_data_size())); | 1652 update_mdp_by_constant(in_bytes(VirtualCallData::virtual_call_data_size())); |
1653 #endif | 1653 #endif |
1654 bind(profile_continue); | 1654 bind(profile_continue); |
1655 } | 1655 } |
1656 } | 1656 } |
1657 | 1657 |
1658 #ifdef GRAAL | 1658 #ifdef JVMCI |
1659 void InterpreterMacroAssembler::profile_called_method(Register method, Register scratch) { | 1659 void InterpreterMacroAssembler::profile_called_method(Register method, Register scratch) { |
1660 assert_different_registers(method, scratch); | 1660 assert_different_registers(method, scratch); |
1661 if (ProfileInterpreter && MethodProfileWidth > 0) { | 1661 if (ProfileInterpreter && MethodProfileWidth > 0) { |
1662 Label profile_continue; | 1662 Label profile_continue; |
1663 | 1663 |
1679 Label& done, bool is_virtual_call) { | 1679 Label& done, bool is_virtual_call) { |
1680 if (TypeProfileWidth == 0) { | 1680 if (TypeProfileWidth == 0) { |
1681 if (is_virtual_call) { | 1681 if (is_virtual_call) { |
1682 increment_mdp_data_at(in_bytes(CounterData::count_offset()), scratch); | 1682 increment_mdp_data_at(in_bytes(CounterData::count_offset()), scratch); |
1683 } | 1683 } |
1684 #ifdef GRAAL | 1684 #ifdef JVMCI |
1685 else { | 1685 else { |
1686 increment_mdp_data_at(in_bytes(ReceiverTypeData::nonprofiled_receiver_count_offset()), scratch); | 1686 increment_mdp_data_at(in_bytes(ReceiverTypeData::nonprofiled_receiver_count_offset()), scratch); |
1687 } | 1687 } |
1688 #endif | 1688 #endif |
1689 } else { | 1689 } else { |
1690 bool use_non_profiled_counter = !is_virtual_call || IS_GRAAL_DEFINED; | 1690 bool use_non_profiled_counter = !is_virtual_call || IS_JVMCI_DEFINED; |
1691 int non_profiled_offset = -1; | 1691 int non_profiled_offset = -1; |
1692 if (use_non_profiled_counter) { | 1692 if (use_non_profiled_counter) { |
1693 non_profiled_offset = in_bytes(CounterData::count_offset()); | 1693 non_profiled_offset = in_bytes(CounterData::count_offset()); |
1694 #ifdef GRAAL | 1694 #ifdef JVMCI |
1695 if (!is_virtual_call) { | 1695 if (!is_virtual_call) { |
1696 non_profiled_offset = in_bytes(ReceiverTypeData::nonprofiled_receiver_count_offset()); | 1696 non_profiled_offset = in_bytes(ReceiverTypeData::nonprofiled_receiver_count_offset()); |
1697 } | 1697 } |
1698 #endif | 1698 #endif |
1699 assert(non_profiled_offset >= 0, "must be"); | 1699 assert(non_profiled_offset >= 0, "must be"); |