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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(Allocate) \ | 52 V(Allocate) \ |
| 53 V(AllocateObject) \ |
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) \ |
62 V(CallConstantFunction) \ | 63 V(CallConstantFunction) \ |
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 explicit LCheckNonSmi(LOperand* value) { | 2356 explicit LCheckNonSmi(LOperand* value) { |
2356 inputs_[0] = value; | 2357 inputs_[0] = value; |
2357 } | 2358 } |
2358 | 2359 |
2359 LOperand* value() { return inputs_[0]; } | 2360 LOperand* value() { return inputs_[0]; } |
2360 | 2361 |
2361 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 2362 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
2362 }; | 2363 }; |
2363 | 2364 |
2364 | 2365 |
| 2366 class LAllocateObject: public LTemplateInstruction<1, 0, 1> { |
| 2367 public: |
| 2368 explicit LAllocateObject(LOperand* temp) { |
| 2369 temps_[0] = temp; |
| 2370 } |
| 2371 |
| 2372 LOperand* temp() { return temps_[0]; } |
| 2373 |
| 2374 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 2375 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 2376 }; |
| 2377 |
| 2378 |
2365 class LAllocate: public LTemplateInstruction<1, 1, 1> { | 2379 class LAllocate: public LTemplateInstruction<1, 1, 1> { |
2366 public: | 2380 public: |
2367 LAllocate(LOperand* size, LOperand* temp) { | 2381 LAllocate(LOperand* size, LOperand* temp) { |
2368 inputs_[0] = size; | 2382 inputs_[0] = size; |
2369 temps_[0] = temp; | 2383 temps_[0] = temp; |
2370 } | 2384 } |
2371 | 2385 |
2372 LOperand* size() { return inputs_[0]; } | 2386 LOperand* size() { return inputs_[0]; } |
2373 LOperand* temp() { return temps_[0]; } | 2387 LOperand* temp() { return temps_[0]; } |
2374 | 2388 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2734 | 2748 |
2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2749 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2736 }; | 2750 }; |
2737 | 2751 |
2738 #undef DECLARE_HYDROGEN_ACCESSOR | 2752 #undef DECLARE_HYDROGEN_ACCESSOR |
2739 #undef DECLARE_CONCRETE_INSTRUCTION | 2753 #undef DECLARE_CONCRETE_INSTRUCTION |
2740 | 2754 |
2741 } } // namespace v8::int | 2755 } } // namespace v8::int |
2742 | 2756 |
2743 #endif // V8_X64_LITHIUM_X64_H_ | 2757 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |