Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
FPIIM-449
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
diff --git a/src/base/platform/time.h b/src/base/platform/time.h
index 9dfa47d..29300e5 100644
--- a/src/base/platform/time.h
+++ b/src/base/platform/time.h
@@ -5,7 +5,8 @@
#ifndef V8_BASE_PLATFORM_TIME_H_
#define V8_BASE_PLATFORM_TIME_H_
-#include <time.h>
+#include <ctime>
+#include <iosfwd>
#include <limits>
#include "src/base/macros.h"
@@ -30,7 +31,7 @@
// This class represents a duration of time, internally represented in
// microseonds.
-class TimeDelta FINAL {
+class TimeDelta final {
public:
TimeDelta() : delta_(0) {}
@@ -158,7 +159,7 @@
// This class represents an absolute point in time, internally represented as
// microseconds (s/1,000,000) since 00:00:00 UTC, January 1, 1970.
-class Time FINAL {
+class Time final {
public:
static const int64_t kMillisecondsPerSecond = 1000;
static const int64_t kMicrosecondsPerMillisecond = 1000;
@@ -280,6 +281,8 @@
int64_t us_;
};
+std::ostream& operator<<(std::ostream&, const Time&);
+
inline Time operator+(const TimeDelta& delta, const Time& time) {
return time + delta;
}
@@ -295,7 +298,7 @@
// Time::Now() may actually decrease or jump). But note that TimeTicks may
// "stand still", for example if the computer suspended.
-class TimeTicks FINAL {
+class TimeTicks final {
public:
TimeTicks() : ticks_(0) {}
@@ -395,6 +398,7 @@
return ticks + delta;
}
-} } // namespace v8::base
+} // namespace base
+} // namespace v8
#endif // V8_BASE_PLATFORM_TIME_H_