Version 3.21.13
Added a ResourceConstraint for the embedder to specify that V8 is running on a memory constrained device. (Chromium issue 280984)
Removed HandleScope default ctor. (Chromium issue 236173)
Enabled escape analysis for Hydrogen.
Correctly stringified mixed encoding indirect strings. (Chromium issue 287476)
Performance and stability improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@16634 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/isolate-inl.h b/src/isolate-inl.h
index 5e2c8c2..45076f5 100644
--- a/src/isolate-inl.h
+++ b/src/isolate-inl.h
@@ -28,9 +28,9 @@
#ifndef V8_ISOLATE_INL_H_
#define V8_ISOLATE_INL_H_
-#include "isolate.h"
-
#include "debug.h"
+#include "isolate.h"
+#include "utils/random-number-generator.h"
namespace v8 {
namespace internal {
@@ -67,6 +67,13 @@
}
+RandomNumberGenerator* Isolate::random_number_generator() {
+ if (random_number_generator_ == NULL) {
+ random_number_generator_ = new RandomNumberGenerator;
+ }
+ return random_number_generator_;
+}
+
} } // namespace v8::internal
#endif // V8_ISOLATE_INL_H_