hotspot/src/cpu/x86/vm/jniFastGetField_x86_64.cpp
author xlu
Wed, 24 Dec 2008 13:06:09 -0800
changeset 1888 bbf498fb4354
parent 1217 5eb97f366a6a
child 5547 f4b087cbb361
permissions -rw-r--r--
6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t Summary: Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms. Reviewed-by: jrose, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
1217
5eb97f366a6a 6754988: Update copyright year
xdono
parents: 1066
diff changeset
     2
 * Copyright 2004-2008 Sun Microsystems, Inc.  All Rights Reserved.
1
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
# include "incls/_precompiled.incl"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
# include "incls/_jniFastGetField_x86_64.cpp.incl"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
#define __ masm->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
#define BUFFER_SIZE 30*wordSize
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
// Instead of issuing lfence for LoadLoad barrier, we create data dependency
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
// between loads, which is more efficient than lfence.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// Common register usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
// rax/xmm0: result
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// c_rarg0:    jni env
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
// c_rarg1:    obj
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// c_rarg2:    jfield id
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
static const Register robj          = r9;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
static const Register rcounter      = r10;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
static const Register roffset       = r11;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
static const Register rcounter_addr = r11;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// Warning: do not use rip relative addressing after the first counter load
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
// since that may scratch r10!
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
address JNI_FastGetField::generate_fast_get_int_field0(BasicType type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  const char *name;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
    case T_BOOLEAN: name = "jni_fast_GetBooleanField"; break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
    case T_BYTE:    name = "jni_fast_GetByteField";    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
    case T_CHAR:    name = "jni_fast_GetCharField";    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    case T_SHORT:   name = "jni_fast_GetShortField";   break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    case T_INT:     name = "jni_fast_GetIntField";     break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    case T_LONG:    name = "jni_fast_GetLongField";    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    default:        ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  address fast_entry = b->instructions_begin();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  CodeBuffer cbuf(fast_entry, b->instructions_size());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  MacroAssembler* masm = new MacroAssembler(&cbuf);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  Label slow;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
  ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  __ mov32 (rcounter, counter);
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    70
  __ mov   (robj, c_rarg1);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  __ testb (rcounter, 1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  __ jcc (Assembler::notZero, slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  if (os::is_MP()) {
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    74
    __ xorptr(robj, rcounter);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    75
    __ xorptr(robj, rcounter);                   // obj, since
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
                                                // robj ^ rcounter ^ rcounter == robj
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
                                                // robj is data dependent on rcounter.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  }
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    79
  __ movptr(robj, Address(robj, 0));             // *obj
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    80
  __ mov   (roffset, c_rarg2);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    81
  __ shrptr(roffset, 2);                         // offset
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  assert(count < LIST_CAPACITY, "LIST_CAPACITY too small");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  speculative_load_pclist[count] = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
    case T_BOOLEAN: __ movzbl (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
    case T_BYTE:    __ movsbl (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
    case T_CHAR:    __ movzwl (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
    case T_SHORT:   __ movswl (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
    case T_INT:     __ movl   (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
    case T_LONG:    __ movq   (rax, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
    default:        ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  if (os::is_MP()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
    __ lea(rcounter_addr, counter);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
    // ca is data dependent on rax.
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    98
    __ xorptr(rcounter_addr, rax);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
    99
    __ xorptr(rcounter_addr, rax);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
    __ cmpl (rcounter, Address(rcounter_addr, 0));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
    __ cmp32 (rcounter, counter);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  __ jcc (Assembler::notEqual, slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
  __ ret (0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  slowcase_entry_pclist[count++] = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  __ bind (slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  address slow_case_addr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
    case T_BOOLEAN: slow_case_addr = jni_GetBooleanField_addr(); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
    case T_BYTE:    slow_case_addr = jni_GetByteField_addr();    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
    case T_CHAR:    slow_case_addr = jni_GetCharField_addr();    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
    case T_SHORT:   slow_case_addr = jni_GetShortField_addr();   break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
    case T_INT:     slow_case_addr = jni_GetIntField_addr();     break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
    case T_LONG:    slow_case_addr = jni_GetLongField_addr();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  // tail call
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  __ jump (ExternalAddress(slow_case_addr));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  __ flush ();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  return fast_entry;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
address JNI_FastGetField::generate_fast_get_boolean_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  return generate_fast_get_int_field0(T_BOOLEAN);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
address JNI_FastGetField::generate_fast_get_byte_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  return generate_fast_get_int_field0(T_BYTE);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
address JNI_FastGetField::generate_fast_get_char_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  return generate_fast_get_int_field0(T_CHAR);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
address JNI_FastGetField::generate_fast_get_short_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  return generate_fast_get_int_field0(T_SHORT);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
address JNI_FastGetField::generate_fast_get_int_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  return generate_fast_get_int_field0(T_INT);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
address JNI_FastGetField::generate_fast_get_long_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  return generate_fast_get_int_field0(T_LONG);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
address JNI_FastGetField::generate_fast_get_float_field0(BasicType type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
  const char *name;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
    case T_FLOAT:     name = "jni_fast_GetFloatField";     break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
    case T_DOUBLE:    name = "jni_fast_GetDoubleField";    break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
    default:          ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  address fast_entry = b->instructions_begin();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  CodeBuffer cbuf(fast_entry, b->instructions_size());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  MacroAssembler* masm = new MacroAssembler(&cbuf);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  Label slow;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
  __ mov32 (rcounter, counter);
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   168
  __ mov   (robj, c_rarg1);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  __ testb (rcounter, 1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  __ jcc (Assembler::notZero, slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
  if (os::is_MP()) {
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   172
    __ xorptr(robj, rcounter);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   173
    __ xorptr(robj, rcounter);                   // obj, since
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
                                                // robj ^ rcounter ^ rcounter == robj
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
                                                // robj is data dependent on rcounter.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  }
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   177
  __ movptr(robj, Address(robj, 0));             // *obj
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   178
  __ mov   (roffset, c_rarg2);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   179
  __ shrptr(roffset, 2);                         // offset
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  assert(count < LIST_CAPACITY, "LIST_CAPACITY too small");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  speculative_load_pclist[count] = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
    case T_FLOAT:  __ movflt (xmm0, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
    case T_DOUBLE: __ movdbl (xmm0, Address(robj, roffset, Address::times_1)); break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
    default:        ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  if (os::is_MP()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
    __ lea(rcounter_addr, counter);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
    __ movdq (rax, xmm0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
    // counter address is data dependent on xmm0.
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   193
    __ xorptr(rcounter_addr, rax);
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   194
    __ xorptr(rcounter_addr, rax);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
    __ cmpl (rcounter, Address(rcounter_addr, 0));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
    __ cmp32 (rcounter, counter);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  __ jcc (Assembler::notEqual, slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  __ ret (0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  slowcase_entry_pclist[count++] = __ pc();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  __ bind (slow);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  address slow_case_addr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  switch (type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
    case T_FLOAT:     slow_case_addr = jni_GetFloatField_addr();  break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
    case T_DOUBLE:    slow_case_addr = jni_GetDoubleField_addr();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // tail call
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  __ jump (ExternalAddress(slow_case_addr));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  __ flush ();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  return fast_entry;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
address JNI_FastGetField::generate_fast_get_float_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  return generate_fast_get_float_field0(T_FLOAT);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
address JNI_FastGetField::generate_fast_get_double_field() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  return generate_fast_get_float_field0(T_DOUBLE);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
}