Mercurial > hg > graal-compiler
annotate graal/com.oracle.jvmci.debug/src/com/oracle/jvmci/debug/DebugDumpScope.java @ 21709:3c17c0c41a6b
moved com.oracle.asm.**.test to JVMCI namespace (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 18:33:23 +0200 |
parents | b1530a6cce8c |
children |
rev | line source |
---|---|
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
1 /* |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
4 * |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
8 * |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
13 * accompanied this code). |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
14 * |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
18 * |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
21 * questions. |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
22 */ |
21554
b1530a6cce8c
renamed com.oracle.graal.[debug|options|hotspotvmconfig]* modules to com.oracle.jvmci.[debug|options|hotspotvmconfig]* modules (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
7530
diff
changeset
|
23 package com.oracle.jvmci.debug; |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
24 |
5432
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
25 public class DebugDumpScope { |
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
26 |
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
27 public final String name; |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
28 |
5432
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
29 /** |
7530
5e3d1a68664e
applied mx eclipseformat to all Java files
Doug Simon <doug.simon@oracle.com>
parents:
5432
diff
changeset
|
30 * Specifies if this scope decorates an inner scope. A hierarchical or tree representation of |
5e3d1a68664e
applied mx eclipseformat to all Java files
Doug Simon <doug.simon@oracle.com>
parents:
5432
diff
changeset
|
31 * nested scopes may choose to represent a decorator scope at the same level as the scope it |
5e3d1a68664e
applied mx eclipseformat to all Java files
Doug Simon <doug.simon@oracle.com>
parents:
5432
diff
changeset
|
32 * decorates. |
5432
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
33 */ |
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
34 public final boolean decorator; |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
35 |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
36 public DebugDumpScope(String name) { |
5432
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
37 this(name, false); |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
38 } |
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
39 |
5432
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
40 public DebugDumpScope(String name, boolean decorator) { |
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
41 this.name = name; |
50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
Doug Simon <doug.simon@oracle.com>
parents:
5061
diff
changeset
|
42 this.decorator = decorator; |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
43 } |
4653
ac9ab44b75fd
Disable propagate types phase. Fix intrinsification of an invoke with a deoptimize node.
Andreas Woess <andreas.woess@jku.at>
parents:
4477
diff
changeset
|
44 |
ac9ab44b75fd
Disable propagate types phase. Fix intrinsification of an invoke with a deoptimize node.
Andreas Woess <andreas.woess@jku.at>
parents:
4477
diff
changeset
|
45 @Override |
ac9ab44b75fd
Disable propagate types phase. Fix intrinsification of an invoke with a deoptimize node.
Andreas Woess <andreas.woess@jku.at>
parents:
4477
diff
changeset
|
46 public String toString() { |
ac9ab44b75fd
Disable propagate types phase. Fix intrinsification of an invoke with a deoptimize node.
Andreas Woess <andreas.woess@jku.at>
parents:
4477
diff
changeset
|
47 return "DebugDumpScope[" + name + "]"; |
ac9ab44b75fd
Disable propagate types phase. Fix intrinsification of an invoke with a deoptimize node.
Andreas Woess <andreas.woess@jku.at>
parents:
4477
diff
changeset
|
48 } |
4477
27c5466afd55
Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
49 } |