1 /* 2 * Copyright (c) 1999, 2007, 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 * 23 */ 24 25 #include "incls/_precompiled.incl" 26 #include "incls/_c1_Compiler.cpp.incl" 27 28 volatile int Compiler::_runtimes = uninitialized; 29 30 Compiler::Compiler() { 31 } 32 33 34 Compiler::~Compiler() { 35 Unimplemented(); 36 } 37 38 39 void Compiler::initialize_all() { 40 BufferBlob* buffer_blob = CompilerThread::current()->get_buffer_blob(); 41 Arena* arena = new Arena(); 42 Runtime1::initialize(buffer_blob); 43 FrameMap::initialize(); 44 // initialize data structures 45 ValueType::initialize(arena); 46 // Instruction::initialize(); | 1 /* 2 * Copyright (c) 1999, 2010, 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 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "c1/c1_Compilation.hpp" 27 #include "c1/c1_Compiler.hpp" 28 #include "c1/c1_FrameMap.hpp" 29 #include "c1/c1_GraphBuilder.hpp" 30 #include "c1/c1_LinearScan.hpp" 31 #include "c1/c1_MacroAssembler.hpp" 32 #include "c1/c1_Runtime1.hpp" 33 #include "c1/c1_ValueType.hpp" 34 #include "compiler/compileBroker.hpp" 35 #include "compiler/compilerOracle.hpp" 36 #include "interpreter/linkResolver.hpp" 37 #include "memory/allocation.hpp" 38 #include "memory/allocation.inline.hpp" 39 #include "memory/resourceArea.hpp" 40 #include "prims/nativeLookup.hpp" 41 #include "runtime/arguments.hpp" 42 #include "runtime/interfaceSupport.hpp" 43 #include "runtime/sharedRuntime.hpp" 44 45 volatile int Compiler::_runtimes = uninitialized; 46 47 Compiler::Compiler() { 48 } 49 50 51 Compiler::~Compiler() { 52 Unimplemented(); 53 } 54 55 56 void Compiler::initialize_all() { 57 BufferBlob* buffer_blob = CompilerThread::current()->get_buffer_blob(); 58 Arena* arena = new Arena(); 59 Runtime1::initialize(buffer_blob); 60 FrameMap::initialize(); 61 // initialize data structures 62 ValueType::initialize(arena); 63 // Instruction::initialize(); |