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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 V(Deoptimize) \ | 64 V(Deoptimize) \ |
65 V(DivByConstI) \ | 65 V(DivByConstI) \ |
66 V(DivByPowerOf2I) \ | 66 V(DivByPowerOf2I) \ |
67 V(DivI) \ | 67 V(DivI) \ |
68 V(DoubleBits) \ | 68 V(DoubleBits) \ |
69 V(DoubleToI) \ | 69 V(DoubleToI) \ |
70 V(DoubleToSmi) \ | 70 V(DoubleToSmi) \ |
71 V(Drop) \ | 71 V(Drop) \ |
72 V(Dummy) \ | 72 V(Dummy) \ |
73 V(DummyUse) \ | 73 V(DummyUse) \ |
| 74 V(FastAllocate) \ |
74 V(FlooringDivByConstI) \ | 75 V(FlooringDivByConstI) \ |
75 V(FlooringDivByPowerOf2I) \ | 76 V(FlooringDivByPowerOf2I) \ |
76 V(FlooringDivI) \ | 77 V(FlooringDivI) \ |
77 V(ForInCacheArray) \ | 78 V(ForInCacheArray) \ |
78 V(ForInPrepareMap) \ | 79 V(ForInPrepareMap) \ |
79 V(GetCachedArrayIndex) \ | 80 V(GetCachedArrayIndex) \ |
80 V(Goto) \ | 81 V(Goto) \ |
81 V(HasCachedArrayIndexAndBranch) \ | 82 V(HasCachedArrayIndexAndBranch) \ |
82 V(HasInPrototypeChainAndBranch) \ | 83 V(HasInPrototypeChainAndBranch) \ |
83 V(HasInstanceTypeAndBranch) \ | 84 V(HasInstanceTypeAndBranch) \ |
(...skipping 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 } | 2395 } |
2395 | 2396 |
2396 LOperand* context() { return inputs_[0]; } | 2397 LOperand* context() { return inputs_[0]; } |
2397 LOperand* size() { return inputs_[1]; } | 2398 LOperand* size() { return inputs_[1]; } |
2398 LOperand* temp() { return temps_[0]; } | 2399 LOperand* temp() { return temps_[0]; } |
2399 | 2400 |
2400 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2401 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2401 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2402 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2402 }; | 2403 }; |
2403 | 2404 |
| 2405 class LFastAllocate final : public LTemplateInstruction<1, 1, 1> { |
| 2406 public: |
| 2407 LFastAllocate(LOperand* size, LOperand* temp) { |
| 2408 inputs_[0] = size; |
| 2409 temps_[0] = temp; |
| 2410 } |
| 2411 |
| 2412 LOperand* size() const { return inputs_[0]; } |
| 2413 LOperand* temp() { return temps_[0]; } |
| 2414 |
| 2415 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate") |
| 2416 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2417 }; |
2404 | 2418 |
2405 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2419 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
2406 public: | 2420 public: |
2407 LTypeof(LOperand* context, LOperand* value) { | 2421 LTypeof(LOperand* context, LOperand* value) { |
2408 inputs_[0] = context; | 2422 inputs_[0] = context; |
2409 inputs_[1] = value; | 2423 inputs_[1] = value; |
2410 } | 2424 } |
2411 | 2425 |
2412 LOperand* context() { return inputs_[0]; } | 2426 LOperand* context() { return inputs_[0]; } |
2413 LOperand* value() { return inputs_[1]; } | 2427 LOperand* value() { return inputs_[1]; } |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2673 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2674 }; | 2688 }; |
2675 | 2689 |
2676 #undef DECLARE_HYDROGEN_ACCESSOR | 2690 #undef DECLARE_HYDROGEN_ACCESSOR |
2677 #undef DECLARE_CONCRETE_INSTRUCTION | 2691 #undef DECLARE_CONCRETE_INSTRUCTION |
2678 | 2692 |
2679 } // namespace internal | 2693 } // namespace internal |
2680 } // namespace v8 | 2694 } // namespace v8 |
2681 | 2695 |
2682 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2696 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |