fn check(&mut self, vm: &VM, func: &mut MuFunctionVersion) -> bool {
        debug!("check inline");

        // should_inline will store all the calls from this function,
        // and whether they should be inlined
        self.should_inline.clear();

        let mut inline_something = false;

        // check each call from this function
        for (_, (func_id, has_exc)) in func.get_static_call_edges() {
            // check a single callsite, whether it should be inlined
            // the result is returned as boolean, and also written into 'should_inline'
            let should_inline_this =
                self.check_should_inline_func(has_exc, func_id, func.func_id, vm);
            inline_something = inline_something || should_inline_this;
        }

        inline_something
    }
/// checks whether we need to rewrite the function because of inlining
checks whether we need to rewrite the function because of inlining
checks whether we need to rewrite the function because of inlining
fn check(&mut self, vm: &VM, func: &mut MuFunctionVersion) -> bool {
        debug!("check inline");
        // should_inline will store all the calls from this function,
        // and whether they should be inlined
        self.should_inline.clear();
        let mut inline_something = false;
        // check each call from this function
        for (_, (func_id, has_exc)) in func.get_static_call_edges() {
            // check a single callsite, whether it should be inlined
            // the result is returned as boolean, and also written into 'should_inline'
            let should_inline_this =
                self.check_should_inline_func(has_exc, func_id, func.func_id, vm);
            inline_something = inline_something || should_inline_this;
        }
        inline_something
    }
fn check ( & mut self , vm : & VM , func : & mut MuFunctionVersion ) -> bool { debug ! ( " " ) ; // should_inline will store all the calls from this function, // and whether they should be inlined self . should_inline . clear ( ) ; let mut inline_something = false ; // check each call from this function for ( _ , ( func_id , has_exc ) ) in func . get_static_call_edges ( ) { // check a single callsite, whether it should be inlined // the result is returned as boolean, and also written into 'should_inline' let should_inline_this = self . check_should_inline_func ( has_exc , func_id , func . func_id , vm ) ; inline_something = inline_something || should_inline_this ; } inline_something }
checks whether we need to rewrite the function because of inlining
checks whether we need to rewrite the function because of inlining
&mut self
vm
&VM
func
&mut MuFunctionVersion
&mut self
vm
&VM
func
&mut MuFunctionVersion