| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 8484cd1eb65e6faf7aec09670a40de9345a04260..ffd2cc203a4266ae87548b3db144a8b3665304a7 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -551,9 +551,6 @@ class HEnvironment: public ZoneObject {
|
| void set_entry(HEnterInlined* entry) { entry_ = entry; }
|
|
|
| int length() const { return values_.length(); }
|
| - bool is_special_index(int i) const {
|
| - return i >= parameter_count() && i < parameter_count() + specials_count();
|
| - }
|
|
|
| int first_expression_index() const {
|
| return parameter_count() + specials_count() + local_count();
|
| @@ -672,8 +669,15 @@ class HEnvironment: public ZoneObject {
|
| }
|
|
|
| bool is_local_index(int i) const {
|
| - return i >= first_local_index() &&
|
| - i < first_expression_index();
|
| + return i >= first_local_index() && i < first_expression_index();
|
| + }
|
| +
|
| + bool is_parameter_index(int i) const {
|
| + return i >= 0 && i < parameter_count();
|
| + }
|
| +
|
| + bool is_special_index(int i) const {
|
| + return i >= parameter_count() && i < parameter_count() + specials_count();
|
| }
|
|
|
| void PrintTo(StringStream* stream);
|
|
|