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) \ |
52 V(Allocate) \ | 53 V(Allocate) \ |
53 V(ApplyArguments) \ | 54 V(ApplyArguments) \ |
54 V(ArgumentsElements) \ | 55 V(ArgumentsElements) \ |
55 V(ArgumentsLength) \ | 56 V(ArgumentsLength) \ |
56 V(ArithmeticD) \ | 57 V(ArithmeticD) \ |
57 V(ArithmeticT) \ | 58 V(ArithmeticT) \ |
58 V(BitI) \ | 59 V(BitI) \ |
59 V(BitNotI) \ | 60 V(BitNotI) \ |
60 V(BoundsCheck) \ | 61 V(BoundsCheck) \ |
61 V(Branch) \ | 62 V(Branch) \ |
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 temps_[0] = temp; | 2438 temps_[0] = temp; |
2438 } | 2439 } |
2439 | 2440 |
2440 LOperand* unclamped() { return inputs_[0]; } | 2441 LOperand* unclamped() { return inputs_[0]; } |
2441 LOperand* temp() { return temps_[0]; } | 2442 LOperand* temp() { return temps_[0]; } |
2442 | 2443 |
2443 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2444 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2444 }; | 2445 }; |
2445 | 2446 |
2446 | 2447 |
| 2448 class LAllocateObject: public LTemplateInstruction<1, 1, 2> { |
| 2449 public: |
| 2450 LAllocateObject(LOperand* temp, LOperand* temp2) { |
| 2451 temps_[0] = temp; |
| 2452 temps_[1] = temp2; |
| 2453 } |
| 2454 |
| 2455 LOperand* temp() { return temps_[0]; } |
| 2456 LOperand* temp2() { return temps_[1]; } |
| 2457 |
| 2458 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 2459 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 2460 }; |
| 2461 |
| 2462 |
2447 class LAllocate: public LTemplateInstruction<1, 2, 2> { | 2463 class LAllocate: public LTemplateInstruction<1, 2, 2> { |
2448 public: | 2464 public: |
2449 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { | 2465 LAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { |
2450 inputs_[1] = size; | 2466 inputs_[1] = size; |
2451 temps_[0] = temp1; | 2467 temps_[0] = temp1; |
2452 temps_[1] = temp2; | 2468 temps_[1] = temp2; |
2453 } | 2469 } |
2454 | 2470 |
2455 LOperand* size() { return inputs_[1]; } | 2471 LOperand* size() { return inputs_[1]; } |
2456 LOperand* temp1() { return temps_[0]; } | 2472 LOperand* temp1() { return temps_[0]; } |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2832 | 2848 |
2833 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2849 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2834 }; | 2850 }; |
2835 | 2851 |
2836 #undef DECLARE_HYDROGEN_ACCESSOR | 2852 #undef DECLARE_HYDROGEN_ACCESSOR |
2837 #undef DECLARE_CONCRETE_INSTRUCTION | 2853 #undef DECLARE_CONCRETE_INSTRUCTION |
2838 | 2854 |
2839 } } // namespace v8::internal | 2855 } } // namespace v8::internal |
2840 | 2856 |
2841 #endif // V8_ARM_LITHIUM_ARM_H_ | 2857 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |