hotspot/src/cpu/x86/vm/interp_masm_x86.hpp
author aefimov
Mon, 17 Nov 2014 14:11:08 +0300
changeset 27726 34021e900889
parent 21095 1a04f7b3946e
child 29578 0d3bd11f9e02
permissions -rw-r--r--
8064914: tzdb.dat compilation failure when using tzdata2014j Reviewed-by: sherman, coffeys
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21095
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     1
/*
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     4
 *
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     7
 * published by the Free Software Foundation.
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     8
 *
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    13
 * accompanied this code).
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    14
 *
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    18
 *
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    21
 * questions.
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    22
 *
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    23
 */
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    24
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    25
#ifndef CPU_X86_VM_INTERP_MASM_X86_HPP
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    26
#define CPU_X86_VM_INTERP_MASM_X86_HPP
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    27
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    28
#include "asm/macroAssembler.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    29
#include "asm/macroAssembler.inline.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    30
#include "interpreter/invocationCounter.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    31
#include "runtime/frame.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    32
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    33
// This file specializes the assember with interpreter-specific macros
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    34
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    35
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    36
class InterpreterMacroAssembler: public MacroAssembler {
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    37
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    38
#ifdef TARGET_ARCH_MODEL_x86_32
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    39
# include "interp_masm_x86_32.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    40
#endif
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    41
#ifdef TARGET_ARCH_MODEL_x86_64
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    42
# include "interp_masm_x86_64.hpp"
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    43
#endif
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    44
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    45
 private:
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    46
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    47
  Register _locals_register; // register that contains the pointer to the locals
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    48
  Register _bcp_register; // register that contains the bcp
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    49
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    50
 public:
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    51
#ifndef CC_INTERP
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    52
  void profile_obj_type(Register obj, const Address& mdo_addr);
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    53
  void profile_arguments_type(Register mdp, Register callee, Register tmp, bool is_virtual);
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    54
  void profile_return_type(Register mdp, Register ret, Register tmp);
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    55
  void profile_parameters_type(Register mdp, Register tmp1, Register tmp2);
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    56
#endif /* !CC_INTERP */
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    57
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    58
};
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    59
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents:
diff changeset
    60
#endif // CPU_X86_VM_INTERP_MASM_X86_HPP