432 #ifdef COMPILER2
433 if (FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
434 UseMultiplyToLenIntrinsic = true;
435 }
436
437 if (FLAG_IS_DEFAULT(UseSquareToLenIntrinsic)) {
438 UseSquareToLenIntrinsic = true;
439 }
440
441 if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) {
442 UseMulAddIntrinsic = true;
443 }
444
445 if (FLAG_IS_DEFAULT(UseMontgomeryMultiplyIntrinsic)) {
446 UseMontgomeryMultiplyIntrinsic = true;
447 }
448 if (FLAG_IS_DEFAULT(UseMontgomerySquareIntrinsic)) {
449 UseMontgomerySquareIntrinsic = true;
450 }
451
452 if (FLAG_IS_DEFAULT(OptoScheduling)) {
453 OptoScheduling = true;
454 }
455
456 if (FLAG_IS_DEFAULT(AlignVector)) {
457 AlignVector = AvoidUnalignedAccesses;
458 }
459 #endif
460 }
461
462 void VM_Version::initialize() {
463 ResourceMark rm;
464
465 stub_blob = BufferBlob::create("getPsrInfo_stub", stub_size);
466 if (stub_blob == NULL) {
467 vm_exit_during_initialization("Unable to allocate getPsrInfo_stub");
468 }
469
470 CodeBuffer c(stub_blob);
471 VM_Version_StubGenerator g(&c);
|
432 #ifdef COMPILER2
433 if (FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
434 UseMultiplyToLenIntrinsic = true;
435 }
436
437 if (FLAG_IS_DEFAULT(UseSquareToLenIntrinsic)) {
438 UseSquareToLenIntrinsic = true;
439 }
440
441 if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) {
442 UseMulAddIntrinsic = true;
443 }
444
445 if (FLAG_IS_DEFAULT(UseMontgomeryMultiplyIntrinsic)) {
446 UseMontgomeryMultiplyIntrinsic = true;
447 }
448 if (FLAG_IS_DEFAULT(UseMontgomerySquareIntrinsic)) {
449 UseMontgomerySquareIntrinsic = true;
450 }
451
452 int min_vector_size = 8;
453
454 if (!FLAG_IS_DEFAULT(MaxVectorSize)) {
455 if (MaxVectorSize < min_vector_size) {
456 warning("MaxVectorSize must be at least %i on this platform", min_vector_size);
457 FLAG_SET_DEFAULT(MaxVectorSize, min_vector_size);
458 }
459 }
460
461 if (FLAG_IS_DEFAULT(OptoScheduling)) {
462 OptoScheduling = true;
463 }
464
465 if (FLAG_IS_DEFAULT(AlignVector)) {
466 AlignVector = AvoidUnalignedAccesses;
467 }
468 #endif
469 }
470
471 void VM_Version::initialize() {
472 ResourceMark rm;
473
474 stub_blob = BufferBlob::create("getPsrInfo_stub", stub_size);
475 if (stub_blob == NULL) {
476 vm_exit_during_initialization("Unable to allocate getPsrInfo_stub");
477 }
478
479 CodeBuffer c(stub_blob);
480 VM_Version_StubGenerator g(&c);
|