|
@@ -74,7 +74,6 @@ export class Store {
|
|
return new StoreValueAddress(array_type.innerType, v, l, c++, array.id, array.readOnly);
|
|
return new StoreValueAddress(array_type.innerType, v, l, c++, array.id, array.readOnly);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log("applyStore", values);
|
|
|
|
result = new ArrayStoreValue(array_type, values, array.lines, array.columns, val.id, val.readOnly);
|
|
result = new ArrayStoreValue(array_type, values, array.lines, array.columns, val.id, val.readOnly);
|
|
} else {
|
|
} else {
|
|
result = new StoreValue(val.type, val.value, val.id, val.readOnly);
|
|
result = new StoreValue(val.type, val.value, val.id, val.readOnly);
|
|
@@ -104,7 +103,6 @@ export class Store {
|
|
if(oldObj.isCompatible(array_value)) {
|
|
if(oldObj.isCompatible(array_value)) {
|
|
if(oldObj.isVector) {
|
|
if(oldObj.isVector) {
|
|
array_value.get().forEach((val, index) => {
|
|
array_value.get().forEach((val, index) => {
|
|
- console.log(val);
|
|
|
|
oldObj.setAt(val, index, undefined);
|
|
oldObj.setAt(val, index, undefined);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -211,9 +209,6 @@ export class Store {
|
|
newObj = new StoreObjectArrayRef(stoValue,0,0,false);
|
|
newObj = new StoreObjectArrayRef(stoValue,0,0,false);
|
|
} else if (stoValue instanceof ArrayStoreValue) {
|
|
} else if (stoValue instanceof ArrayStoreValue) {
|
|
const columns = stoValue.isVector() ? 0 : stoValue.columns!;
|
|
const columns = stoValue.isVector() ? 0 : stoValue.columns!;
|
|
- const line_address = Location.allocate(stoValue.lines);
|
|
|
|
- const column_address = Location.allocate(columns);
|
|
|
|
- const values_address = Location.allocate([]);
|
|
|
|
const addresses: number[] = [];
|
|
const addresses: number[] = [];
|
|
const all_values = stoValue.get();
|
|
const all_values = stoValue.get();
|
|
if(all_values.length > 0) {
|
|
if(all_values.length > 0) {
|
|
@@ -228,8 +223,7 @@ export class Store {
|
|
addresses.push(Location.allocate(null));
|
|
addresses.push(Location.allocate(null));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- Location.updateAddress(values_address, addresses);
|
|
|
|
- newObj = new StoreObjectArray(stoValue.type as ArrayType, line_address, column_address, values_address, stoValue.isConst);
|
|
|
|
|
|
+ newObj = new StoreObjectArray(stoValue.type as ArrayType, stoValue.lines, columns, addresses, stoValue.isConst);
|
|
} else {
|
|
} else {
|
|
const loc_address = Location.allocate(stoValue.get());
|
|
const loc_address = Location.allocate(stoValue.get());
|
|
newObj = new StoreObject(stoValue.type, loc_address, stoValue.isConst);
|
|
newObj = new StoreObject(stoValue.type, loc_address, stoValue.isConst);
|