|
1 // |reftest| skip-if(Android) |
|
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 //----------------------------------------------------------------------------- |
|
8 var BUGNUMBER = 464418; |
|
9 var summary = 'Do not assert: fp->slots + fp->script->nfixed + ' + |
|
10 'js_ReconstructStackDepth(cx, fp->script, fp->regs->pc) == fp->regs->sp'; |
|
11 var actual = ''; |
|
12 var expect = ''; |
|
13 |
|
14 |
|
15 //----------------------------------------------------------------------------- |
|
16 test(); |
|
17 //----------------------------------------------------------------------------- |
|
18 |
|
19 function test() |
|
20 { |
|
21 enterFunc ('test'); |
|
22 printBugNumber(BUGNUMBER); |
|
23 printStatus (summary); |
|
24 |
|
25 jit(true); |
|
26 |
|
27 if (typeof gczeal == 'function') |
|
28 { |
|
29 gczeal(2); |
|
30 } |
|
31 |
|
32 for (let q = 0; q < 50; ++q) { |
|
33 new Function("for (var i = 0; i < 5; ++i) { } ")(); |
|
34 var w = "r".match(/r/); |
|
35 new Function("for (var j = 0; j < 1; ++j) { } ")(); |
|
36 } |
|
37 |
|
38 jit(false); |
|
39 |
|
40 if (typeof gczeal == 'function') |
|
41 { |
|
42 gczeal(0); |
|
43 } |
|
44 |
|
45 reportCompare(expect, actual, summary); |
|
46 |
|
47 exitFunc ('test'); |
|
48 } |