OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 // Performance.now is used in latency benchmarks, the fallback is Date.now. | 6 // Performance.now is used in latency benchmarks, the fallback is Date.now. |
7 var performance = performance || {}; | 7 var performance = performance || {}; |
8 performance.now = (function() { | 8 performance.now = (function() { |
9 return performance.now || | 9 return performance.now || |
10 performance.mozNow || | 10 performance.mozNow || |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 } catch (e) { | 358 } catch (e) { |
359 suite.NotifyError(e); | 359 suite.NotifyError(e); |
360 return null; | 360 return null; |
361 } | 361 } |
362 return RunNextSetup; | 362 return RunNextSetup; |
363 } | 363 } |
364 | 364 |
365 // Start out running the setup. | 365 // Start out running the setup. |
366 return RunNextSetup(); | 366 return RunNextSetup(); |
367 } | 367 } |
OLD | NEW |