mirror of https://github.com/boa-dev/boa.git
Browse Source
* - add trace to VSCode launch - comment out pushUndefined and Return - Move call frame to its own file - heading for code blocks needed to be on its own line - Show the difference between the VM starting up and a new Call frame being ran * add back in return opCodes * Update boa/src/vm/mod.rs Co-authored-by: João Borges <rageknify@gmail.com>pull/1636/head
Jason Williams
3 years ago
committed by
GitHub
5 changed files with 29 additions and 17 deletions
@ -0,0 +1,17 @@
|
||||
//! CallFrame
|
||||
//! This module will provides everything needed to implement the CallFrame
|
||||
|
||||
use super::CodeBlock; |
||||
use crate::{environment::lexical_environment::Environment, JsValue}; |
||||
use gc::Gc; |
||||
|
||||
#[derive(Debug)] |
||||
pub struct CallFrame { |
||||
pub(crate) prev: Option<Box<Self>>, |
||||
pub(crate) code: Gc<CodeBlock>, |
||||
pub(crate) pc: usize, |
||||
pub(crate) fp: usize, |
||||
pub(crate) exit_on_return: bool, |
||||
pub(crate) this: JsValue, |
||||
pub(crate) environment: Environment, |
||||
} |
Loading…
Reference in new issue