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

Unified Diff: src/objects.cc

Issue 1574223002: Revert of [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f6f4ef72540e98d4d22f866fc2b4a9884a2f6e2f..c37494e3a05017a99563e2867d0e99ac3fabd4c2 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -19331,16 +19331,6 @@
}
-// static
-Handle<Object> JSDate::SetValue(Handle<JSDate> date, double v) {
- Isolate* const isolate = date->GetIsolate();
- Handle<Object> value = isolate->factory()->NewNumber(v);
- bool value_is_nan = std::isnan(v);
- date->SetValue(*value, value_is_nan);
- return value;
-}
-
-
void JSDate::SetValue(Object* value, bool is_value_nan) {
set_value(value);
if (is_value_nan) {
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698