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

Unified Diff: src/js/v8natives.js

Issue 2395373002: [builtins] Migrate Number.parseFloat to a TurboFan builtin. (Closed)
Patch Set: Fix the -0 corner case. Created 4 years, 2 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/compiler/typer.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 93636a036b0722dd4a83f7fe5a8380d777e4b98a..0a05881bdfc43110881531a6cc0165d8017b7ab7 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -52,15 +52,6 @@ function GlobalParseInt(string, radix) {
}
-// ES6 18.2.4 parseFloat(string)
-function GlobalParseFloat(string) {
- // 1. Let inputString be ? ToString(string).
- string = TO_STRING(string);
- if (%_HasCachedArrayIndex(string)) return %_GetCachedArrayIndex(string);
- return %StringParseFloat(string);
-}
-
-
// ----------------------------------------------------------------------------
// Set up global object.
@@ -78,7 +69,6 @@ utils.InstallConstants(global, [
// Set up non-enumerable function on the global object.
utils.InstallFunctions(global, DONT_ENUM, [
"parseInt", GlobalParseInt,
- "parseFloat", GlobalParseFloat,
]);
@@ -213,7 +203,6 @@ utils.InstallConstants(GlobalNumber, [
// Harmony Number constructor additions
utils.InstallFunctions(GlobalNumber, DONT_ENUM, [
"parseInt", GlobalParseInt,
- "parseFloat", GlobalParseFloat
]);
« no previous file with comments | « src/compiler/typer.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698