vendor/v8/src/v8.h in mustang-0.0.1 vs vendor/v8/src/v8.h in mustang-0.1.0

- old
+ new

@@ -82,31 +82,34 @@ // empty heap. static bool Initialize(Deserializer* des); static void TearDown(); static bool IsRunning() { return is_running_; } static bool UseCrankshaft() { return use_crankshaft_; } - static void DisableCrankshaft() { use_crankshaft_ = false; } // To be dead you have to have lived + // TODO(isolates): move IsDead to Isolate. static bool IsDead() { return has_fatal_error_ || has_been_disposed_; } static void SetFatalError(); // Report process out of memory. Implementation found in api.cc. static void FatalProcessOutOfMemory(const char* location, bool take_snapshot = false); // Random number generation support. Not cryptographically safe. - static uint32_t Random(); + static uint32_t Random(Isolate* isolate); // We use random numbers internally in memory allocation and in the // compilers for security. In order to prevent information leaks we // use a separate random state for internal random number // generation. - static uint32_t RandomPrivate(); - static Object* FillHeapNumberWithRandom(Object* heap_number); + static uint32_t RandomPrivate(Isolate* isolate); + static Object* FillHeapNumberWithRandom(Object* heap_number, + Isolate* isolate); // Idle notification directly from the API. static bool IdleNotification(); private: + static void InitializeOncePerProcess(); + // True if engine is currently running static bool is_running_; // True if V8 has ever been run static bool has_been_setup_; // True if error has been signaled for current engine