comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/WriteLocalNode.java @ 8247:5b08b0f4d338

Updated some Truffle-SL classes to new naming convention.
author Christian Humer <christian.humer@gmail.com>
date Wed, 06 Mar 2013 18:33:52 +0100
parents 5e3d1a68664e
children ac2204c05a02
comparison
equal deleted inserted replaced
8246:3862508afe2f 8247:5b08b0f4d338
39 public WriteLocalNode(WriteLocalNode node) { 39 public WriteLocalNode(WriteLocalNode node) {
40 this(node.slot, node.rightNode); 40 this(node.slot, node.rightNode);
41 } 41 }
42 42
43 @Specialization 43 @Specialization
44 public int doInteger(VirtualFrame frame, int right) { 44 public int write(VirtualFrame frame, int right) {
45 frame.setInt(slot, right); 45 frame.setInt(slot, right);
46 return right; 46 return right;
47 } 47 }
48 48
49 @Specialization 49 @Specialization
50 public BigInteger doBigInteger(VirtualFrame frame, BigInteger right) { 50 public BigInteger write(VirtualFrame frame, BigInteger right) {
51 frame.setObject(slot, right); 51 frame.setObject(slot, right);
52 return right; 52 return right;
53 } 53 }
54 54
55 @Specialization 55 @Specialization
56 public boolean doBoolean(VirtualFrame frame, boolean right) { 56 public boolean write(VirtualFrame frame, boolean right) {
57 frame.setBoolean(slot, right); 57 frame.setBoolean(slot, right);
58 return right; 58 return right;
59 } 59 }
60 60
61 @Specialization 61 @Specialization
62 public String doString(VirtualFrame frame, String right) { 62 public String write(VirtualFrame frame, String right) {
63 frame.setObject(slot, right); 63 frame.setObject(slot, right);
64 return right; 64 return right;
65 } 65 }
66 66
67 @Generic 67 @Generic
68 public Object doGeneric(VirtualFrame frame, Object right) { 68 public Object write(VirtualFrame frame, Object right) {
69 frame.setObject(slot, right); 69 frame.setObject(slot, right);
70 return right; 70 return right;
71 } 71 }
72 72
73 @SpecializationListener 73 @SpecializationListener