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

Unified Diff: src/js/math.js

Issue 1852553003: [builtins] Migrate Math.clz32 to a TurboFan builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/math.js
diff --git a/src/js/math.js b/src/js/math.js
index e59da69eece4891808d4d34976b1395e0087b680..f8ad6b1fe67ebc9e3cdf5e6ad9720414aefaa7c9 100644
--- a/src/js/math.js
+++ b/src/js/math.js
@@ -143,11 +143,6 @@ function MathHypot(x, y) { // Function length is 2.
return %math_sqrt(sum) * max;
}
-// ES6 draft 07-18-14, section 20.2.2.11
-function MathClz32JS(x) {
- return %_MathClz32(x >>> 0);
-}
-
// ES6 draft 09-27-13, section 20.2.2.9.
// Cube root approximation, refer to: http://metamerist.com/cbrt/cbrt.htm
// Using initial approximation adapted from Kahan's cbrt and 4 iterations
@@ -209,13 +204,11 @@ utils.InstallFunctions(GlobalMath, DONT_ENUM, [
"acosh", MathAcosh,
"atanh", MathAtanh,
"hypot", MathHypot,
- "clz32", MathClz32JS,
"cbrt", MathCbrt
]);
%SetForceInlineFlag(MathAbs);
%SetForceInlineFlag(MathAtan2JS);
-%SetForceInlineFlag(MathClz32JS);
%SetForceInlineFlag(MathRandom);
%SetForceInlineFlag(MathSign);
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698