Chromium Code Reviews| Index: src/v8.h |
| =================================================================== |
| --- src/v8.h (revision 1900) |
| +++ src/v8.h (working copy) |
| @@ -85,13 +85,17 @@ |
| // deserialized data into an empty heap. |
| static bool Initialize(Deserializer* des); |
| static void TearDown(); |
| - static bool HasBeenSetup() { return has_been_setup_; } |
| - static bool HasBeenDisposed() { return has_been_disposed_; } |
| + static bool IsRunning() { return is_running_; } |
| + // To be dead you have to have lived |
| + 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); |
| private: |
| + static bool is_running_; |
| static bool has_been_setup_; |
| + static bool has_fatal_error_; |
| static bool has_been_disposed_; |
|
iposva
2009/05/07 23:04:06
Can you add comments about the exact meaning of th
|
| }; |