Revision: 22964
Author: [email protected]
Date: Thu Aug 7 09:06:01 2014 UTC
Log: Only tag parameters as maybe assigned if in sloppy mode.
http://code.google.com/p/v8/source/detail?r=22964
Modified:
/branches/bleeding_edge/src/parser.cc
=======================================
--- /branches/bleeding_edge/src/parser.cc Tue Aug 5 13:17:49 2014 UTC
+++ /branches/bleeding_edge/src/parser.cc Thu Aug 7 09:06:01 2014 UTC
@@ -3467,10 +3467,12 @@
}
Variable* var = scope_->DeclareParameter(param_name, VAR);
- // TODO(sigurds) Mark every parameter as maybe assigned. This is a
- // conservative approximation necessary to account for parameters
- // that are assigned via the arguments array.
- var->set_maybe_assigned();
+ if (scope->strict_mode() == SLOPPY) {
+ // TODO(sigurds) Mark every parameter as maybe assigned. This is a
+ // conservative approximation necessary to account for parameters
+ // that are assigned via the arguments array.
+ var->set_maybe_assigned();
+ }
num_parameters++;
if (num_parameters > Code::kMaxArguments) {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.