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

Side by Side Diff: src/log.h

Issue 8104: Regexp caching (Closed)
Patch Set: Created 12 years, 2 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 static void SharedLibraryEvent(const char* library_path, 174 static void SharedLibraryEvent(const char* library_path,
175 unsigned start, 175 unsigned start,
176 unsigned end); 176 unsigned end);
177 static void SharedLibraryEvent(const wchar_t* library_path, 177 static void SharedLibraryEvent(const wchar_t* library_path,
178 unsigned start, 178 unsigned start,
179 unsigned end); 179 unsigned end);
180 180
181 // ==== Events logged by --log-regexp ==== 181 // ==== Events logged by --log-regexp ====
182 // Regexp compilation and execution events. 182 // Regexp compilation and execution events.
183 183
184 static void RegExpCompileEvent(Handle<JSRegExp> regexp); 184 static void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache);
185 185
186 static void RegExpExecEvent(Handle<JSRegExp> regexp, 186 static void RegExpExecEvent(Handle<JSRegExp> regexp,
187 int start_index, 187 int start_index,
188 Handle<String> input_string); 188 Handle<String> input_string);
189 189
190 #ifdef ENABLE_LOGGING_AND_PROFILING 190 #ifdef ENABLE_LOGGING_AND_PROFILING
191 static StateTag state() { 191 static StateTag state() {
192 return current_state_ ? current_state_->state() : OTHER; 192 return current_state_ ? current_state_->state() : OTHER;
193 } 193 }
194 #endif 194 #endif
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 friend class Profiler; 236 friend class Profiler;
237 friend class SlidingStateWindow; 237 friend class SlidingStateWindow;
238 friend class VMState; 238 friend class VMState;
239 #endif 239 #endif
240 }; 240 };
241 241
242 242
243 } } // namespace v8::internal 243 } } // namespace v8::internal
244 244
245 #endif // V8_LOG_H_ 245 #endif // V8_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698