Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/WriteLocalNode.java @ 8277:97ee911c4c74
Fixed behaviour of useSpecializations for Generic specializations.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 14 Mar 2013 13:10:29 +0100 |
parents | b81f42160093 |
children | aa9ffb3a715e |
comparison
equal
deleted
inserted
replaced
8260:b81f42160093 | 8277:97ee911c4c74 |
---|---|
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 | 67 @Generic(useSpecializations = false) |
68 public Object writeGeneric(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 |