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

Unified Diff: src/objects.h

Issue 1372293005: [Interpreter] Support top-level code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add Todos. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('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 95e0ae5403d6a0279d0b55fd1c1b9c0ca13f7251..72526327d94954c293fcce88b838c99301efe602 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7287,6 +7287,8 @@ class JSFunction: public JSObject {
inline int NumberOfLiterals();
// Used for flags such as --hydrogen-filter.
+ // TODO(rmcilroy/mstarzinger): Move this back to JSFunction when compiler.cc
+ // is refactored to allow use of JSFunction::PassesFilter for top-level code.
bool PassesFilter(const char* raw_filter);
// The function's name if it is configured, otherwise shared function info
@@ -8683,6 +8685,9 @@ class String: public Name {
// For use during stack traces. Performs rudimentary sanity check.
bool LooksValid();
+ // Used for flags such as --hydrogen-filter.
+ bool PassesFilter(const char* raw_filter);
+
// Dispatched behavior.
void StringShortPrint(StringStream* accumulator);
void PrintUC16(std::ostream& os, int start = 0, int end = -1); // NOLINT
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698