Mercurial > hg > graal-compiler
annotate graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/UnsafeAccessFactoryImpl.java @ 20131:4b12d5355811
Truffle: do not use iterators for visitors.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 02 Apr 2015 01:27:27 +0200 |
parents | b54b548047ac |
children |
rev | line source |
---|---|
19311
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
1 /* |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
4 * |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. Oracle designates this |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
8 * particular file as subject to the "Classpath" exception as provided |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
9 * by Oracle in the LICENSE file that accompanied this code. |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
10 * |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
15 * accompanied this code). |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
16 * |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU General Public License version |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
20 * |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
22 * or visit www.oracle.com if you need additional information or have any |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
23 * questions. |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
24 */ |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
25 package com.oracle.truffle.api.impl; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
26 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
27 import sun.misc.*; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
28 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
29 import com.oracle.truffle.api.unsafe.*; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
30 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
31 final class UnsafeAccessFactoryImpl implements UnsafeAccessFactory { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
32 public UnsafeAccess createUnsafeAccess(final Unsafe unsafe) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
33 return new UnsafeAccessImpl(unsafe); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
34 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
35 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
36 private static final class UnsafeAccessImpl implements UnsafeAccess { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
37 private final Unsafe unsafe; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
38 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
39 private UnsafeAccessImpl(Unsafe unsafe) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
40 this.unsafe = unsafe; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
41 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
42 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
43 @SuppressWarnings("unchecked") |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
44 public <T> T uncheckedCast(Object value, Class<T> type, boolean condition, boolean nonNull) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
45 return (T) value; |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
46 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
47 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
48 public void putShort(Object receiver, long offset, short value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
49 unsafe.putShort(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
50 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
51 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
52 public void putObject(Object receiver, long offset, Object value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
53 unsafe.putObject(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
54 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
55 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
56 public void putLong(Object receiver, long offset, long value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
57 unsafe.putLong(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
58 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
59 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
60 public void putInt(Object receiver, long offset, int value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
61 unsafe.putInt(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
62 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
63 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
64 public void putFloat(Object receiver, long offset, float value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
65 unsafe.putFloat(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
66 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
67 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
68 public void putDouble(Object receiver, long offset, double value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
69 unsafe.putDouble(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
70 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
71 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
72 public void putByte(Object receiver, long offset, byte value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
73 unsafe.putByte(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
74 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
75 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
76 public void putBoolean(Object receiver, long offset, boolean value, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
77 unsafe.putBoolean(receiver, offset, value); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
78 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
79 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
80 public short getShort(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
81 return unsafe.getShort(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
82 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
83 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
84 public Object getObject(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
85 return unsafe.getObject(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
86 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
87 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
88 public long getLong(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
89 return unsafe.getLong(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
90 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
91 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
92 public int getInt(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
93 return unsafe.getInt(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
94 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
95 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
96 public float getFloat(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
97 return unsafe.getFloat(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
98 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
99 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
100 public double getDouble(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
101 return unsafe.getDouble(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
102 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
103 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
104 public byte getByte(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
105 return unsafe.getByte(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
106 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
107 |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
108 public boolean getBoolean(Object receiver, long offset, boolean condition, Object locationIdentity) { |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
109 return unsafe.getBoolean(receiver, offset); |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
110 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
111 } |
b54b548047ac
Truffle: also offer UnsafeAccessFactory in DefaultTruffleRuntime
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
112 } |