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

Unified Diff: src/scopes.h

Issue 6815006: [Arguments] Mark functions with duplicated parameters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Moved bit from scope to function literal. Created 9 years, 8 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/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.h
diff --git a/src/scopes.h b/src/scopes.h
index b8a1aed0d90443b926982f236e27a25b4b3b254c..9c4b2fbc60c2ef101c61e5f219f139013e0c20c5 100644
--- a/src/scopes.h
+++ b/src/scopes.h
@@ -359,6 +359,7 @@ class Scope: public ZoneObject {
bool scope_contains_with_; // this scope contains a 'with' statement
bool scope_calls_eval_; // this scope contains an 'eval' call
bool strict_mode_; // this scope is a strict mode scope
+ bool has_duplicate_parameters_;
Martin Maly 2011/04/07 11:00:49 Is this still needed?
Kevin Millikin (Chromium) 2011/04/07 11:02:00 Good catch, removed.
// Computed via PropagateScopeInfo.
bool outer_scope_calls_eval_;
@@ -432,6 +433,7 @@ class Scope: public ZoneObject {
scope_calls_eval_ = false;
// Inherit the strict mode from the parent scope.
strict_mode_ = (outer_scope != NULL) && outer_scope->strict_mode_;
+ has_duplicate_parameters_ = false;
Martin Maly 2011/04/07 11:00:49 ditto.
outer_scope_calls_eval_ = false;
inner_scope_calls_eval_ = false;
outer_scope_is_eval_scope_ = false;
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698