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