Commit Graph

58 Commits

Author SHA1 Message Date
debris
9fa4a693ce fixed build issues with stabilized feature WrappingOps 2016-01-19 12:04:27 +01:00
Tomusdrw
342c4e736d Getting rid of RequiredMem enum 2016-01-17 14:17:05 +01:00
Tomusdrw
c8d94c981b Additional check before conversion 2016-01-17 14:08:31 +01:00
Tomusdrw
aca68dcfe7 Fixing mem_gas_cost calcualtion by jumping to U512 2016-01-17 13:59:30 +01:00
Tomusdrw
83ac4bce06 Handling overflows in gas_for_mem calculation 2016-01-17 13:48:48 +01:00
Tomusdrw
97d23f551b Cleaning ugly tuple deconstructions 2016-01-17 13:24:57 +01:00
Tomusdrw
eb4a9d8586 Removing println 2016-01-17 12:06:37 +01:00
Tomusdrw
4df5f0ca31 Handling all possible overflows 2016-01-17 11:54:29 +01:00
Tomusdrw
57129f4fd3 Changing to AddAsign 2016-01-17 11:26:37 +01:00
Tomusdrw
48040590f5 Fixing create-gasleft 2016-01-16 21:24:19 +01:00
Tomusdrw
3979b787f7 merged with mk 2016-01-16 20:58:23 +01:00
Tomusdrw
e9dab4d567 Merge branch 'evm' into evm_stack_fix
Conflicts:
	src/evm/instructions.rs
	src/evm/interpreter.rs
2016-01-16 17:27:54 +01:00
Tomusdrw
5b9097a9ca Renaming NO_OF_LOG_INSTRUCTIONS -> MAX_NO_OF_TOPICS 2016-01-16 17:24:42 +01:00
Tomusdrw
79c1cc02f7 Vec<u8> -> Bytes and clearing log API 2016-01-16 17:17:43 +01:00
Tomusdrw
09c46be74d Cleaning evm 2016-01-16 17:08:57 +01:00
Tomusdrw
d496a66a30 Single array for logs output. 2016-01-16 16:11:57 +01:00
Tomusdrw
f7a745adee Fixing compilation 2016-01-16 14:14:35 +01:00
Tomusdrw
012474b237 Fixing SSTORE gas calculation 2016-01-16 13:59:48 +01:00
debris
fa1f0d1cf4 executive tests fixed
Conflicts:
	src/executive.rs
2016-01-16 11:43:45 +01:00
Tomusdrw
a1a4c5a068 Merge branch 'master' into evm
Conflicts:
	src/evm/tests.rs
	src/executive.rs
2016-01-16 11:33:41 +01:00
Tomusdrw
aef38a9abc Fixing code compilation 2016-01-16 02:25:08 +01:00
Tomusdrw
24777cc569 Fixing memory calculations overflows 2016-01-16 01:24:37 +01:00
Tomusdrw
e0f3f7adcc Fixing memory slices when trying to get memory with size=0 2016-01-16 00:31:04 +01:00
Tomusdrw
9e7fea94bf Fixing memory allocation 2016-01-15 23:32:16 +01:00
Tomusdrw
f49afe1b6a Fixing memory read-write 2016-01-15 22:46:29 +01:00
Tomusdrw
24e86d4479 Fixing possible gas-memory calculation overflows 2016-01-15 21:46:08 +01:00
Tomusdrw
7bb963f866 Fixing CALLDATALOAD for big indexes 2016-01-15 20:19:46 +01:00
Tomusdrw
51f828ac37 Fixing CALLDATALOAD 2016-01-15 20:14:16 +01:00
Tomusdrw
46ecb16191 Fixing BYTE instruction 2016-01-15 19:48:51 +01:00
Tomusdrw
7af4825b15 Implementing Signextend and fixing signed operations 2016-01-15 19:15:37 +01:00
Tomusdrw
b7e7518b8e More merging with master 2016-01-15 16:26:47 +01:00
Tomusdrw
539fffaab9 Implementing missing instructions 2016-01-15 16:04:18 +01:00
Tomusdrw
2d2e4fc838 Changing to overflowing_pow 2016-01-15 14:48:07 +01:00
Tomusdrw
5e2721f964 Pow implementation 2016-01-15 14:45:30 +01:00
Tomusdrw
c4e5271651 Initial implementation of couple of more instructions 2016-01-15 03:12:39 +01:00
Tomusdrw
5d0c294635 Fixes after merge 2016-01-15 02:16:04 +01:00
Tomusdrw
66b0e4af35 Using overflowing operations 2016-01-15 01:48:53 +01:00
Tomusdrw
0234a320ca Fixing division and mod 2016-01-15 01:41:49 +01:00
Tomusdrw
4520f69ed7 Fixing CALL cost and PC instruction 2016-01-14 16:32:28 +01:00
Tomusdrw
0a5bec821f Fixing required memory calculation 2016-01-14 14:49:41 +01:00
Tomusdrw
eebcd0f35b Fixing memory cost calculation 2016-01-14 12:34:32 +01:00
Tomusdrw
f1ef2792e8 Fromatting of Evm::exec 2016-01-14 11:00:29 +01:00
Tomusdrw
ebd7081d59 Return BadInstruction instead of panic 2016-01-14 02:45:16 +01:00
Tomusdrw
4d41c3352e Adding instruction name to BadInstruction 2016-01-14 02:36:48 +01:00
Tomusdrw
e9cc821969 More formatting 2016-01-14 02:26:20 +01:00
Tomusdrw
de802b7b6e Call should push 1 to stack after completed 2016-01-14 02:18:36 +01:00
Tomusdrw
1de64ec751 Fixing formatting 2016-01-14 01:56:37 +01:00
Tomusdrw
7e5de5f5c7 More descriptive interpreter errors 2016-01-14 01:31:45 +01:00
Tomusdrw
dedf340381 Optimize couple of access methods 2016-01-14 01:05:01 +01:00
Tomusdrw
f38c99b285 Removing unecessary casts 2016-01-14 00:46:24 +01:00