| // Copyright 2016 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. |
| // Flags: --allow-natives-syntax --stress-inline |
| var stack = new Error('boom').stack; |
| %NeverOptimizeFunction(h); |
| o.__defineGetter__('p', g); |
| %PrepareFunctionForOptimization(f1); |
| %OptimizeFunctionOnNextCall(f1); |
| o.__defineSetter__('q', g); |
| %PrepareFunctionForOptimization(f2); |
| %OptimizeFunctionOnNextCall(f2); |
| %PrepareFunctionForOptimization(f3); |
| %OptimizeFunctionOnNextCall(f3); |