Skip to content

Commit

Permalink
runtime: update constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
dinfuehr committed Jul 25, 2023
1 parent 2bc5a5c commit fa5f947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dora-runtime/src/compiler/lazy_compilation_stub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ pub fn generate<'a>(vm: &'a VM) -> Arc<Code> {
ngen.generate()
}

const FP_OFFSET_SHADOW_STACK: i32 = 0;
const FRAME_SHADOW_STACK_OFFSET: i32 = 0;
const FRAME_SHADOW_STACK_SIZE: i32 = if cfg!(target_family = "windows") {
32
} else {
0
};
const FRAME_DTN_OFFSET: i32 = FP_OFFSET_SHADOW_STACK + FRAME_SHADOW_STACK_SIZE;
const FRAME_DTN_OFFSET: i32 = FRAME_SHADOW_STACK_OFFSET + FRAME_SHADOW_STACK_SIZE;
const FRAME_DTN_SIZE: i32 = size_of::<DoraToNativeInfo>() as i32;
const FRAME_PARAMS_OFFSET: i32 = FRAME_DTN_OFFSET + FRAME_DTN_SIZE;
const FRAME_PARAMS_SIZE: i32 = (FREG_PARAMS.len() + REG_PARAMS.len()) as i32 * mem::ptr_width();
Expand Down

0 comments on commit fa5f947

Please sign in to comment.