OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2256 temps_[0] = temp; | 2255 temps_[0] = temp; |
2257 } | 2256 } |
2258 | 2257 |
2259 LOperand* unclamped() { return inputs_[0]; } | 2258 LOperand* unclamped() { return inputs_[0]; } |
2260 LOperand* temp() { return temps_[0]; } | 2259 LOperand* temp() { return temps_[0]; } |
2261 | 2260 |
2262 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 2261 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
2263 }; | 2262 }; |
2264 | 2263 |
2265 | 2264 |
2266 class LDoubleBits final : public LTemplateInstruction<1, 1, 0> { | |
2267 public: | |
2268 explicit LDoubleBits(LOperand* value) { inputs_[0] = value; } | |
2269 | |
2270 LOperand* value() { return inputs_[0]; } | |
2271 | |
2272 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") | |
2273 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) | |
2274 }; | |
2275 | |
2276 | |
2277 class LAllocate final : public LTemplateInstruction<1, 2, 2> { | 2265 class LAllocate final : public LTemplateInstruction<1, 2, 2> { |
2278 public: | 2266 public: |
2279 LAllocate(LOperand* context, LOperand* size, LOperand* temp1, | 2267 LAllocate(LOperand* context, LOperand* size, LOperand* temp1, |
2280 LOperand* temp2) { | 2268 LOperand* temp2) { |
2281 inputs_[0] = context; | 2269 inputs_[0] = context; |
2282 inputs_[1] = size; | 2270 inputs_[1] = size; |
2283 temps_[0] = temp1; | 2271 temps_[0] = temp1; |
2284 temps_[1] = temp2; | 2272 temps_[1] = temp2; |
2285 } | 2273 } |
2286 | 2274 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2561 | 2549 |
2562 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2550 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2563 }; | 2551 }; |
2564 | 2552 |
2565 #undef DECLARE_HYDROGEN_ACCESSOR | 2553 #undef DECLARE_HYDROGEN_ACCESSOR |
2566 #undef DECLARE_CONCRETE_INSTRUCTION | 2554 #undef DECLARE_CONCRETE_INSTRUCTION |
2567 } // namespace internal | 2555 } // namespace internal |
2568 } // namespace v8 | 2556 } // namespace v8 |
2569 | 2557 |
2570 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2558 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |