annotate graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/access/SLWritePropertyCacheNode.java @ 21554:b1530a6cce8c

renamed com.oracle.graal.[debug|options|hotspotvmconfig]* modules to com.oracle.jvmci.[debug|options|hotspotvmconfig]* modules (JBS:GRAAL-53)
author Doug Simon <doug.simon@oracle.com>
date Tue, 26 May 2015 23:21:15 +0200
parents f7bc60c3a8f6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
1 /*
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
4 *
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
7 * published by the Free Software Foundation.
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
8 *
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
13 * accompanied this code).
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
14 *
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
18 *
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
21 * questions.
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
22 */
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
23 package com.oracle.truffle.sl.nodes.access;
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
24
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
25 import com.oracle.truffle.api.*;
21554
b1530a6cce8c renamed com.oracle.graal.[debug|options|hotspotvmconfig]* modules to com.oracle.jvmci.[debug|options|hotspotvmconfig]* modules (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 20955
diff changeset
26 import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
27 import com.oracle.truffle.api.dsl.*;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
28 import com.oracle.truffle.api.nodes.*;
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
29 import com.oracle.truffle.api.object.*;
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
30
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
31 public abstract class SLWritePropertyCacheNode extends Node {
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
32
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
33 protected final String propertyName;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
34
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
35 public SLWritePropertyCacheNode(String propertyName) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
36 this.propertyName = propertyName;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
37 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
38
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
39 public abstract void executeObject(DynamicObject receiver, Object value);
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
40
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
41 @Specialization(guards = "location.isValid(receiver, value)", assumptions = "location.getAssumptions()")
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
42 public void writeCached(DynamicObject receiver, Object value, //
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
43 @Cached("createCachedWrite(receiver, value)") CachedWriteLocation location) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
44 if (location.writeUnchecked(receiver, value)) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
45 // write successful
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
46 } else {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
47 executeObject(receiver, value);
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
48 }
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
49 }
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
50
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
51 @Specialization(contains = "writeCached")
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
52 @TruffleBoundary
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
53 public void writeGeneric(DynamicObject receiver, Object value, //
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
54 @Cached("new(createCachedWrite(receiver, value))") LRUCachedWriteLocation lru) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
55 CachedWriteLocation location = lru.location;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
56 if (!location.isValid(receiver, value) || !location.areAssumptionsValid()) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
57 location = createCachedWrite(receiver, value);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
58 lru.location = location;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
59 }
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
60 if (location.writeUnchecked(receiver, value)) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
61 // write successful
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
62 } else {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
63 executeObject(receiver, value);
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
64 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
65 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
66
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
67 protected CachedWriteLocation createCachedWrite(DynamicObject receiver, Object value) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
68 while (receiver.updateShape()) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
69 // multiple shape updates might be needed.
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
70 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
71
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
72 Shape oldShape = receiver.getShape();
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
73 Shape newShape;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
74 Property property = oldShape.getProperty(propertyName);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
75
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
76 if (property != null && property.getLocation().canSet(receiver, value)) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
77 newShape = oldShape;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
78 } else {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
79 receiver.define(propertyName, value, 0);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
80 newShape = receiver.getShape();
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
81 property = newShape.getProperty(propertyName);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
82 }
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
83
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
84 if (!oldShape.check(receiver)) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
85 return createCachedWrite(receiver, value);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
86 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
87
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
88 return new CachedWriteLocation(oldShape, newShape, property.getLocation());
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
89
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
90 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
91
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
92 protected static final class CachedWriteLocation {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
93
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
94 private final Shape oldShape;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
95 private final Shape newShape;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
96 private final Location location;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
97 private final Assumption validLocation = Truffle.getRuntime().createAssumption();
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
98
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
99 public CachedWriteLocation(Shape oldShape, Shape newShape, Location location) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
100 this.oldShape = oldShape;
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
101 this.newShape = newShape;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
102 this.location = location;
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
103 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
104
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
105 public boolean areAssumptionsValid() {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
106 return validLocation.isValid() && oldShape.getValidAssumption().isValid() && newShape.getValidAssumption().isValid();
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
107 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
108
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
109 public Assumption[] getAssumptions() {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
110 return new Assumption[]{oldShape.getValidAssumption(), newShape.getValidAssumption(), validLocation};
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
111 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
112
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
113 public boolean isValid(DynamicObject receiver, Object value) {
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
114 return oldShape.check(receiver) && location.canSet(receiver, value);
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
115 }
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
116
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
117 public boolean writeUnchecked(DynamicObject receiver, Object value) {
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
118 try {
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
119 if (oldShape == newShape) {
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
120 location.set(receiver, value, oldShape);
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
121 } else {
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
122 location.set(receiver, value, oldShape, newShape);
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
123 }
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
124 return true;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
125 } catch (IncompatibleLocationException | FinalLocationException e) {
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
126 validLocation.invalidate();
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
127 return false;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
128 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
129 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
130 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
131
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
132 protected static final class LRUCachedWriteLocation {
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
133
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
134 private CachedWriteLocation location;
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
135
20955
f7bc60c3a8f6 SL: use DSL for property writes.
Christian Humer <christian.humer@gmail.com>
parents: 18412
diff changeset
136 public LRUCachedWriteLocation(CachedWriteLocation location) {
18412
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
137 this.location = location;
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
138 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
139
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
140 }
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
141
997bc9764a9a SL: use the truffle object storage model to represent SL objects
Andreas Woess <andreas.woess@jku.at>
parents:
diff changeset
142 }