OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 function runNearStackLimit(f) { |
| 8 function t() { |
| 9 try { t(); } catch(e) { f(); } |
| 10 }; |
| 11 try { t(); } catch(e) {} |
| 12 } |
| 13 |
| 14 function g(x) { return x.bar; } |
| 15 function f1() { } |
| 16 function f2() { } |
| 17 |
| 18 var x = Object.defineProperty({}, "bar", { get: f1 }); |
| 19 g(x); |
| 20 g(x); |
| 21 var y = Object.defineProperty({}, "bar", { get: f2 }); |
| 22 g(y); |
| 23 %OptimizeFunctionOnNextCall(g); |
| 24 runNearStackLimit(function() { g(y); }); |
OLD | NEW |