| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
| 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 V(CompareNumericAndBranch) \ | 51 V(CompareNumericAndBranch) \ |
| 52 V(CmpObjectEqAndBranch) \ | 52 V(CmpObjectEqAndBranch) \ |
| 53 V(CmpHoleAndBranch) \ | 53 V(CmpHoleAndBranch) \ |
| 54 V(CmpMapAndBranch) \ | 54 V(CmpMapAndBranch) \ |
| 55 V(CmpT) \ | 55 V(CmpT) \ |
| 56 V(ConstantD) \ | 56 V(ConstantD) \ |
| 57 V(ConstantE) \ | 57 V(ConstantE) \ |
| 58 V(ConstantI) \ | 58 V(ConstantI) \ |
| 59 V(ConstantS) \ | 59 V(ConstantS) \ |
| 60 V(ConstantT) \ | 60 V(ConstantT) \ |
| 61 V(ConstructDouble) \ | |
| 62 V(Context) \ | 61 V(Context) \ |
| 63 V(DebugBreak) \ | 62 V(DebugBreak) \ |
| 64 V(DeclareGlobals) \ | 63 V(DeclareGlobals) \ |
| 65 V(Deoptimize) \ | 64 V(Deoptimize) \ |
| 66 V(DivByConstI) \ | 65 V(DivByConstI) \ |
| 67 V(DivByPowerOf2I) \ | 66 V(DivByPowerOf2I) \ |
| 68 V(DivI) \ | 67 V(DivI) \ |
| 69 V(DoubleBits) \ | 68 V(DoubleBits) \ |
| 70 V(DoubleToI) \ | 69 V(DoubleToI) \ |
| 71 V(DoubleToSmi) \ | 70 V(DoubleToSmi) \ |
| (...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2350 inputs_[0] = value; | 2349 inputs_[0] = value; |
| 2351 } | 2350 } |
| 2352 | 2351 |
| 2353 LOperand* value() { return inputs_[0]; } | 2352 LOperand* value() { return inputs_[0]; } |
| 2354 | 2353 |
| 2355 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") | 2354 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
| 2356 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) | 2355 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
| 2357 }; | 2356 }; |
| 2358 | 2357 |
| 2359 | 2358 |
| 2360 class LConstructDouble final : public LTemplateInstruction<1, 2, 0> { | |
| 2361 public: | |
| 2362 LConstructDouble(LOperand* hi, LOperand* lo) { | |
| 2363 inputs_[0] = hi; | |
| 2364 inputs_[1] = lo; | |
| 2365 } | |
| 2366 | |
| 2367 LOperand* hi() { return inputs_[0]; } | |
| 2368 LOperand* lo() { return inputs_[1]; } | |
| 2369 | |
| 2370 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") | |
| 2371 }; | |
| 2372 | |
| 2373 | |
| 2374 class LAllocate final : public LTemplateInstruction<1, 2, 1> { | 2359 class LAllocate final : public LTemplateInstruction<1, 2, 1> { |
| 2375 public: | 2360 public: |
| 2376 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { | 2361 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { |
| 2377 inputs_[0] = context; | 2362 inputs_[0] = context; |
| 2378 inputs_[1] = size; | 2363 inputs_[1] = size; |
| 2379 temps_[0] = temp; | 2364 temps_[0] = temp; |
| 2380 } | 2365 } |
| 2381 | 2366 |
| 2382 LOperand* context() { return inputs_[0]; } | 2367 LOperand* context() { return inputs_[0]; } |
| 2383 LOperand* size() { return inputs_[1]; } | 2368 LOperand* size() { return inputs_[1]; } |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2657 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2673 }; | 2658 }; |
| 2674 | 2659 |
| 2675 #undef DECLARE_HYDROGEN_ACCESSOR | 2660 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2676 #undef DECLARE_CONCRETE_INSTRUCTION | 2661 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2677 | 2662 |
| 2678 } // namespace internal | 2663 } // namespace internal |
| 2679 } // namespace v8 | 2664 } // namespace v8 |
| 2680 | 2665 |
| 2681 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2666 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
| OLD | NEW |