test/js-perf-test/SuperIC/compare-super-and-normal-property-access.js
// Classes for megamorphic super property access.
Classes for megamorphic super property access.
Classes for megamorphic super property access .
function createClasses(base) {
  class B extends base { };
  B.prototype.super_prop_b0 = 10;
  B.prototype.super_prop_b1 = 10;
  B.prototype.super_prop_b2 = 10;
  B.prototype.super_prop_b3 = 10;
  B.prototype.super_prop_b4 = 10;
  B.prototype.super_prop_b5 = 10;
  B.prototype.super_prop_b6 = 10;
  B.prototype.super_prop_b7 = 10;
  B.prototype.super_prop_b8 = 10;
  B.prototype.super_prop_b9 = 10;
  class C extends B {
    test_super_a(unused) {
      return (super.super_prop_a0 + super.super_prop_a1 + super.super_prop_a2 +
        super.super_prop_a3 + super.super_prop_a4 + super.super_prop_a5 +
        super.super_prop_a6 + super.super_prop_a7 + super.super_prop_a8 +
        super.super_prop_a9);
    }
    test_super_b(unused) {
      return (super.super_prop_b0 + super.super_prop_b1 + super.super_prop_b2 +
        super.super_prop_b3 + super.super_prop_b4 + super.super_prop_b5 +
        super.super_prop_b6 + super.super_prop_b7 + super.super_prop_b8 +
        super.super_prop_b9);
    }
  }
  return C;
}
function createClasses ( base ) { class B extends base { } ; B . prototype . super_prop_b0 = 10 ; B . prototype . super_prop_b1 = 10 ; B . prototype . super_prop_b2 = 10 ; B . prototype . super_prop_b3 = 10 ; B . prototype . super_prop_b4 = 10 ; B . prototype . super_prop_b5 = 10 ; B . prototype . super_prop_b6 = 10 ; B . prototype . super_prop_b7 = 10 ; B . prototype . super_prop_b8 = 10 ; B . prototype . super_prop_b9 = 10 ; class C extends B { test_super_a ( unused ) { return ( super . super_prop_a0 + super . super_prop_a1 + super . super_prop_a2 + super . super_prop_a3 + super . super_prop_a4 + super . super_prop_a5 + super . super_prop_a6 + super . super_prop_a7 + super . super_prop_a8 + super . super_prop_a9 ) ; } test_super_b ( unused ) { return ( super . super_prop_b0 + super . super_prop_b1 + super . super_prop_b2 + super . super_prop_b3 + super . super_prop_b4 + super . super_prop_b5 + super . super_prop_b6 + super . super_prop_b7 + super . super_prop_b8 + super . super_prop_b9 ) ; } } return C ; }
Classes for megamorphic super property access.
Classes for megamorphic super property access .