Home | History | Annotate | Download | only in bytecode_expectations
      1 #
      2 # Autogenerated by generate-bytecode-expectations.
      3 #
      4 
      5 ---
      6 pool type: mixed
      7 execute: yes
      8 wrap: no
      9 test function name: f
     10 
     11 ---
     12 snippet: "
     13   function Outer() {
     14     var outerVar = 1;
     15     function Inner(innerArg) {
     16       this.innerFunc = function() { return outerVar * innerArg; }
     17     }
     18     this.getInnerFunc = function() { return new Inner(1).innerFunc; }
     19   }
     20   var f = new Outer().getInnerFunc();
     21   f();
     22 "
     23 frame size: 2
     24 parameter count: 1
     25 bytecode array length: 15
     26 bytecodes: [
     27   /*   97 E> */ B(StackCheck),
     28   /*  102 S> */ B(LdrContextSlot), R(context), U8(1), R(0),
     29                 B(LdrContextSlot), R(0), U8(4), R(1),
     30   /*  120 E> */ B(LdaContextSlot), R(context), U8(4),
     31                 B(Mul), R(1),
     32   /*  130 S> */ B(Return),
     33 ]
     34 constant pool: [
     35 ]
     36 handlers: [
     37 ]
     38 
     39 ---
     40 snippet: "
     41   function Outer() {
     42     var outerVar = 1;
     43     function Inner(innerArg) {
     44       this.innerFunc = function() { outerVar = innerArg; }
     45     }
     46     this.getInnerFunc = function() { return new Inner(1).innerFunc; }
     47   }
     48   var f = new Outer().getInnerFunc();
     49   f();
     50 "
     51 frame size: 2
     52 parameter count: 1
     53 bytecode array length: 16
     54 bytecodes: [
     55   /*   97 E> */ B(StackCheck),
     56   /*  102 S> */ B(LdrContextSlot), R(context), U8(4), R(0),
     57   /*  111 E> */ B(LdrContextSlot), R(context), U8(1), R(1),
     58                 B(Ldar), R(0),
     59                 B(StaContextSlot), R(1), U8(4),
     60                 B(LdaUndefined),
     61   /*  123 S> */ B(Return),
     62 ]
     63 constant pool: [
     64 ]
     65 handlers: [
     66 ]
     67 
     68