src/share/vm/interpreter/templateInterpreter.cpp

Print this page
rev 6670 : 8049325: Introduce and clean up umbrella headers for the files in the cpu subdirectories.
Reviewed-by: lfoltan, coleenp, dholmes


   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  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "interpreter/interpreter.hpp"
  27 #include "interpreter/interpreterGenerator.hpp"
  28 #include "interpreter/interpreterRuntime.hpp"


  29 #include "interpreter/templateTable.hpp"
  30 
  31 #ifndef CC_INTERP
  32 
  33 # define __ _masm->
  34 
  35 void TemplateInterpreter::initialize() {
  36   if (_code != NULL) return;
  37   // assertions
  38   assert((int)Bytecodes::number_of_codes <= (int)DispatchTable::length,
  39          "dispatch table too small");
  40 
  41   AbstractInterpreter::initialize();
  42 
  43   TemplateTable::initialize();
  44 
  45   // generate interpreter
  46   { ResourceMark rm;
  47     TraceTime timer("Interpreter generation", TraceStartupTime);
  48     int code_size = InterpreterCodeSize;




   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  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "interpreter/interpreter.hpp"
  27 #include "interpreter/interpreterGenerator.hpp"
  28 #include "interpreter/interpreterRuntime.hpp"
  29 #include "interpreter/interp_masm.hpp"
  30 #include "interpreter/templateInterpreter.hpp"
  31 #include "interpreter/templateTable.hpp"
  32 
  33 #ifndef CC_INTERP
  34 
  35 # define __ _masm->
  36 
  37 void TemplateInterpreter::initialize() {
  38   if (_code != NULL) return;
  39   // assertions
  40   assert((int)Bytecodes::number_of_codes <= (int)DispatchTable::length,
  41          "dispatch table too small");
  42 
  43   AbstractInterpreter::initialize();
  44 
  45   TemplateTable::initialize();
  46 
  47   // generate interpreter
  48   { ResourceMark rm;
  49     TraceTime timer("Interpreter generation", TraceStartupTime);
  50     int code_size = InterpreterCodeSize;