// Copyright 2017 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.'use strict';varDefaultConstructorBenchmark=newBenchmarkSuite('LeafConstructors',[100],[newBenchmark('WithExplicitArguments',false,false,0,WithExplicitArguments),]);constPoint=classPoint{constructor(x,y,z){this.x=x;this.y=y;this.z=z;}}constklasses=[classAextendsPoint{constructor(x,y,z){super(x,y,z);}},classBextendsPoint{constructor(x,y,z){super(x,y,z);}},classCextendsPoint{constructor(x,y,z){super(x,y,z);}},classDextendsPoint{constructor(x,y,z){super(x,y,z);}},classEextendsPoint{constructor(x,y,z){super(x,y,z);}}];functionWithExplicitArguments(){letresult=null;for(constklassofklasses){result=newklass(0,1,2);}returnresult;};