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: --expose-gc 6 7function f() { 8 this.foo00 = 0; 9 this.foo01 = 0; 10 this.foo02 = 0; 11 this.foo03 = 0; 12 this.foo04 = 0; 13 this.foo05 = 0; 14 this.foo06 = 0; 15 this.foo07 = 0; 16 this.foo08 = 0; 17 this.foo09 = 0; 18 this.foo0a = 0; 19 this.foo0b = 0; 20 this.foo0c = 0; 21 this.foo0d = 0; 22 this.foo0e = 0; 23 this.foo0f = 0; 24 this.foo10 = 0; 25 this.foo11 = 0; 26 this.foo12 = 0; 27 this.foo13 = 0; 28 this.foo14 = 0; 29 this.foo15 = 0; 30 this.foo16 = 0; 31 this.foo17 = 0; 32 this.foo18 = 0; 33 this.foo19 = 0; 34 this.foo1a = 0; 35 this.foo1b = 0; 36 this.foo1c = 0; 37 this.foo1d = 0; 38 this.foo1e = 0; 39 this.foo1f = 0; 40 this.d = 1.3; 41 gc(); 42 this.boom = 230; 43 this.boom = 1.4; 44} 45 46function g() { 47 return new f(); 48} 49g(); 50g(); 51var o = g(); 52assertEquals(0, o.foo00); 53assertEquals(1.4, o.boom); 54