Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/MonitorSnippets.java @ 18307:85f5227a7a37
add mutable/immutable factory methods to NamedLocationIdentity
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Fri, 07 Nov 2014 15:46:38 -0800 |
parents | 17bf458cf86e |
children | ea0fbb571466 |
comparison
equal
deleted
inserted
replaced
18306:229dc0d72f2f | 18307:85f5227a7a37 |
---|---|
367 * Leaving the breakpoint code in to provide an example of how to use the {@link BreakpointNode} | 367 * Leaving the breakpoint code in to provide an example of how to use the {@link BreakpointNode} |
368 * intrinsic. | 368 * intrinsic. |
369 */ | 369 */ |
370 private static final boolean ENABLE_BREAKPOINT = false; | 370 private static final boolean ENABLE_BREAKPOINT = false; |
371 | 371 |
372 private static final LocationIdentity MONITOR_COUNTER_LOCATION = NamedLocationIdentity.create("MonitorCounter"); | 372 private static final LocationIdentity MONITOR_COUNTER_LOCATION = NamedLocationIdentity.mutable("MonitorCounter"); |
373 | 373 |
374 @NodeIntrinsic(BreakpointNode.class) | 374 @NodeIntrinsic(BreakpointNode.class) |
375 static native void bkpt(Object object, Word mark, Word tmp, Word value); | 375 static native void bkpt(Object object, Word mark, Word tmp, Word value); |
376 | 376 |
377 private static void incCounter() { | 377 private static void incCounter() { |