Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/WriteLocalNode.java @ 8260:b81f42160093
Fix use specializations in generic until further fixes are done.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Mar 2013 21:11:03 +0100 |
parents | ac2204c05a02 |
children | 97ee911c4c74 |
comparison
equal
deleted
inserted
replaced
8259:65f03d5f98a1 | 8260:b81f42160093 |
---|---|
62 public String write(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(useSpecializations = false) | 67 @Generic |
68 public Object write(VirtualFrame frame, Object right) { | 68 public Object writeGeneric(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 |