Skip to content

Commit ce4c720

Browse files
authored
chore(evm): updates interface after adding a profiler (#325)
1 parent e87c453 commit ce4c720

File tree

9 files changed

+132
-63
lines changed

9 files changed

+132
-63
lines changed

Cargo.lock

Lines changed: 80 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

era-compiler-solidity/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rayon = "1.10"
2424

2525
serde = { version = "1.0", "features" = [ "derive" ] }
2626
serde_json = { version = "1.0", features = [ "arbitrary_precision" ] }
27+
twox-hash = "2.1"
2728
semver = { version = "1.0", features = [ "serde" ] }
2829
hex = "0.4"
2930
num = "0.4"

era-compiler-solidity/src/evmla/assembly/instruction/jump.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use era_compiler_llvm_context::IEVMLAFunction;
1111
pub fn unconditional<'ctx, C>(
1212
context: &mut C,
1313
destination: num::BigUint,
14-
stack_hash: [u8; era_compiler_common::BYTE_LENGTH_FIELD],
14+
stack_hash: u64,
1515
) -> anyhow::Result<()>
1616
where
1717
C: era_compiler_llvm_context::IContext<'ctx>,
@@ -44,7 +44,7 @@ where
4444
pub fn conditional<'ctx, C>(
4545
context: &mut C,
4646
destination: num::BigUint,
47-
stack_hash: [u8; era_compiler_common::BYTE_LENGTH_FIELD],
47+
stack_hash: u64,
4848
stack_height: usize,
4949
) -> anyhow::Result<()>
5050
where

era-compiler-solidity/src/evmla/assembly/instruction/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl Instruction {
343343
pub fn recursive_call(
344344
name: String,
345345
entry_key: era_compiler_llvm_context::BlockKey,
346-
stack_hash: [u8; era_compiler_common::BYTE_LENGTH_FIELD],
346+
stack_hash: u64,
347347
input_size: usize,
348348
output_size: usize,
349349
return_address: era_compiler_llvm_context::BlockKey,

era-compiler-solidity/src/evmla/assembly/instruction/name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ pub enum Name {
375375
/// The called function key.
376376
entry_key: era_compiler_llvm_context::BlockKey,
377377
/// The stack state hash after return.
378-
stack_hash: [u8; era_compiler_common::BYTE_LENGTH_FIELD],
378+
stack_hash: u64,
379379
/// The input size.
380380
input_size: usize,
381381
/// The output size.

0 commit comments

Comments
 (0)