summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/codegen.h
diff options
context:
space:
mode:
author Jeff Hao <jeffhao@google.com> 2013-02-07 15:02:10 -0800
committer Jeff Hao <jeffhao@google.com> 2013-02-07 15:02:10 -0800
commit5a70fe8ed45e6521e0939e12ff99cbadc100e397 (patch)
tree7b0ab22aa1eb8a888f3ba35ec2a64bd6ebd0904e /src/compiler/codegen/codegen.h
parent9e2d454e0cc7285dd8221f24bd2ff5dbe399b363 (diff)
Add sun.misc.Unsafe get/put int/long/object intrinsics.
These methods can be inlined by the compiler. Change-Id: I072096ad93c0928babc4a30927fb50fc4c27f7f7
Diffstat (limited to 'src/compiler/codegen/codegen.h')
-rw-r--r--src/compiler/codegen/codegen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/codegen/codegen.h b/src/compiler/codegen/codegen.h
index 901e5da6bb..90a82a7a27 100644
--- a/src/compiler/codegen/codegen.h
+++ b/src/compiler/codegen/codegen.h
@@ -205,6 +205,9 @@ class Codegen {
bool GenInlinedIndexOf(CompilationUnit* cu, CallInfo* info, bool zero_based);
bool GenInlinedStringCompareTo(CompilationUnit* cu, CallInfo* info);
bool GenInlinedCurrentThread(CompilationUnit* cu, CallInfo* info);
+ bool GenInlinedUnsafeGet(CompilationUnit* cu, CallInfo* info, bool is_long, bool is_volatile);
+ bool GenInlinedUnsafePut(CompilationUnit* cu, CallInfo* info, bool is_long, bool is_object,
+ bool is_volatile, bool is_ordered);
bool GenIntrinsic(CompilationUnit* cu, CallInfo* info);
// Shared by all targets - implemented in gen_loadstore.cc.