~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/bug757199.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function ctor()
 
2
{
 
3
    this.a = 1;
 
4
    this.b = 2;
 
5
}
 
6
function f2(o)
 
7
{
 
8
    o.c = 12;
 
9
}
 
10
function f()
 
11
{
 
12
    var x = new ctor();
 
13
    verifyprebarriers();
 
14
    f2(x);
 
15
    verifyprebarriers();
 
16
}
 
17
f();
 
18
f();
 
19
var o = {};
 
20
for (var i=0; i<1000; i++)
 
21
    o['a'+i] = 3;
 
22
f();
 
23
f();