Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Flags: --allow-natives-syntax | |
| 6 | |
| 7 class SuperClass { | |
| 8 } | |
| 9 | |
| 10 class SubClass extends SuperClass { | |
| 11 constructor() { | |
| 12 super(); | |
| 13 this.doSomething(); | |
| 14 } | |
| 15 doSomething() { | |
| 16 } | |
| 17 } | |
| 18 | |
| 19 new SubClass(); | |
| 20 new SubClass(); | |
| 21 %OptimizeFunctionOnNextCall(SubClass); | |
| 22 new SubClass(); | |
| OLD | NEW |