comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 13955:1541afe9cf15

add missing unsafeGetLong substitution; minor grammar fix (a/an)
author Andreas Woess <andreas.woess@jku.at>
date Thu, 13 Feb 2014 15:01:48 +0100
parents 3e013f4512de
children fca29edf5667
comparison
equal deleted inserted replaced
13953:d587baa55dd7 13955:1541afe9cf15
240 public static short unsafeGetShort(Object receiver, long offset, boolean condition, Object locationIdentity) { 240 public static short unsafeGetShort(Object receiver, long offset, boolean condition, Object locationIdentity) {
241 return UNSAFE.getShort(receiver, offset); 241 return UNSAFE.getShort(receiver, offset);
242 } 242 }
243 243
244 /** 244 /**
245 * Unsafe access to a int value within an object. The condition parameter gives a hint to the 245 * Unsafe access to an int value within an object. The condition parameter gives a hint to the
246 * compiler under which circumstances this access can be moved to an earlier location in the 246 * compiler under which circumstances this access can be moved to an earlier location in the
247 * program. The location identity gives a hint to the compiler for improved global value 247 * program. The location identity gives a hint to the compiler for improved global value
248 * numbering. 248 * numbering.
249 * 249 *
250 * @param receiver the object that is accessed 250 * @param receiver the object that is accessed
312 public static double unsafeGetDouble(Object receiver, long offset, boolean condition, Object locationIdentity) { 312 public static double unsafeGetDouble(Object receiver, long offset, boolean condition, Object locationIdentity) {
313 return UNSAFE.getDouble(receiver, offset); 313 return UNSAFE.getDouble(receiver, offset);
314 } 314 }
315 315
316 /** 316 /**
317 * Unsafe access to a Object value within an object. The condition parameter gives a hint to the 317 * Unsafe access to an Object value within an object. The condition parameter gives a hint to
318 * compiler under which circumstances this access can be moved to an earlier location in the 318 * the compiler under which circumstances this access can be moved to an earlier location in the
319 * program. The location identity gives a hint to the compiler for improved global value 319 * program. The location identity gives a hint to the compiler for improved global value
320 * numbering. 320 * numbering.
321 * 321 *
322 * @param receiver the object that is accessed 322 * @param receiver the object that is accessed
323 * @param offset the offset at which to access the object in bytes 323 * @param offset the offset at which to access the object in bytes
372 public static void unsafePutShort(Object receiver, long offset, short value, Object locationIdentity) { 372 public static void unsafePutShort(Object receiver, long offset, short value, Object locationIdentity) {
373 UNSAFE.putShort(receiver, offset, value); 373 UNSAFE.putShort(receiver, offset, value);
374 } 374 }
375 375
376 /** 376 /**
377 * Write a int value within an object. The location identity gives a hint to the compiler for 377 * Write an int value within an object. The location identity gives a hint to the compiler for
378 * improved global value numbering. 378 * improved global value numbering.
379 * 379 *
380 * @param receiver the object that is written to 380 * @param receiver the object that is written to
381 * @param offset the offset at which to write to the object in bytes 381 * @param offset the offset at which to write to the object in bytes
382 * @param value the value to be written 382 * @param value the value to be written
428 public static void unsafePutDouble(Object receiver, long offset, double value, Object locationIdentity) { 428 public static void unsafePutDouble(Object receiver, long offset, double value, Object locationIdentity) {
429 UNSAFE.putDouble(receiver, offset, value); 429 UNSAFE.putDouble(receiver, offset, value);
430 } 430 }
431 431
432 /** 432 /**
433 * Write a Object value within an object. The location identity gives a hint to the compiler for 433 * Write an Object value within an object. The location identity gives a hint to the compiler
434 * improved global value numbering. 434 * for improved global value numbering.
435 * 435 *
436 * @param receiver the object that is written to 436 * @param receiver the object that is written to
437 * @param offset the offset at which to write to the object in bytes 437 * @param offset the offset at which to write to the object in bytes
438 * @param value the value to be written 438 * @param value the value to be written
439 * @param locationIdentity the location identity token that can be used for improved global 439 * @param locationIdentity the location identity token that can be used for improved global