comparison src/cpu/x86/vm/templateTable_x86_64.cpp @ 2416:38fea01eb669

6817525: turn on method handle functionality by default for JSR 292 Summary: After appropriate testing, we need to turn on EnableMethodHandles and EnableInvokeDynamic by default. Reviewed-by: never, kvn, jrose, phh
author twisti
date Thu, 31 Mar 2011 02:31:57 -0700
parents 8033953d67ff
children 92add02409c9 bbe95b4337f1
comparison
equal deleted inserted replaced
2415:09f96c3ff1ad 2416:38fea01eb669
403 // %%% We should use this to handle Class and String constants also. 403 // %%% We should use this to handle Class and String constants also.
404 // %%% It will simplify the ldc/primitive path considerably. 404 // %%% It will simplify the ldc/primitive path considerably.
405 void TemplateTable::fast_aldc(bool wide) { 405 void TemplateTable::fast_aldc(bool wide) {
406 transition(vtos, atos); 406 transition(vtos, atos);
407 407
408 if (!EnableMethodHandles) { 408 if (!EnableInvokeDynamic) {
409 // We should not encounter this bytecode if !EnableMethodHandles. 409 // We should not encounter this bytecode if !EnableInvokeDynamic.
410 // The verifier will stop it. However, if we get past the verifier, 410 // The verifier will stop it. However, if we get past the verifier,
411 // this will stop the thread in a reasonable way, without crashing the JVM. 411 // this will stop the thread in a reasonable way, without crashing the JVM.
412 __ call_VM(noreg, CAST_FROM_FN_PTR(address, 412 __ call_VM(noreg, CAST_FROM_FN_PTR(address,
413 InterpreterRuntime::throw_IncompatibleClassChangeError)); 413 InterpreterRuntime::throw_IncompatibleClassChangeError));
414 // the call_VM checks for exception, so we should never return here. 414 // the call_VM checks for exception, so we should never return here.