@@ -25,16 +25,16 @@ pub struct CallStacks {
2525
2626impl StackFrame {
2727 unsafe fn from_context ( context : * mut procs:: ExecutionContext ) -> StackFrame {
28- let instance = ( * context) . proc_instance ;
28+ let instance = ( * context) . proc_instance ( ) ;
2929
3030 let proc = Proc :: from_id ( ( * instance) . proc ) . unwrap ( ) ;
31- let offset = ( * context) . bytecode_offset ;
31+ let offset = ( * context) . bytecode_offset ( ) ;
3232 let param_names = proc. parameter_names ( ) ;
3333 let local_names = proc. local_names ( ) ;
3434
3535 let usr = Value :: from_raw ( ( * instance) . usr ) ;
3636 let src = Value :: from_raw ( ( * instance) . src ) ;
37- let dot = Value :: from_raw ( ( * context) . dot ) ;
37+ let dot = Value :: from_raw ( ( * context) . dot ( ) ) ;
3838
3939 // Make sure to handle arguments/locals with no names (when there are more
4040 // values than names)
@@ -45,21 +45,21 @@ impl StackFrame {
4545 } )
4646 . collect ( ) ;
4747
48- let locals = ( 0 ..( * context) . locals_count )
48+ let locals = ( 0 ..( * context) . locals_count ( ) )
4949 . map ( |i| {
5050 (
5151 local_names. get ( i as usize ) . unwrap ( ) . clone ( ) ,
52- Value :: from_raw ( * ( ( * context) . locals ) . add ( i as usize ) )
52+ Value :: from_raw ( * ( ( * context) . locals ( ) ) . add ( i as usize ) )
5353 )
5454 } )
5555 . collect ( ) ;
5656
5757 // Only populate the line number if we've got a file-name
5858 let mut file_name = None ;
5959 let mut line_number = None ;
60- if ( * context) . filename . valid ( ) {
61- file_name = Some ( StringRef :: from_id ( ( * context) . filename ) ) ;
62- line_number = Some ( ( * context) . line ) ;
60+ if ( * context) . filename ( ) . valid ( ) {
61+ file_name = Some ( StringRef :: from_id ( ( * context) . filename ( ) ) ) ;
62+ line_number = Some ( ( * context) . line ( ) ) ;
6363 }
6464
6565 // TODO: When set this? For all sleepers?
@@ -125,7 +125,7 @@ impl CallStacks {
125125
126126 unsafe {
127127 frames. push ( StackFrame :: from_context ( context) ) ;
128- context = ( * context) . parent_context ;
128+ context = ( * context) . parent_context ( ) ;
129129 }
130130 }
131131
0 commit comments