| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
| 6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 explicit LClampIToUint8(LOperand* unclamped) { | 1033 explicit LClampIToUint8(LOperand* unclamped) { |
| 1034 inputs_[0] = unclamped; | 1034 inputs_[0] = unclamped; |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 LOperand* unclamped() { return inputs_[0]; } | 1037 LOperand* unclamped() { return inputs_[0]; } |
| 1038 | 1038 |
| 1039 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") | 1039 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") |
| 1040 }; | 1040 }; |
| 1041 | 1041 |
| 1042 | 1042 |
| 1043 class LClampTToUint8 FINAL : public LTemplateInstruction<1, 1, 2> { | 1043 class LClampTToUint8 FINAL : public LTemplateInstruction<1, 1, 1> { |
| 1044 public: | 1044 public: |
| 1045 LClampTToUint8(LOperand* unclamped, LOperand* temp1, LOperand* temp2) { | 1045 LClampTToUint8(LOperand* unclamped, LOperand* temp1) { |
| 1046 inputs_[0] = unclamped; | 1046 inputs_[0] = unclamped; |
| 1047 temps_[0] = temp1; | 1047 temps_[0] = temp1; |
| 1048 temps_[1] = temp2; | |
| 1049 } | 1048 } |
| 1050 | 1049 |
| 1051 LOperand* unclamped() { return inputs_[0]; } | 1050 LOperand* unclamped() { return inputs_[0]; } |
| 1052 LOperand* temp1() { return temps_[0]; } | 1051 LOperand* temp1() { return temps_[0]; } |
| 1053 LOperand* temp2() { return temps_[1]; } | |
| 1054 | 1052 |
| 1055 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 1053 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
| 1056 }; | 1054 }; |
| 1057 | 1055 |
| 1058 | 1056 |
| 1059 class LDoubleBits FINAL : public LTemplateInstruction<1, 1, 0> { | 1057 class LDoubleBits FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1060 public: | 1058 public: |
| 1061 explicit LDoubleBits(LOperand* value) { | 1059 explicit LDoubleBits(LOperand* value) { |
| 1062 inputs_[0] = value; | 1060 inputs_[0] = value; |
| 1063 } | 1061 } |
| (...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3281 | 3279 |
| 3282 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3280 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 3283 }; | 3281 }; |
| 3284 | 3282 |
| 3285 #undef DECLARE_HYDROGEN_ACCESSOR | 3283 #undef DECLARE_HYDROGEN_ACCESSOR |
| 3286 #undef DECLARE_CONCRETE_INSTRUCTION | 3284 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3287 | 3285 |
| 3288 } } // namespace v8::internal | 3286 } } // namespace v8::internal |
| 3289 | 3287 |
| 3290 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3288 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |