From 5a70fe8ed45e6521e0939e12ff99cbadc100e397 Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Thu, 7 Feb 2013 15:02:10 -0800 Subject: Add sun.misc.Unsafe get/put int/long/object intrinsics. These methods can be inlined by the compiler. Change-Id: I072096ad93c0928babc4a30927fb50fc4c27f7f7 --- src/compiler/codegen/codegen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compiler/codegen/codegen.h') 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. -- cgit v1.2.3-59-g8ed1b