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

Side by Side Diff: src/v8.h

Issue 113121: Changed the flags that indicate the status of running vs dead... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« src/api.cc ('K') | « src/bootstrapper.cc ('k') | src/v8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class V8 : public AllStatic { 78 class V8 : public AllStatic {
79 public: 79 public:
80 // Global actions. 80 // Global actions.
81 81
82 // If Initialize is called with des == NULL, the 82 // If Initialize is called with des == NULL, the
83 // initial state is created from scratch. If a non-null Deserializer 83 // initial state is created from scratch. If a non-null Deserializer
84 // is given, the initial state is created by reading the 84 // is given, the initial state is created by reading the
85 // deserialized data into an empty heap. 85 // deserialized data into an empty heap.
86 static bool Initialize(Deserializer* des); 86 static bool Initialize(Deserializer* des);
87 static void TearDown(); 87 static void TearDown();
88 static bool HasBeenSetup() { return has_been_setup_; } 88 static bool IsRunning() { return is_running_; }
89 static bool HasBeenDisposed() { return has_been_disposed_; } 89 // To be dead you have to have lived
90 static bool IsDead() { return has_fatal_error_ || has_been_disposed_; }
91 static void SetFatalError();
90 92
91 // Report process out of memory. Implementation found in api.cc. 93 // Report process out of memory. Implementation found in api.cc.
92 static void FatalProcessOutOfMemory(const char* location); 94 static void FatalProcessOutOfMemory(const char* location);
93 private: 95 private:
96 static bool is_running_;
94 static bool has_been_setup_; 97 static bool has_been_setup_;
98 static bool has_fatal_error_;
95 static bool has_been_disposed_; 99 static bool has_been_disposed_;
iposva 2009/05/07 23:04:06 Can you add comments about the exact meaning of th
96 }; 100 };
97 101
98 } } // namespace v8::internal 102 } } // namespace v8::internal
99 103
100 namespace i = v8::internal; 104 namespace i = v8::internal;
101 105
102 #endif // V8_V8_H_ 106 #endif // V8_V8_H_
OLDNEW
« src/api.cc ('K') | « src/bootstrapper.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698