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(); |