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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 V(ConstantI) \ | 53 V(ConstantI) \ |
54 V(ConstantS) \ | 54 V(ConstantS) \ |
55 V(ConstantT) \ | 55 V(ConstantT) \ |
56 V(Context) \ | 56 V(Context) \ |
57 V(DebugBreak) \ | 57 V(DebugBreak) \ |
58 V(DeclareGlobals) \ | 58 V(DeclareGlobals) \ |
59 V(Deoptimize) \ | 59 V(Deoptimize) \ |
60 V(DivByConstI) \ | 60 V(DivByConstI) \ |
61 V(DivByPowerOf2I) \ | 61 V(DivByPowerOf2I) \ |
62 V(DivI) \ | 62 V(DivI) \ |
63 V(DoubleBits) \ | |
64 V(DoubleToI) \ | 63 V(DoubleToI) \ |
65 V(DoubleToSmi) \ | 64 V(DoubleToSmi) \ |
66 V(Drop) \ | 65 V(Drop) \ |
67 V(Dummy) \ | 66 V(Dummy) \ |
68 V(DummyUse) \ | 67 V(DummyUse) \ |
69 V(FastAllocate) \ | 68 V(FastAllocate) \ |
70 V(FlooringDivByConstI) \ | 69 V(FlooringDivByConstI) \ |
71 V(FlooringDivByPowerOf2I) \ | 70 V(FlooringDivByPowerOf2I) \ |
72 V(FlooringDivI) \ | 71 V(FlooringDivI) \ |
73 V(ForInCacheArray) \ | 72 V(ForInCacheArray) \ |
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2321 temps_[0] = temp; | 2320 temps_[0] = temp; |
2322 } | 2321 } |
2323 | 2322 |
2324 LOperand* unclamped() { return inputs_[0]; } | 2323 LOperand* unclamped() { return inputs_[0]; } |
2325 LOperand* temp() { return temps_[0]; } | 2324 LOperand* temp() { return temps_[0]; } |
2326 | 2325 |
2327 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2326 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2328 }; | 2327 }; |
2329 | 2328 |
2330 | 2329 |
2331 class LDoubleBits final : public LTemplateInstruction<1, 1, 0> { | |
2332 public: | |
2333 explicit LDoubleBits(LOperand* value) { | |
2334 inputs_[0] = value; | |
2335 } | |
2336 | |
2337 LOperand* value() { return inputs_[0]; } | |
2338 | |
2339 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") | |
2340 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) | |
2341 }; | |
2342 | |
2343 | |
2344 class LAllocate final : public LTemplateInstruction<1, 2, 2> { | 2330 class LAllocate final : public LTemplateInstruction<1, 2, 2> { |
2345 public: | 2331 public: |
2346 LAllocate(LOperand* context, | 2332 LAllocate(LOperand* context, |
2347 LOperand* size, | 2333 LOperand* size, |
2348 LOperand* temp1, | 2334 LOperand* temp1, |
2349 LOperand* temp2) { | 2335 LOperand* temp2) { |
2350 inputs_[0] = context; | 2336 inputs_[0] = context; |
2351 inputs_[1] = size; | 2337 inputs_[1] = size; |
2352 temps_[0] = temp1; | 2338 temps_[0] = temp1; |
2353 temps_[1] = temp2; | 2339 temps_[1] = temp2; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2642 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2628 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2643 }; | 2629 }; |
2644 | 2630 |
2645 #undef DECLARE_HYDROGEN_ACCESSOR | 2631 #undef DECLARE_HYDROGEN_ACCESSOR |
2646 #undef DECLARE_CONCRETE_INSTRUCTION | 2632 #undef DECLARE_CONCRETE_INSTRUCTION |
2647 | 2633 |
2648 } // namespace internal | 2634 } // namespace internal |
2649 } // namespace v8 | 2635 } // namespace v8 |
2650 | 2636 |
2651 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2637 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |