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 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 temps_[0] = temp; | 2449 temps_[0] = temp; |
2451 } | 2450 } |
2452 | 2451 |
2453 LOperand* unclamped() { return inputs_[0]; } | 2452 LOperand* unclamped() { return inputs_[0]; } |
2454 LOperand* temp() { return temps_[0]; } | 2453 LOperand* temp() { return temps_[0]; } |
2455 | 2454 |
2456 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2455 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2457 }; | 2456 }; |
2458 | 2457 |
2459 | 2458 |
2460 class LAllocateObject: public LTemplateInstruction<1, 1, 2> { | |
2461 public: | |
2462 LAllocateObject(LOperand* temp, LOperand* temp2) { | |
2463 temps_[0] = temp; | |
2464 temps_[1] = temp2; | |
2465 } | |
2466 | |
2467 LOperand* temp() { return temps_[0]; } | |
2468 LOperand* temp2() { return temps_[1]; } | |
2469 | |
2470 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") | |
2471 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) | |
2472 }; | |
2473 | |
2474 | |
2475 class LAllocate: public LTemplateInstruction<1, 2, 2> { | 2459 class LAllocate: public LTemplateInstruction<1, 2, 2> { |
2476 public: | 2460 public: |
2477 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { | 2461 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { |
2478 inputs_[1] = size; | 2462 inputs_[1] = size; |
2479 temps_[0] = temp1; | 2463 temps_[0] = temp1; |
2480 temps_[1] = temp2; | 2464 temps_[1] = temp2; |
2481 } | 2465 } |
2482 | 2466 |
2483 LOperand* size() { return inputs_[1]; } | 2467 LOperand* size() { return inputs_[1]; } |
2484 LOperand* temp1() { return temps_[0]; } | 2468 LOperand* temp1() { return temps_[0]; } |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2861 | 2845 |
2862 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2863 }; | 2847 }; |
2864 | 2848 |
2865 #undef DECLARE_HYDROGEN_ACCESSOR | 2849 #undef DECLARE_HYDROGEN_ACCESSOR |
2866 #undef DECLARE_CONCRETE_INSTRUCTION | 2850 #undef DECLARE_CONCRETE_INSTRUCTION |
2867 | 2851 |
2868 } } // namespace v8::internal | 2852 } } // namespace v8::internal |
2869 | 2853 |
2870 #endif // V8_ARM_LITHIUM_ARM_H_ | 2854 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |