Enlarge storage references to two stack slots.

This commit is contained in:
chriseth
2015-03-16 18:07:14 +01:00
parent c34e1da6db
commit fff3f98f58
9 changed files with 168 additions and 134 deletions
+1
View File
@@ -93,6 +93,7 @@ void CompilerUtils::storeInMemoryDynamic(Type const& _type, bool _padToWordBound
else
{
solAssert(type.getLocation() == ArrayType::Location::Storage, "Memory arrays not yet implemented.");
m_context << eth::Instruction::POP; //@todo
m_context << eth::Instruction::DUP1 << eth::Instruction::SLOAD;
// stack here: memory_offset storage_offset length_bytes
// jump to end if length is zero