comparison src/cpu/sparc/vm/compiledIC_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 7848fc12602b
children
comparison
equal deleted inserted replaced
21558:d563baeca9df 21559:be896a1983c0
100 return 10; // 4 in emit_java_to_interp + 1 in Java_Static_Call 100 return 10; // 4 in emit_java_to_interp + 1 in Java_Static_Call
101 } 101 }
102 102
103 void CompiledStaticCall::set_to_interpreted(methodHandle callee, address entry) { 103 void CompiledStaticCall::set_to_interpreted(methodHandle callee, address entry) {
104 address stub = find_stub(); 104 address stub = find_stub();
105 #ifdef GRAAL 105 #ifdef JVMCI
106 if (stub == NULL) { 106 if (stub == NULL) {
107 set_destination_mt_safe(entry); 107 set_destination_mt_safe(entry);
108 return; 108 return;
109 } 109 }
110 #endif 110 #endif
157 verify_alignment(); 157 verify_alignment();
158 } 158 }
159 159
160 // Verify stub. 160 // Verify stub.
161 address stub = find_stub(); 161 address stub = find_stub();
162 #ifndef GRAAL 162 #ifndef JVMCI
163 assert(stub != NULL, "no stub found for static call"); 163 assert(stub != NULL, "no stub found for static call");
164 // Creation also verifies the object. 164 // Creation also verifies the object.
165 NativeMovConstReg* method_holder = nativeMovConstReg_at(stub); 165 NativeMovConstReg* method_holder = nativeMovConstReg_at(stub);
166 NativeJump* jump = nativeJump_at(method_holder->next_instruction_address()); 166 NativeJump* jump = nativeJump_at(method_holder->next_instruction_address());
167 #endif 167 #endif