| 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 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 inputs_[0] = value; | 2359 inputs_[0] = value; |
| 2361 } | 2360 } |
| 2362 | 2361 |
| 2363 LOperand* value() { return inputs_[0]; } | 2362 LOperand* value() { return inputs_[0]; } |
| 2364 | 2363 |
| 2365 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") | 2364 DECLARE_CONCRETE_INSTRUCTION(CheckNonSmi, "check-non-smi") |
| 2366 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) | 2365 DECLARE_HYDROGEN_ACCESSOR(CheckHeapObject) |
| 2367 }; | 2366 }; |
| 2368 | 2367 |
| 2369 | 2368 |
| 2370 class LAllocateObject: public LTemplateInstruction<1, 0, 1> { | |
| 2371 public: | |
| 2372 explicit LAllocateObject(LOperand* temp) { | |
| 2373 temps_[0] = temp; | |
| 2374 } | |
| 2375 | |
| 2376 LOperand* temp() { return temps_[0]; } | |
| 2377 | |
| 2378 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") | |
| 2379 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) | |
| 2380 }; | |
| 2381 | |
| 2382 | |
| 2383 class LAllocate: public LTemplateInstruction<1, 1, 1> { | 2369 class LAllocate: public LTemplateInstruction<1, 1, 1> { |
| 2384 public: | 2370 public: |
| 2385 LAllocate(LOperand* size, LOperand* temp) { | 2371 LAllocate(LOperand* size, LOperand* temp) { |
| 2386 inputs_[0] = size; | 2372 inputs_[0] = size; |
| 2387 temps_[0] = temp; | 2373 temps_[0] = temp; |
| 2388 } | 2374 } |
| 2389 | 2375 |
| 2390 LOperand* size() { return inputs_[0]; } | 2376 LOperand* size() { return inputs_[0]; } |
| 2391 LOperand* temp() { return temps_[0]; } | 2377 LOperand* temp() { return temps_[0]; } |
| 2392 | 2378 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2722 | 2708 |
| 2723 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2709 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2724 }; | 2710 }; |
| 2725 | 2711 |
| 2726 #undef DECLARE_HYDROGEN_ACCESSOR | 2712 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2727 #undef DECLARE_CONCRETE_INSTRUCTION | 2713 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2728 | 2714 |
| 2729 } } // namespace v8::int | 2715 } } // namespace v8::int |
| 2730 | 2716 |
| 2731 #endif // V8_X64_LITHIUM_X64_H_ | 2717 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |