| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // AST analysis results | 234 // AST analysis results |
| 235 | 235 |
| 236 // True if the expression rooted at this node can be compiled by the | 236 // True if the expression rooted at this node can be compiled by the |
| 237 // side-effect free compiler. | 237 // side-effect free compiler. |
| 238 bool side_effect_free() { return SideEffectFreeField::decode(bitfields_); } | 238 bool side_effect_free() { return SideEffectFreeField::decode(bitfields_); } |
| 239 void set_side_effect_free(bool is_side_effect_free) { | 239 void set_side_effect_free(bool is_side_effect_free) { |
| 240 bitfields_ &= ~SideEffectFreeField::mask(); | 240 bitfields_ &= ~SideEffectFreeField::mask(); |
| 241 bitfields_ |= SideEffectFreeField::encode(is_side_effect_free); | 241 bitfields_ |= SideEffectFreeField::encode(is_side_effect_free); |
| 242 } | 242 } |
| 243 | 243 |
| 244 // Will ToInt32 ECMA 262-3 9.5) or ToUunt32 (ECMA 262-3 9.6) | 244 // Will ToInt32 (ECMA 262-3 9.5) or ToUint32 (ECMA 262-3 9.6) |
| 245 // be applied to the value of this expression? | 245 // be applied to the value of this expression? |
| 246 // If so, we may be able to optimize the calculation of the value. | 246 // If so, we may be able to optimize the calculation of the value. |
| 247 bool to_int32() { return ToInt32Field::decode(bitfields_); } | 247 bool to_int32() { return ToInt32Field::decode(bitfields_); } |
| 248 void set_to_int32(bool to_int32) { | 248 void set_to_int32(bool to_int32) { |
| 249 bitfields_ &= ~ToInt32Field::mask(); | 249 bitfields_ &= ~ToInt32Field::mask(); |
| 250 bitfields_ |= ToInt32Field::encode(to_int32); | 250 bitfields_ |= ToInt32Field::encode(to_int32); |
| 251 } | 251 } |
| 252 | 252 |
| 253 | 253 |
| 254 private: | 254 private: |
| (...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1874 #undef DEF_VISIT | 1874 #undef DEF_VISIT |
| 1875 | 1875 |
| 1876 private: | 1876 private: |
| 1877 bool stack_overflow_; | 1877 bool stack_overflow_; |
| 1878 }; | 1878 }; |
| 1879 | 1879 |
| 1880 | 1880 |
| 1881 } } // namespace v8::internal | 1881 } } // namespace v8::internal |
| 1882 | 1882 |
| 1883 #endif // V8_AST_H_ | 1883 #endif // V8_AST_H_ |
| OLD | NEW |