comparison graal/com.oracle.graal.examples/src/examples/HelloWorld.java @ 5233:efbb1e33e2f3

removed XIR prologue and epilogues - architecture and runtime specific subclass of Backend is now used instead removed XIR ops: Align, StackOverflowCheck, PushFrame, PopFrame, RawBytes enhanced disassembly to annotate marks
author Doug Simon <doug.simon@oracle.com>
date Thu, 12 Apr 2012 15:55:03 +0200
parents e808627bd16f
children
comparison
equal deleted inserted replaced
5232:c005ca943790 5233:efbb1e33e2f3
23 package examples; 23 package examples;
24 24
25 25
26 public class HelloWorld { 26 public class HelloWorld {
27 public static void main(String[] args) { 27 public static void main(String[] args) {
28 System.out.println("hello world!"); 28 new HelloWorld(args).greet();
29 }
30
31 public HelloWorld(String[] args) {
32 name = args.length == 0 ? "world" : args[0];
33 }
34
35 public String name;
36
37 public String getName() {
38 return name;
39 }
40
41 public void greet() {
42 System.out.println("hello " + getName() + "!");
29 } 43 }
30 } 44 }