| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ |
| 44 V(ControlInstruction) \ | 44 V(ControlInstruction) \ |
| 45 V(Call) \ | 45 V(Call) \ |
| 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) | 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) |
| 47 | 47 |
| 48 | 48 |
| 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 50 V(AccessArgumentsAt) \ | 50 V(AccessArgumentsAt) \ |
| 51 V(AddI) \ | 51 V(AddI) \ |
| 52 V(AllocateObject) \ | |
| 53 V(Allocate) \ | 52 V(Allocate) \ |
| 54 V(ApplyArguments) \ | 53 V(ApplyArguments) \ |
| 55 V(ArgumentsElements) \ | 54 V(ArgumentsElements) \ |
| 56 V(ArgumentsLength) \ | 55 V(ArgumentsLength) \ |
| 57 V(ArithmeticD) \ | 56 V(ArithmeticD) \ |
| 58 V(ArithmeticT) \ | 57 V(ArithmeticT) \ |
| 59 V(BitI) \ | 58 V(BitI) \ |
| 60 V(BitNotI) \ | 59 V(BitNotI) \ |
| 61 V(BoundsCheck) \ | 60 V(BoundsCheck) \ |
| 62 V(Branch) \ | 61 V(Branch) \ |
| (...skipping 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 temps_[0] = temp; | 2390 temps_[0] = temp; |
| 2392 } | 2391 } |
| 2393 | 2392 |
| 2394 LOperand* unclamped() { return inputs_[0]; } | 2393 LOperand* unclamped() { return inputs_[0]; } |
| 2395 LOperand* temp() { return temps_[0]; } | 2394 LOperand* temp() { return temps_[0]; } |
| 2396 | 2395 |
| 2397 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2396 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
| 2398 }; | 2397 }; |
| 2399 | 2398 |
| 2400 | 2399 |
| 2401 class LAllocateObject: public LTemplateInstruction<1, 1, 2> { | |
| 2402 public: | |
| 2403 LAllocateObject(LOperand* temp, LOperand* temp2) { | |
| 2404 temps_[0] = temp; | |
| 2405 temps_[1] = temp2; | |
| 2406 } | |
| 2407 | |
| 2408 LOperand* temp() { return temps_[0]; } | |
| 2409 LOperand* temp2() { return temps_[1]; } | |
| 2410 | |
| 2411 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") | |
| 2412 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) | |
| 2413 }; | |
| 2414 | |
| 2415 | |
| 2416 class LAllocate: public LTemplateInstruction<1, 2, 2> { | 2400 class LAllocate: public LTemplateInstruction<1, 2, 2> { |
| 2417 public: | 2401 public: |
| 2418 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { | 2402 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { |
| 2419 inputs_[1] = size; | 2403 inputs_[1] = size; |
| 2420 temps_[0] = temp1; | 2404 temps_[0] = temp1; |
| 2421 temps_[1] = temp2; | 2405 temps_[1] = temp2; |
| 2422 } | 2406 } |
| 2423 | 2407 |
| 2424 LOperand* size() { return inputs_[1]; } | 2408 LOperand* size() { return inputs_[1]; } |
| 2425 LOperand* temp1() { return temps_[0]; } | 2409 LOperand* temp1() { return temps_[0]; } |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2797 | 2781 |
| 2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2782 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2799 }; | 2783 }; |
| 2800 | 2784 |
| 2801 #undef DECLARE_HYDROGEN_ACCESSOR | 2785 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2802 #undef DECLARE_CONCRETE_INSTRUCTION | 2786 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2803 | 2787 |
| 2804 } } // namespace v8::internal | 2788 } } // namespace v8::internal |
| 2805 | 2789 |
| 2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2790 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |