OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 public: | 1239 public: |
1240 LBitI(LOperand* left, LOperand* right) { | 1240 LBitI(LOperand* left, LOperand* right) { |
1241 inputs_[0] = left; | 1241 inputs_[0] = left; |
1242 inputs_[1] = right; | 1242 inputs_[1] = right; |
1243 } | 1243 } |
1244 | 1244 |
1245 LOperand* left() { return inputs_[0]; } | 1245 LOperand* left() { return inputs_[0]; } |
1246 LOperand* right() { return inputs_[1]; } | 1246 LOperand* right() { return inputs_[1]; } |
1247 | 1247 |
1248 Token::Value op() const { return hydrogen()->op(); } | 1248 Token::Value op() const { return hydrogen()->op(); } |
| 1249 bool IsInteger32() const { |
| 1250 return hydrogen()->representation().IsInteger32(); |
| 1251 } |
1249 | 1252 |
1250 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") | 1253 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") |
1251 DECLARE_HYDROGEN_ACCESSOR(Bitwise) | 1254 DECLARE_HYDROGEN_ACCESSOR(Bitwise) |
1252 }; | 1255 }; |
1253 | 1256 |
1254 | 1257 |
1255 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1258 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1256 public: | 1259 public: |
1257 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) | 1260 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) |
1258 : op_(op), can_deopt_(can_deopt) { | 1261 : op_(op), can_deopt_(can_deopt) { |
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 | 2830 |
2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2831 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2829 }; | 2832 }; |
2830 | 2833 |
2831 #undef DECLARE_HYDROGEN_ACCESSOR | 2834 #undef DECLARE_HYDROGEN_ACCESSOR |
2832 #undef DECLARE_CONCRETE_INSTRUCTION | 2835 #undef DECLARE_CONCRETE_INSTRUCTION |
2833 | 2836 |
2834 } } // namespace v8::int | 2837 } } // namespace v8::int |
2835 | 2838 |
2836 #endif // V8_X64_LITHIUM_X64_H_ | 2839 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |