 Chromium Code Reviews
 Chromium Code Reviews Issue 1322203005:
  [turbofan] Handle stack overflow exceptions in JSInliner.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1322203005:
  [turbofan] Handle stack overflow exceptions in JSInliner.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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: --stack-size=100 --allow-natives-syntax | |
| 6 | |
| 7 function module() { | |
| 8 "use asm"; | |
| 9 var abs = Math.abs; | |
| 10 function f() { | |
| 11 return +abs(); | |
| 12 } | |
| 13 return { f:f }; | |
| 14 } | |
| 15 | |
| 16 function run_close_to_stack_limit(f) { | |
| 17 try { | |
| 18 run_close_to_stack_limit(f); | |
| 19 f(); | |
| 20 } catch(e) { | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 var boom = module().f; | |
| 25 %OptimizeFunctionOnNextCall(boom) | |
| 26 run_close_to_stack_limit(boom); | |
| OLD | NEW |