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

Unified Diff: src/js/math.js

Issue 2103733003: [turbofan] Introduce Float64Pow and NumberPow operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE on ARM64 bug fix. Created 4 years, 6 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/interpreter/interpreter-intrinsics.cc ('k') | src/js/v8natives.js » ('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 74d3aa6562f593f3e9283259410348db20a2d862..b8deafdee2166686f9cf96f5f37ffd660766e6fa 100644
--- a/src/js/math.js
+++ b/src/js/math.js
@@ -29,11 +29,6 @@ function MathAbs(x) {
return (x > 0) ? x : 0 - x;
}
-// ECMA 262 - 15.8.2.13
-function MathPowJS(x, y) {
- return %_MathPow(TO_NUMBER(x), TO_NUMBER(y));
-}
-
// ECMA 262 - 15.8.2.14
function MathRandom() {
// While creating a startup snapshot, %GenerateRandomNumbers returns a
@@ -119,10 +114,6 @@ function MathHypot(x, y) { // Function length is 2.
// -------------------------------------------------------------------
-%InstallToContext([
- "math_pow", MathPowJS,
-]);
-
%AddNamedProperty(GlobalMath, toStringTagSymbol, "Math", READ_ONLY | DONT_ENUM);
// Set up math constants.
@@ -137,7 +128,6 @@ utils.InstallConstants(GlobalMath, [
utils.InstallFunctions(GlobalMath, DONT_ENUM, [
"random", MathRandom,
"abs", MathAbs,
- "pow", MathPowJS,
"sign", MathSign,
"asinh", MathAsinh,
"acosh", MathAcosh,
« no previous file with comments | « src/interpreter/interpreter-intrinsics.cc ('k') | src/js/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698