blob: 881c602bd7c922f22c109a89daee93f39a8849f0 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// Copyright 2016 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
5var obj = {
6 _leftTime: 12345678,
7 _divider: function() {
8 var s = Math.floor(this._leftTime / 3600);
9 var e = Math.floor(s / 24);
10 var i = s % 24;
11 return {
12 s: s,
13 e: e,
14 i: i,
15 }
16 }
17}
18
19for (var i = 0; i < 1000; i++) {
20 obj._divider();
21}