Chromium Code Reviews| Index: vm/scopes.h |
| =================================================================== |
| --- vm/scopes.h (revision 2360) |
| +++ vm/scopes.h (working copy) |
| @@ -66,6 +66,11 @@ |
| is_invisible_ = value; |
| } |
| + bool Equals(const LocalVariable& other) const { |
| + return HasIndex() && other.HasIndex() && |
| + (index() == other.index()); |
|
regis
2011/12/13 00:31:44
This is not correct. You need to check is_captured
srdjan
2011/12/13 00:39:38
Thanks!
|
| + } |
| + |
| private: |
| static const int kUnitializedIndex_ = INT_MIN; |