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 (function(global, utils) { | 5 (function(global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 %CheckIsBootstrapping(); | 8 %CheckIsBootstrapping(); |
9 | 9 |
10 // ------------------------------------------------------------------- | 10 // ------------------------------------------------------------------- |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 utils.InstallFunctions(GlobalMath, DONT_ENUM, [ | 137 utils.InstallFunctions(GlobalMath, DONT_ENUM, [ |
138 "random", MathRandom, | 138 "random", MathRandom, |
139 "abs", MathAbs, | 139 "abs", MathAbs, |
140 "pow", MathPowJS, | 140 "pow", MathPowJS, |
141 "sign", MathSign, | 141 "sign", MathSign, |
142 "asinh", MathAsinh, | 142 "asinh", MathAsinh, |
143 "acosh", MathAcosh, | 143 "acosh", MathAcosh, |
144 "hypot", MathHypot, | 144 "hypot", MathHypot, |
145 ]); | 145 ]); |
146 | 146 |
147 %SetForceInlineFlag(MathAbs); | |
148 %SetForceInlineFlag(MathRandom); | 147 %SetForceInlineFlag(MathRandom); |
149 %SetForceInlineFlag(MathSign); | 148 %SetForceInlineFlag(MathSign); |
150 | 149 |
151 // ------------------------------------------------------------------- | 150 // ------------------------------------------------------------------- |
152 // Exports | 151 // Exports |
153 | 152 |
154 utils.Export(function(to) { | 153 utils.Export(function(to) { |
155 to.MathAbs = MathAbs; | 154 to.MathAbs = MathAbs; |
156 to.IntRandom = MathRandomRaw; | 155 to.IntRandom = MathRandomRaw; |
157 }); | 156 }); |
158 | 157 |
159 }) | 158 }) |
OLD | NEW |