< prev index next >

src/share/vm/interpreter/templateInterpreterGenerator.cpp

Print this page
rev 11647 : 8161258: Simplify including platform files.
Summary: Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files.
Reviewed-by: dholmes, coleenp, kbarrett
   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 459   case Interpreter::java_util_zip_CRC32C_updateDirectByteBuffer
 460                                            : entry_point = generate_CRC32C_updateBytes_entry(kind); break;
 461 #ifdef IA32
 462   // On x86_32 platforms, a special entry is generated for the following four methods.
 463   // On other platforms the normal entry is used to enter these methods.
 464   case Interpreter::java_lang_Float_intBitsToFloat
 465                                            : native = true; entry_point = generate_Float_intBitsToFloat_entry(); break;
 466   case Interpreter::java_lang_Float_floatToRawIntBits
 467                                            : native = true; entry_point = generate_Float_floatToRawIntBits_entry(); break;
 468   case Interpreter::java_lang_Double_longBitsToDouble
 469                                            : native = true; entry_point = generate_Double_longBitsToDouble_entry(); break;
 470   case Interpreter::java_lang_Double_doubleToRawLongBits
 471                                            : native = true; entry_point = generate_Double_doubleToRawLongBits_entry(); break;
 472 #else
 473   case Interpreter::java_lang_Float_intBitsToFloat:
 474   case Interpreter::java_lang_Float_floatToRawIntBits:
 475   case Interpreter::java_lang_Double_longBitsToDouble:
 476   case Interpreter::java_lang_Double_doubleToRawLongBits:
 477     native = true;
 478     break;
 479 #endif // defined(TARGET_ARCH_x86) && !defined(_LP64)
 480   default:
 481     fatal("unexpected method kind: %d", kind);
 482     break;
 483   }
 484 
 485   if (entry_point) {
 486     return entry_point;
 487   }
 488 
 489   // We expect the normal and native entry points to be generated first so we can reuse them.
 490   if (native) {
 491     entry_point = Interpreter::entry_for_kind(synchronized ? Interpreter::native_synchronized : Interpreter::native);
 492     if (entry_point == NULL) {
 493       entry_point = generate_native_entry(synchronized);
 494     }
 495   } else {
 496     entry_point = Interpreter::entry_for_kind(synchronized ? Interpreter::zerolocals_synchronized : Interpreter::zerolocals);
 497     if (entry_point == NULL) {
 498       entry_point = generate_normal_entry(synchronized);
 499     }
   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 459   case Interpreter::java_util_zip_CRC32C_updateDirectByteBuffer
 460                                            : entry_point = generate_CRC32C_updateBytes_entry(kind); break;
 461 #ifdef IA32
 462   // On x86_32 platforms, a special entry is generated for the following four methods.
 463   // On other platforms the normal entry is used to enter these methods.
 464   case Interpreter::java_lang_Float_intBitsToFloat
 465                                            : native = true; entry_point = generate_Float_intBitsToFloat_entry(); break;
 466   case Interpreter::java_lang_Float_floatToRawIntBits
 467                                            : native = true; entry_point = generate_Float_floatToRawIntBits_entry(); break;
 468   case Interpreter::java_lang_Double_longBitsToDouble
 469                                            : native = true; entry_point = generate_Double_longBitsToDouble_entry(); break;
 470   case Interpreter::java_lang_Double_doubleToRawLongBits
 471                                            : native = true; entry_point = generate_Double_doubleToRawLongBits_entry(); break;
 472 #else
 473   case Interpreter::java_lang_Float_intBitsToFloat:
 474   case Interpreter::java_lang_Float_floatToRawIntBits:
 475   case Interpreter::java_lang_Double_longBitsToDouble:
 476   case Interpreter::java_lang_Double_doubleToRawLongBits:
 477     native = true;
 478     break;
 479 #endif // !IA32
 480   default:
 481     fatal("unexpected method kind: %d", kind);
 482     break;
 483   }
 484 
 485   if (entry_point) {
 486     return entry_point;
 487   }
 488 
 489   // We expect the normal and native entry points to be generated first so we can reuse them.
 490   if (native) {
 491     entry_point = Interpreter::entry_for_kind(synchronized ? Interpreter::native_synchronized : Interpreter::native);
 492     if (entry_point == NULL) {
 493       entry_point = generate_native_entry(synchronized);
 494     }
 495   } else {
 496     entry_point = Interpreter::entry_for_kind(synchronized ? Interpreter::zerolocals_synchronized : Interpreter::zerolocals);
 497     if (entry_point == NULL) {
 498       entry_point = generate_normal_entry(synchronized);
 499     }
< prev index next >