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 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 inputs_[0] = value; | 2413 inputs_[0] = value; |
2414 } | 2414 } |
2415 | 2415 |
2416 LOperand* value() { return inputs_[0]; } | 2416 LOperand* value() { return inputs_[0]; } |
2417 | 2417 |
2418 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 2418 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
2419 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) | 2419 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) |
2420 }; | 2420 }; |
2421 | 2421 |
2422 | 2422 |
2423 class LClampDToUint8: public LTemplateInstruction<1, 1, 1> { | 2423 class LClampDToUint8: public LTemplateInstruction<1, 1, 0> { |
2424 public: | 2424 public: |
2425 LClampDToUint8(LOperand* unclamped, LOperand* temp) { | 2425 explicit LClampDToUint8(LOperand* unclamped) { |
2426 inputs_[0] = unclamped; | 2426 inputs_[0] = unclamped; |
2427 temps_[0] = temp; | |
2428 } | 2427 } |
2429 | 2428 |
2430 LOperand* unclamped() { return inputs_[0]; } | 2429 LOperand* unclamped() { return inputs_[0]; } |
2431 LOperand* temp() { return temps_[0]; } | |
2432 | 2430 |
2433 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") | 2431 DECLARE_CONCRETE_INSTRUCTION(ClampDToUint8, "clamp-d-to-uint8") |
2434 }; | 2432 }; |
2435 | 2433 |
2436 | 2434 |
2437 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> { | 2435 class LClampIToUint8: public LTemplateInstruction<1, 1, 0> { |
2438 public: | 2436 public: |
2439 explicit LClampIToUint8(LOperand* unclamped) { | 2437 explicit LClampIToUint8(LOperand* unclamped) { |
2440 inputs_[0] = unclamped; | 2438 inputs_[0] = unclamped; |
2441 } | 2439 } |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2804 | 2802 |
2805 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2803 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2806 }; | 2804 }; |
2807 | 2805 |
2808 #undef DECLARE_HYDROGEN_ACCESSOR | 2806 #undef DECLARE_HYDROGEN_ACCESSOR |
2809 #undef DECLARE_CONCRETE_INSTRUCTION | 2807 #undef DECLARE_CONCRETE_INSTRUCTION |
2810 | 2808 |
2811 } } // namespace v8::internal | 2809 } } // namespace v8::internal |
2812 | 2810 |
2813 #endif // V8_ARM_LITHIUM_ARM_H_ | 2811 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |