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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 public: | 1221 public: |
1222 LBitI(LOperand* left, LOperand* right) { | 1222 LBitI(LOperand* left, LOperand* right) { |
1223 inputs_[0] = left; | 1223 inputs_[0] = left; |
1224 inputs_[1] = right; | 1224 inputs_[1] = right; |
1225 } | 1225 } |
1226 | 1226 |
1227 LOperand* left() { return inputs_[0]; } | 1227 LOperand* left() { return inputs_[0]; } |
1228 LOperand* right() { return inputs_[1]; } | 1228 LOperand* right() { return inputs_[1]; } |
1229 | 1229 |
1230 Token::Value op() const { return hydrogen()->op(); } | 1230 Token::Value op() const { return hydrogen()->op(); } |
| 1231 bool IsInteger32() const { |
| 1232 return hydrogen()->representation().IsInteger32(); |
| 1233 } |
1231 | 1234 |
1232 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") | 1235 DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i") |
1233 DECLARE_HYDROGEN_ACCESSOR(Bitwise) | 1236 DECLARE_HYDROGEN_ACCESSOR(Bitwise) |
1234 }; | 1237 }; |
1235 | 1238 |
1236 | 1239 |
1237 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1240 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1238 public: | 1241 public: |
1239 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) | 1242 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) |
1240 : op_(op), can_deopt_(can_deopt) { | 1243 : op_(op), can_deopt_(can_deopt) { |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 | 2811 |
2809 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2812 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2810 }; | 2813 }; |
2811 | 2814 |
2812 #undef DECLARE_HYDROGEN_ACCESSOR | 2815 #undef DECLARE_HYDROGEN_ACCESSOR |
2813 #undef DECLARE_CONCRETE_INSTRUCTION | 2816 #undef DECLARE_CONCRETE_INSTRUCTION |
2814 | 2817 |
2815 } } // namespace v8::int | 2818 } } // namespace v8::int |
2816 | 2819 |
2817 #endif // V8_X64_LITHIUM_X64_H_ | 2820 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |