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

Unified Diff: src/isolate.h

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Bug fixes. Created 8 years, 10 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 71fe8838f87b260f69d74db209f9e17b2879ccc1..b6d976a49ac2ab3b057d8da822128aec0444e6ff 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -36,6 +36,7 @@
#include "contexts.h"
#include "execution.h"
#include "frames.h"
+#include "date.h"
#include "global-handles.h"
#include "handles.h"
#include "hashmap.h"
@@ -1017,6 +1018,10 @@ class Isolate {
return OS::TimeCurrentMillis() - time_millis_at_init_;
}
+ DateCache* date_cache() {
+ return &date_cache_;
+ }
+
private:
Isolate();
@@ -1194,6 +1199,9 @@ class Isolate {
// Time stamp at initialization.
double time_millis_at_init_;
+
+ DateCache date_cache_;
+
#if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
bool simulator_initialized_;
@@ -1389,6 +1397,7 @@ inline void Context::mark_out_of_memory() {
}
+
rossberg 2012/03/06 15:55:50 Accidental newline?
ulan 2012/03/07 10:55:21 Done.
} } // namespace v8::internal
#endif // V8_ISOLATE_H_

Powered by Google App Engine
This is Rietveld 408576698