Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: src/js/math.js

Issue 2096403002: [turbofan] Introduce simplified operator NumberAbs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: This time fix the compile error for realz Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/type-cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 })
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/type-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698