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

Side by Side Diff: src/v8.h

Issue 9455088: Remove static initializers in v8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Florian's comments. Created 8 years, 9 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
« no previous file with comments | « src/runtime-profiler.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 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 Context* context); 109 Context* context);
110 110
111 // Idle notification directly from the API. 111 // Idle notification directly from the API.
112 static bool IdleNotification(int hint); 112 static bool IdleNotification(int hint);
113 113
114 static void AddCallCompletedCallback(CallCompletedCallback callback); 114 static void AddCallCompletedCallback(CallCompletedCallback callback);
115 static void RemoveCallCompletedCallback(CallCompletedCallback callback); 115 static void RemoveCallCompletedCallback(CallCompletedCallback callback);
116 static void FireCallCompletedCallback(Isolate* isolate); 116 static void FireCallCompletedCallback(Isolate* isolate);
117 117
118 private: 118 private:
119 static void InitializeOncePerProcessImpl();
119 static void InitializeOncePerProcess(); 120 static void InitializeOncePerProcess();
120 121
121 // True if engine is currently running 122 // True if engine is currently running
122 static bool is_running_; 123 static bool is_running_;
123 // True if V8 has ever been run 124 // True if V8 has ever been run
124 static bool has_been_set_up_; 125 static bool has_been_set_up_;
125 // True if error has been signaled for current engine 126 // True if error has been signaled for current engine
126 // (reset to false if engine is restarted) 127 // (reset to false if engine is restarted)
127 static bool has_fatal_error_; 128 static bool has_fatal_error_;
128 // True if engine has been shut down 129 // True if engine has been shut down
(...skipping 12 matching lines...) Expand all
141 142
142 // JavaScript defines two kinds of equality. 143 // JavaScript defines two kinds of equality.
143 enum EqualityKind { kStrictEquality, kNonStrictEquality }; 144 enum EqualityKind { kStrictEquality, kNonStrictEquality };
144 145
145 146
146 } } // namespace v8::internal 147 } } // namespace v8::internal
147 148
148 namespace i = v8::internal; 149 namespace i = v8::internal;
149 150
150 #endif // V8_V8_H_ 151 #endif // V8_V8_H_
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698