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 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 } | 2501 } |
2502 | 2502 |
2503 LOperand* unclamped() { return inputs_[0]; } | 2503 LOperand* unclamped() { return inputs_[0]; } |
2504 | 2504 |
2505 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") | 2505 DECLARE_CONCRETE_INSTRUCTION(ClampIToUint8, "clamp-i-to-uint8") |
2506 }; | 2506 }; |
2507 | 2507 |
2508 | 2508 |
2509 class LClampTToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 2509 class LClampTToUint8 V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
2510 public: | 2510 public: |
2511 LClampTToUint8(LOperand* value, LOperand* temp) { | 2511 LClampTToUint8(LOperand* value, LOperand* temp_xmm) { |
2512 inputs_[0] = value; | 2512 inputs_[0] = value; |
2513 temps_[0] = temp; | 2513 temps_[0] = temp_xmm; |
2514 } | 2514 } |
2515 | 2515 |
2516 LOperand* unclamped() { return inputs_[0]; } | 2516 LOperand* unclamped() { return inputs_[0]; } |
| 2517 LOperand* temp_xmm() { return temps_[0]; } |
2517 | 2518 |
2518 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2519 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2519 }; | 2520 }; |
2520 | 2521 |
2521 | 2522 |
2522 // Truncating conversion from a tagged value to an int32. | 2523 // Truncating conversion from a tagged value to an int32. |
2523 class LClampTToUint8NoSSE2 V8_FINAL : public LTemplateInstruction<1, 1, 3> { | 2524 class LClampTToUint8NoSSE2 V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
2524 public: | 2525 public: |
2525 LClampTToUint8NoSSE2(LOperand* unclamped, | 2526 LClampTToUint8NoSSE2(LOperand* unclamped, |
2526 LOperand* temp1, | 2527 LOperand* temp1, |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2920 | 2921 |
2921 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2922 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2922 }; | 2923 }; |
2923 | 2924 |
2924 #undef DECLARE_HYDROGEN_ACCESSOR | 2925 #undef DECLARE_HYDROGEN_ACCESSOR |
2925 #undef DECLARE_CONCRETE_INSTRUCTION | 2926 #undef DECLARE_CONCRETE_INSTRUCTION |
2926 | 2927 |
2927 } } // namespace v8::internal | 2928 } } // namespace v8::internal |
2928 | 2929 |
2929 #endif // V8_IA32_LITHIUM_IA32_H_ | 2930 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |