@@ -24,7 +24,7 @@ use crate::avm2::{Avm2, Error};
24
24
use crate :: context:: { GcContext , UpdateContext } ;
25
25
use crate :: string:: { AvmAtom , AvmString } ;
26
26
use crate :: tag_utils:: SwfMovie ;
27
- use gc_arena:: { Gc , GcCell } ;
27
+ use gc_arena:: Gc ;
28
28
use smallvec:: SmallVec ;
29
29
use std:: cmp:: { min, Ordering } ;
30
30
use std:: sync:: Arc ;
@@ -779,7 +779,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
779
779
& mut self ,
780
780
method : Gc < ' gc , BytecodeMethod < ' gc > > ,
781
781
index : Index < AbcClass > ,
782
- ) -> Result < GcCell < ' gc , Class < ' gc > > , Error < ' gc > > {
782
+ ) -> Result < Class < ' gc > , Error < ' gc > > {
783
783
method. translation_unit ( ) . load_class ( index. 0 , self )
784
784
}
785
785
@@ -1723,7 +1723,6 @@ impl<'a, 'gc> Activation<'a, 'gc> {
1723
1723
. instance_of ( )
1724
1724
. map ( |cls| {
1725
1725
cls. inner_class_definition ( )
1726
- . read ( )
1727
1726
. name ( )
1728
1727
. to_qualified_name_err_message ( self . context . gc_context )
1729
1728
} )
@@ -2620,10 +2619,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
2620
2619
Ok ( FrameControl :: Continue )
2621
2620
}
2622
2621
2623
- fn op_is_type (
2624
- & mut self ,
2625
- class : GcCell < ' gc , Class < ' gc > > ,
2626
- ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2622
+ fn op_is_type ( & mut self , class : Class < ' gc > ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2627
2623
let value = self . pop_stack ( ) ;
2628
2624
2629
2625
let is_instance_of = value. is_of_type ( self , class) ;
@@ -2652,10 +2648,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
2652
2648
Ok ( FrameControl :: Continue )
2653
2649
}
2654
2650
2655
- fn op_as_type (
2656
- & mut self ,
2657
- class : GcCell < ' gc , Class < ' gc > > ,
2658
- ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2651
+ fn op_as_type ( & mut self , class : Class < ' gc > ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2659
2652
let value = self . pop_stack ( ) ;
2660
2653
2661
2654
if value. is_of_type ( self , class) {
@@ -2821,10 +2814,7 @@ impl<'a, 'gc> Activation<'a, 'gc> {
2821
2814
}
2822
2815
2823
2816
/// Implements `Op::Coerce`
2824
- fn op_coerce (
2825
- & mut self ,
2826
- class : GcCell < ' gc , Class < ' gc > > ,
2827
- ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2817
+ fn op_coerce ( & mut self , class : Class < ' gc > ) -> Result < FrameControl < ' gc > , Error < ' gc > > {
2828
2818
let val = self . pop_stack ( ) ;
2829
2819
let x = val. coerce_to_type ( self , class) ?;
2830
2820
0 commit comments