comparison src/share/vm/asm/assembler.hpp @ 6266:1d7922586cf6

7023639: JSR 292 method handle invocation needs a fast path for compiled code 6984705: JSR 292 method handle creation should not go through JNI Summary: remove assembly code for JDK 7 chained method handles Reviewed-by: jrose, twisti, kvn, mhaupt Contributed-by: John Rose <john.r.rose@oracle.com>, Christian Thalinger <christian.thalinger@oracle.com>, Michael Haupt <michael.haupt@oracle.com>
author twisti
date Tue, 24 Jul 2012 10:51:00 -0700
parents 40c2484c09e1
children b9a9ed0f8eeb
comparison
equal deleted inserted replaced
6241:aba91a731143 6266:1d7922586cf6
404 // Thus, the eventual value of the constant must not be zero. 404 // Thus, the eventual value of the constant must not be zero.
405 // This is fine, since this is designed for embedding object field 405 // This is fine, since this is designed for embedding object field
406 // offsets in code which must be generated before the object class is loaded. 406 // offsets in code which must be generated before the object class is loaded.
407 // Field offsets are never zero, since an object's header (mark word) 407 // Field offsets are never zero, since an object's header (mark word)
408 // is located at offset zero. 408 // is located at offset zero.
409 RegisterOrConstant delayed_value(int(*value_fn)(), Register tmp, int offset = 0) { 409 RegisterOrConstant delayed_value(int(*value_fn)(), Register tmp, int offset = 0);
410 return delayed_value_impl(delayed_value_addr(value_fn), tmp, offset); 410 RegisterOrConstant delayed_value(address(*value_fn)(), Register tmp, int offset = 0);
411 }
412 RegisterOrConstant delayed_value(address(*value_fn)(), Register tmp, int offset = 0) {
413 return delayed_value_impl(delayed_value_addr(value_fn), tmp, offset);
414 }
415 virtual RegisterOrConstant delayed_value_impl(intptr_t* delayed_value_addr, Register tmp, int offset) = 0; 411 virtual RegisterOrConstant delayed_value_impl(intptr_t* delayed_value_addr, Register tmp, int offset) = 0;
416 // Last overloading is platform-dependent; look in assembler_<arch>.cpp. 412 // Last overloading is platform-dependent; look in assembler_<arch>.cpp.
417 static intptr_t* delayed_value_addr(int(*constant_fn)()); 413 static intptr_t* delayed_value_addr(int(*constant_fn)());
418 static intptr_t* delayed_value_addr(address(*constant_fn)()); 414 static intptr_t* delayed_value_addr(address(*constant_fn)());
419 static void update_delayed_values(); 415 static void update_delayed_values();