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

Unified Diff: src/ast-value-factory.h

Issue 422923004: Track usage of "this" and "arguments" in Scope (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 6 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 | « no previous file | src/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-value-factory.h
diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h
index 82e6e6bb6a17a2eb3a0ccb9b1bf99132f4ffcf48..09702eb710da199afcf0cefe624c5b720729e29b 100644
--- a/src/ast-value-factory.h
+++ b/src/ast-value-factory.h
@@ -88,6 +88,8 @@ class AstRawString : public AstString {
return *c;
}
+ V8_INLINE bool IsArguments(AstValueFactory* ast_value_factory) const;
+
// For storing AstRawStrings in a hash map.
uint32_t hash() const {
return hash_;
@@ -340,6 +342,10 @@ class AstValueFactory {
#undef F
};
+
+bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const {
+ return ast_value_factory->arguments_string() == this;
+}
} } // namespace v8::internal
#undef STRING_CONSTANTS
« no previous file with comments | « no previous file | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698