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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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(DoubleToI) \ | 64 V(DoubleToI) \ |
65 V(DoubleBits) \ | 65 V(DoubleBits) \ |
66 V(DoubleToSmi) \ | 66 V(DoubleToSmi) \ |
67 V(Drop) \ | 67 V(Drop) \ |
68 V(Dummy) \ | 68 V(Dummy) \ |
69 V(DummyUse) \ | 69 V(DummyUse) \ |
| 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 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2343 | 2344 |
2344 LOperand* context() { return inputs_[0]; } | 2345 LOperand* context() { return inputs_[0]; } |
2345 LOperand* size() { return inputs_[1]; } | 2346 LOperand* size() { return inputs_[1]; } |
2346 LOperand* temp1() { return temps_[0]; } | 2347 LOperand* temp1() { return temps_[0]; } |
2347 LOperand* temp2() { return temps_[1]; } | 2348 LOperand* temp2() { return temps_[1]; } |
2348 | 2349 |
2349 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2350 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2350 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2351 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2351 }; | 2352 }; |
2352 | 2353 |
| 2354 class LFastAllocate final : public LTemplateInstruction<1, 1, 2> { |
| 2355 public: |
| 2356 LFastAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) { |
| 2357 inputs_[0] = size; |
| 2358 temps_[0] = temp1; |
| 2359 temps_[1] = temp2; |
| 2360 } |
| 2361 |
| 2362 LOperand* size() { return inputs_[0]; } |
| 2363 LOperand* temp1() { return temps_[0]; } |
| 2364 LOperand* temp2() { return temps_[1]; } |
| 2365 |
| 2366 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate") |
| 2367 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2368 }; |
2353 | 2369 |
2354 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2370 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
2355 public: | 2371 public: |
2356 LTypeof(LOperand* context, LOperand* value) { | 2372 LTypeof(LOperand* context, LOperand* value) { |
2357 inputs_[0] = context; | 2373 inputs_[0] = context; |
2358 inputs_[1] = value; | 2374 inputs_[1] = value; |
2359 } | 2375 } |
2360 | 2376 |
2361 LOperand* context() { return inputs_[0]; } | 2377 LOperand* context() { return inputs_[0]; } |
2362 LOperand* value() { return inputs_[1]; } | 2378 LOperand* value() { return inputs_[1]; } |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2628 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2613 }; | 2629 }; |
2614 | 2630 |
2615 #undef DECLARE_HYDROGEN_ACCESSOR | 2631 #undef DECLARE_HYDROGEN_ACCESSOR |
2616 #undef DECLARE_CONCRETE_INSTRUCTION | 2632 #undef DECLARE_CONCRETE_INSTRUCTION |
2617 | 2633 |
2618 } // namespace internal | 2634 } // namespace internal |
2619 } // namespace v8 | 2635 } // namespace v8 |
2620 | 2636 |
2621 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2637 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |