comparison src/share/vm/asm/assembler.cpp @ 3534: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
14:a68e7287e5f8 15:e71a545ddc74
316 } 316 }
317 } 317 }
318 } 318 }
319 } 319 }
320 320
321 RegisterOrConstant AbstractAssembler::delayed_value(int(*value_fn)(), Register tmp, int offset) {
322 intptr_t val = (intptr_t) (*value_fn)();
323 if (val != 0) return val + offset;
324 return delayed_value_impl(delayed_value_addr(value_fn), tmp, offset);
325 }
326 RegisterOrConstant AbstractAssembler::delayed_value(address(*value_fn)(), Register tmp, int offset) {
327 intptr_t val = (intptr_t) (*value_fn)();
328 if (val != 0) return val + offset;
329 return delayed_value_impl(delayed_value_addr(value_fn), tmp, offset);
330 }
321 intptr_t* AbstractAssembler::delayed_value_addr(int(*value_fn)()) { 331 intptr_t* AbstractAssembler::delayed_value_addr(int(*value_fn)()) {
322 DelayedConstant* dcon = DelayedConstant::add(T_INT, (DelayedConstant::value_fn_t) value_fn); 332 DelayedConstant* dcon = DelayedConstant::add(T_INT, (DelayedConstant::value_fn_t) value_fn);
323 return &dcon->value; 333 return &dcon->value;
324 } 334 }
325 intptr_t* AbstractAssembler::delayed_value_addr(address(*value_fn)()) { 335 intptr_t* AbstractAssembler::delayed_value_addr(address(*value_fn)()) {