| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 V(Deoptimize) \ | 60 V(Deoptimize) \ |
| 61 V(DivByConstI) \ | 61 V(DivByConstI) \ |
| 62 V(DivByPowerOf2I) \ | 62 V(DivByPowerOf2I) \ |
| 63 V(DivI) \ | 63 V(DivI) \ |
| 64 V(DoubleBits) \ | 64 V(DoubleBits) \ |
| 65 V(DoubleToI) \ | 65 V(DoubleToI) \ |
| 66 V(DoubleToSmi) \ | 66 V(DoubleToSmi) \ |
| 67 V(Drop) \ | 67 V(Drop) \ |
| 68 V(DummyUse) \ | 68 V(DummyUse) \ |
| 69 V(Dummy) \ | 69 V(Dummy) \ |
| 70 V(FastAllocate) \ |
| 70 V(FlooringDivByConstI) \ | 71 V(FlooringDivByConstI) \ |
| 71 V(FlooringDivByPowerOf2I) \ | 72 V(FlooringDivByPowerOf2I) \ |
| 72 V(FlooringDivI) \ | 73 V(FlooringDivI) \ |
| 73 V(ForInCacheArray) \ | 74 V(ForInCacheArray) \ |
| 74 V(ForInPrepareMap) \ | 75 V(ForInPrepareMap) \ |
| 75 V(GetCachedArrayIndex) \ | 76 V(GetCachedArrayIndex) \ |
| 76 V(Goto) \ | 77 V(Goto) \ |
| 77 V(HasCachedArrayIndexAndBranch) \ | 78 V(HasCachedArrayIndexAndBranch) \ |
| 78 V(HasInPrototypeChainAndBranch) \ | 79 V(HasInPrototypeChainAndBranch) \ |
| 79 V(HasInstanceTypeAndBranch) \ | 80 V(HasInstanceTypeAndBranch) \ |
| (...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2378 } | 2379 } |
| 2379 | 2380 |
| 2380 LOperand* context() { return inputs_[0]; } | 2381 LOperand* context() { return inputs_[0]; } |
| 2381 LOperand* size() { return inputs_[1]; } | 2382 LOperand* size() { return inputs_[1]; } |
| 2382 LOperand* temp() { return temps_[0]; } | 2383 LOperand* temp() { return temps_[0]; } |
| 2383 | 2384 |
| 2384 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2385 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2385 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2386 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2386 }; | 2387 }; |
| 2387 | 2388 |
| 2389 class LFastAllocate final : public LTemplateInstruction<1, 1, 1> { |
| 2390 public: |
| 2391 LFastAllocate(LOperand* size, LOperand* temp) { |
| 2392 inputs_[0] = size; |
| 2393 temps_[0] = temp; |
| 2394 } |
| 2395 |
| 2396 LOperand* size() const { return inputs_[0]; } |
| 2397 LOperand* temp() { return temps_[0]; } |
| 2398 |
| 2399 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate") |
| 2400 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2401 }; |
| 2388 | 2402 |
| 2389 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2403 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
| 2390 public: | 2404 public: |
| 2391 LTypeof(LOperand* context, LOperand* value) { | 2405 LTypeof(LOperand* context, LOperand* value) { |
| 2392 inputs_[0] = context; | 2406 inputs_[0] = context; |
| 2393 inputs_[1] = value; | 2407 inputs_[1] = value; |
| 2394 } | 2408 } |
| 2395 | 2409 |
| 2396 LOperand* context() { return inputs_[0]; } | 2410 LOperand* context() { return inputs_[0]; } |
| 2397 LOperand* value() { return inputs_[1]; } | 2411 LOperand* value() { return inputs_[1]; } |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2657 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2658 }; | 2672 }; |
| 2659 | 2673 |
| 2660 #undef DECLARE_HYDROGEN_ACCESSOR | 2674 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2661 #undef DECLARE_CONCRETE_INSTRUCTION | 2675 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2662 | 2676 |
| 2663 } // namespace internal | 2677 } // namespace internal |
| 2664 } // namespace v8 | 2678 } // namespace v8 |
| 2665 | 2679 |
| 2666 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2680 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |