OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 Context* context); | 106 Context* context); |
107 | 107 |
108 // Idle notification directly from the API. | 108 // Idle notification directly from the API. |
109 static bool IdleNotification(int hint); | 109 static bool IdleNotification(int hint); |
110 | 110 |
111 static void AddCallCompletedCallback(CallCompletedCallback callback); | 111 static void AddCallCompletedCallback(CallCompletedCallback callback); |
112 static void RemoveCallCompletedCallback(CallCompletedCallback callback); | 112 static void RemoveCallCompletedCallback(CallCompletedCallback callback); |
113 static void FireCallCompletedCallback(Isolate* isolate); | 113 static void FireCallCompletedCallback(Isolate* isolate); |
114 | 114 |
115 private: | 115 private: |
| 116 static void InitializeOncePerProcessImpl(); |
116 static void InitializeOncePerProcess(); | 117 static void InitializeOncePerProcess(); |
117 | 118 |
118 // True if engine is currently running | 119 // True if engine is currently running |
119 static bool is_running_; | 120 static bool is_running_; |
120 // True if V8 has ever been run | 121 // True if V8 has ever been run |
121 static bool has_been_set_up_; | 122 static bool has_been_set_up_; |
122 // True if error has been signaled for current engine | 123 // True if error has been signaled for current engine |
123 // (reset to false if engine is restarted) | 124 // (reset to false if engine is restarted) |
124 static bool has_fatal_error_; | 125 static bool has_fatal_error_; |
125 // True if engine has been shut down | 126 // True if engine has been shut down |
(...skipping 12 matching lines...) Expand all Loading... |
138 | 139 |
139 // JavaScript defines two kinds of equality. | 140 // JavaScript defines two kinds of equality. |
140 enum EqualityKind { kStrictEquality, kNonStrictEquality }; | 141 enum EqualityKind { kStrictEquality, kNonStrictEquality }; |
141 | 142 |
142 | 143 |
143 } } // namespace v8::internal | 144 } } // namespace v8::internal |
144 | 145 |
145 namespace i = v8::internal; | 146 namespace i = v8::internal; |
146 | 147 |
147 #endif // V8_V8_H_ | 148 #endif // V8_V8_H_ |
OLD | NEW |