src/share/vm/c1/c1_LIRGenerator.cpp

Print this page




   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_LIRGenerator.cpp.incl"














  27 
  28 #ifdef ASSERT
  29 #define __ gen()->lir(__FILE__, __LINE__)->
  30 #else
  31 #define __ gen()->lir()->
  32 #endif
  33 
  34 // TODO: ARM - Use some recognizable constant which still fits architectural constraints
  35 #ifdef ARM
  36 #define PATCHED_ADDR  (204)
  37 #else
  38 #define PATCHED_ADDR  (max_jint)
  39 #endif
  40 
  41 void PhiResolverState::reset(int max_vregs) {
  42   // Initialize array sizes
  43   _virtual_operands.at_put_grow(max_vregs - 1, NULL, NULL);
  44   _virtual_operands.trunc_to(0);
  45   _other_operands.at_put_grow(max_vregs - 1, NULL, NULL);
  46   _other_operands.trunc_to(0);




   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_FrameMap.hpp"
  28 #include "c1/c1_Instruction.hpp"
  29 #include "c1/c1_LIRAssembler.hpp"
  30 #include "c1/c1_LIRGenerator.hpp"
  31 #include "c1/c1_ValueStack.hpp"
  32 #include "ci/ciArrayKlass.hpp"
  33 #include "ci/ciCPCache.hpp"
  34 #include "ci/ciInstance.hpp"
  35 #include "runtime/sharedRuntime.hpp"
  36 #include "runtime/stubRoutines.hpp"
  37 #include "utilities/bitMap.inline.hpp"
  38 #ifndef SERIALGC
  39 #include "gc_implementation/g1/heapRegion.hpp"
  40 #endif
  41 
  42 #ifdef ASSERT
  43 #define __ gen()->lir(__FILE__, __LINE__)->
  44 #else
  45 #define __ gen()->lir()->
  46 #endif
  47 
  48 // TODO: ARM - Use some recognizable constant which still fits architectural constraints
  49 #ifdef ARM
  50 #define PATCHED_ADDR  (204)
  51 #else
  52 #define PATCHED_ADDR  (max_jint)
  53 #endif
  54 
  55 void PhiResolverState::reset(int max_vregs) {
  56   // Initialize array sizes
  57   _virtual_operands.at_put_grow(max_vregs - 1, NULL, NULL);
  58   _virtual_operands.trunc_to(0);
  59   _other_operands.at_put_grow(max_vregs - 1, NULL, NULL);
  60   _other_operands.trunc_to(0);