Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/access/SLWritePropertyNode.java @ 20955:f7bc60c3a8f6
SL: use DSL for property writes.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:16:14 +0200 |
parents | 997bc9764a9a |
children |
comparison
equal
deleted
inserted
replaced
20954:73211b2c7c7a | 20955:f7bc60c3a8f6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
52 private SLWritePropertyNode(SourceSection src, SLExpressionNode receiverNode, String propertyName, SLExpressionNode valueNode) { | 52 private SLWritePropertyNode(SourceSection src, SLExpressionNode receiverNode, String propertyName, SLExpressionNode valueNode) { |
53 super(src); | 53 super(src); |
54 this.receiverNode = receiverNode; | 54 this.receiverNode = receiverNode; |
55 this.propertyName = propertyName; | 55 this.propertyName = propertyName; |
56 this.valueNode = valueNode; | 56 this.valueNode = valueNode; |
57 this.cacheNode = SLWritePropertyCacheNode.create(propertyName); | 57 this.cacheNode = SLWritePropertyCacheNodeGen.create(propertyName); |
58 } | 58 } |
59 | 59 |
60 @Override | 60 @Override |
61 public Object executeGeneric(VirtualFrame frame) { | 61 public Object executeGeneric(VirtualFrame frame) { |
62 Object value = valueNode.executeGeneric(frame); | 62 Object value = valueNode.executeGeneric(frame); |