hotspot/src/share/vm/classfile/stackMapFrame.hpp
author cfang
Thu, 20 Aug 2009 12:42:57 -0700
changeset 3686 69c1b5228547
parent 1 489c9b5090e2
child 5547 f4b087cbb361
permissions -rw-r--r--
6873116: Modify reexecute implementation to use pcDesc to record the reexecute bit Summary: use PcDesc to keep record of the reexecute bit instead of using DebugInfoStreams Reviewed-by: kvn, never, twisti
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2003-2006 Sun Microsystems, Inc.  All Rights Reserved.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
// A StackMapFrame represents one frame in the stack map attribute.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
  FLAG_THIS_UNINIT = 0x01
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
class StackMapFrame : public ResourceObj {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
  int32_t _offset;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
  // See comment in StackMapTable about _frame_count about why these
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
  // fields are int32_t instead of u2.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
  int32_t _locals_size;  // number of valid type elements in _locals
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
  int32_t _stack_size;   // number of valid type elements in _stack
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  int32_t _max_locals;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
  int32_t _max_stack;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  u1 _flags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
  VerificationType* _locals; // local variable type array
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  VerificationType* _stack;  // operand stack type array
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  ClassVerifier* _verifier;  // the verifier verifying this method
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  // constructors
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  // This constructor is used by the type checker to allocate frames
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  // in type state, which have _max_locals and _max_stack array elements
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  // in _locals and _stack.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  StackMapFrame(u2 max_locals, u2 max_stack, ClassVerifier* verifier);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
  // This constructor is used to initialize stackmap frames in stackmap table,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
  // which have _locals_size and _stack_size array elements in _locals and _stack.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  StackMapFrame(int32_t offset,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
                u1 flags,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
                u2 locals_size,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
                u2 stack_size,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
                u2 max_locals,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
                u2 max_stack,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
                VerificationType* locals,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
                VerificationType* stack,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
                ClassVerifier* v) : _offset(offset), _flags(flags),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
                                    _locals_size(locals_size),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
                                    _stack_size(stack_size),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
                                    _max_locals(max_locals),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
                                    _max_stack(max_stack),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
                                    _locals(locals), _stack(stack),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
                                    _verifier(v) { }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  inline void set_offset(int32_t offset)      { _offset = offset; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  inline void set_verifier(ClassVerifier* v)  { _verifier = v; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
  inline void set_flags(u1 flags)             { _flags = flags; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  inline void set_locals_size(u2 locals_size) { _locals_size = locals_size; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
  inline void set_stack_size(u2 stack_size)   { _stack_size = stack_size; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  inline void clear_stack()                   { _stack_size = 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  inline int32_t offset()   const             { return _offset; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  inline ClassVerifier* verifier() const      { return _verifier; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  inline u1 flags() const                     { return _flags; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  inline int32_t locals_size() const          { return _locals_size; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  inline VerificationType* locals() const     { return _locals; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  inline int32_t stack_size() const           { return _stack_size; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  inline VerificationType* stack() const      { return _stack; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  inline int32_t max_locals() const           { return _max_locals; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  inline int32_t max_stack() const            { return _max_stack; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  inline bool flag_this_uninit() const        { return _flags & FLAG_THIS_UNINIT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // Set locals and stack types to bogus
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  inline void reset() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
    int32_t i;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
    for (i = 0; i < _max_locals; i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
      _locals[i] = VerificationType::bogus_type();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
    for (i = 0; i < _max_stack; i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
      _stack[i] = VerificationType::bogus_type();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  // Return a StackMapFrame with the same local variable array and empty stack.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  // Stack array is allocate with unused one element.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  StackMapFrame* frame_in_exception_handler(u1 flags);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  // Set local variable type array based on m's signature.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  VerificationType set_locals_from_arg(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
    const methodHandle m, VerificationType thisKlass, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  // Search local variable type array and stack type array.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  // Return true if an uninitialized object is found.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  bool has_new_object() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  // Search local variable type array and stack type array.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  // Set every element with type of old_object to new_object.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  void initialize_object(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
    VerificationType old_object, VerificationType new_object);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  // Copy local variable type array in src into this local variable type array.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  void copy_locals(const StackMapFrame* src);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  // Copy stack type array in src into this stack type array.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  void copy_stack(const StackMapFrame* src);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
  // Return true if this stack map frame is assignable to target.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  bool is_assignable_to(const StackMapFrame* target, TRAPS) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  // Push type into stack type array.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  inline void push_stack(VerificationType type, TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
    assert(!type.is_check(), "Must be a real type");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
    if (_stack_size >= _max_stack) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
      verifier()->verify_error(_offset, "Operand stack overflow");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
      return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
    _stack[_stack_size++] = type;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  inline void push_stack_2(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
      VerificationType type1, VerificationType type2, TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
    assert(type1.is_long() || type1.is_double(), "must be long/double");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
    assert(type2.is_long2() || type2.is_double2(), "must be long/double_2");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
    if (_stack_size >= _max_stack - 1) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
      verifier()->verify_error(_offset, "Operand stack overflow");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
      return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    _stack[_stack_size++] = type1;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
    _stack[_stack_size++] = type2;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  // Pop and return the top type on stack without verifying.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
  inline VerificationType pop_stack(TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
    if (_stack_size <= 0) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
      verifier()->verify_error(_offset, "Operand stack underflow");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
      return VerificationType::bogus_type();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
    // Put bogus type to indicate it's no longer valid.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
    // Added to make it consistent with the other pop_stack method.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
    VerificationType top = _stack[--_stack_size];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    NOT_PRODUCT( _stack[_stack_size] = VerificationType::bogus_type(); )
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
    return top;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  // Pop and return the top type on stack type array after verifying it
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  // is assignable to type.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  inline VerificationType pop_stack(VerificationType type, TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
    if (_stack_size != 0) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
      VerificationType top = _stack[_stack_size - 1];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
      bool subtype = type.is_assignable_from(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
        top, verifier()->current_class(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
        CHECK_(VerificationType::bogus_type()));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
      if (subtype) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
        _stack_size --;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
        NOT_PRODUCT( _stack[_stack_size] = VerificationType::bogus_type(); )
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
        return top;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
    return pop_stack_ex(type, THREAD);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  inline void pop_stack_2(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
      VerificationType type1, VerificationType type2, TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
    assert(type1.is_long2() || type1.is_double2(), "must be long/double");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
    assert(type2.is_long() || type2.is_double(), "must be long/double_2");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
    if (_stack_size >= 2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
      VerificationType top1 = _stack[_stack_size - 1];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
      bool subtype1 = type1.is_assignable_from(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
        top1, verifier()->current_class(), CHECK);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
      VerificationType top2 = _stack[_stack_size - 2];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
      bool subtype2 = type2.is_assignable_from(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
        top2, verifier()->current_class(), CHECK);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
      if (subtype1 && subtype2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
        _stack_size -= 2;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
        NOT_PRODUCT( _stack[_stack_size] = VerificationType::bogus_type(); )
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
        NOT_PRODUCT( _stack[_stack_size+1] = VerificationType::bogus_type(); )
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
        return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
    pop_stack_ex(type1, THREAD);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
    pop_stack_ex(type2, THREAD);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  // Uncommon case that throws exceptions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  VerificationType pop_stack_ex(VerificationType type, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  // Return the type at index in local variable array after verifying
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  // it is assignable to type.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  VerificationType get_local(int32_t index, VerificationType type, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  // For long/double.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  void get_local_2(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
    int32_t index, VerificationType type1, VerificationType type2, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  // Set element at index in local variable array to type.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
  void set_local(int32_t index, VerificationType type, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  // For long/double.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  void set_local_2(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
    int32_t index, VerificationType type1, VerificationType type2, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  // Private auxiliary method used only in is_assignable_to(StackMapFrame).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
  // Returns true if src is assignable to target.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  bool is_assignable_to(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
    VerificationType* src, VerificationType* target, int32_t len, TRAPS) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  // Debugging
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  void print() const PRODUCT_RETURN;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
};