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

Unified Diff: src/date.js

Issue 1323543002: [runtime] Replace %to_string_fun with %_ToString. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ToStringStub
Patch Set: REBASE. Fixes Created 5 years, 3 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/contexts.h ('k') | src/harmony-regexp.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/date.js
diff --git a/src/date.js b/src/date.js
index f7a6a0825b409c320f43f0ffe6cc478b8fb9544e..d2d59152ef972f1a12df1f43758e155c12afe815 100644
--- a/src/date.js
+++ b/src/date.js
@@ -22,14 +22,12 @@ var IsFinite;
var MathAbs;
var MathFloor;
var ToNumber;
-var ToString;
utils.Import(function(from) {
IsFinite = from.IsFinite;
MathAbs = from.MathAbs;
MathFloor = from.MathFloor;
ToNumber = from.ToNumber;
- ToString = from.ToString;
});
// -------------------------------------------------------------------
@@ -268,7 +266,7 @@ var parse_buffer = new InternalArray(8);
// ECMA 262 - 15.9.4.2
function DateParse(string) {
- var arr = %DateParseString(ToString(string), parse_buffer);
+ var arr = %DateParseString(string, parse_buffer);
if (IS_NULL(arr)) return NAN;
var day = MakeDay(arr[0], arr[1], arr[2]);
« no previous file with comments | « src/contexts.h ('k') | src/harmony-regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698