OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "use strict"; | 5 "use strict"; |
6 | 6 |
7 // This file relies on the fact that the following declarations have been made | 7 // This file relies on the fact that the following declarations have been made |
8 // in runtime.js: | 8 // in runtime.js: |
9 // var $Object = global.Object; | 9 // var $Object = global.Object; |
10 | 10 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 "asinh", MathAsinh, | 344 "asinh", MathAsinh, |
345 "acosh", MathAcosh, | 345 "acosh", MathAcosh, |
346 "atanh", MathAtanh, | 346 "atanh", MathAtanh, |
347 "hypot", MathHypot, | 347 "hypot", MathHypot, |
348 "fround", MathFroundJS, | 348 "fround", MathFroundJS, |
349 "clz32", MathClz32, | 349 "clz32", MathClz32, |
350 "cbrt", MathCbrt | 350 "cbrt", MathCbrt |
351 )); | 351 )); |
352 | 352 |
353 %SetInlineBuiltinFlag(MathCeil); | 353 %SetInlineBuiltinFlag(MathCeil); |
| 354 %SetInlineBuiltinFlag(MathFloor); |
354 %SetInlineBuiltinFlag(MathRandom); | 355 %SetInlineBuiltinFlag(MathRandom); |
355 | 356 |
356 // Keep reference to original values of some global properties. This | 357 // Keep reference to original values of some global properties. This |
357 // has the added benefit that the code in this file is isolated from | 358 // has the added benefit that the code in this file is isolated from |
358 // changes to these properties. | 359 // changes to these properties. |
359 $abs = MathAbs; | 360 $abs = MathAbs; |
360 $exp = MathExp; | 361 $exp = MathExp; |
361 $floor = MathFloor; | 362 $floor = MathFloor; |
362 $max = MathMax; | 363 $max = MathMax; |
363 $min = MathMin; | 364 $min = MathMin; |
364 | 365 |
365 })(); | 366 })(); |
OLD | NEW |