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

Unified Diff: src/objects.h

Issue 22926025: Add --trace-hydrogen-filter flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index c75a419072654a7a62e5863c0d61d7cbd768b674..0a014e49a51f30b7a2595df06b5a89402e96d66d 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8299,6 +8299,16 @@ class String: public Name {
void PrintOn(FILE* out);
+ // Used for flags such as --hydrogen-filter.
+ // The filter is a pattern that matches strings in this way:
+ // "*" all; the default
+ // "-" all but the empty string (e.g. top-level function's name)
+ // "-name" all but the string "name"
+ // "" only the empty string (e.g. top-level function's name)
+ // "name" only the string "name"
+ // "name*" only strings starting with "name"
+ bool PassesFilter(const char* raw_filter);
Michael Starzinger 2013/08/23 11:18:13 IMHO this should be a method on JSFunction instead
Jakob Kummerow 2013/08/23 13:19:23 Sounds reasonable. Done.
+
// For use during stack traces. Performs rudimentary sanity check.
bool LooksValid();
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698