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 17 matching lines...) Expand all Loading... |
28 V(ArithmeticD) \ | 28 V(ArithmeticD) \ |
29 V(ArithmeticT) \ | 29 V(ArithmeticT) \ |
30 V(BitI) \ | 30 V(BitI) \ |
31 V(BoundsCheck) \ | 31 V(BoundsCheck) \ |
32 V(Branch) \ | 32 V(Branch) \ |
33 V(CallJSFunction) \ | 33 V(CallJSFunction) \ |
34 V(CallWithDescriptor) \ | 34 V(CallWithDescriptor) \ |
35 V(CallFunction) \ | 35 V(CallFunction) \ |
36 V(CallNewArray) \ | 36 V(CallNewArray) \ |
37 V(CallRuntime) \ | 37 V(CallRuntime) \ |
38 V(CallStub) \ | |
39 V(CheckArrayBufferNotNeutered) \ | 38 V(CheckArrayBufferNotNeutered) \ |
40 V(CheckInstanceType) \ | 39 V(CheckInstanceType) \ |
41 V(CheckMaps) \ | 40 V(CheckMaps) \ |
42 V(CheckMapValue) \ | 41 V(CheckMapValue) \ |
43 V(CheckNonSmi) \ | 42 V(CheckNonSmi) \ |
44 V(CheckSmi) \ | 43 V(CheckSmi) \ |
45 V(CheckValue) \ | 44 V(CheckValue) \ |
46 V(ClampDToUint8) \ | 45 V(ClampDToUint8) \ |
47 V(ClampIToUint8) \ | 46 V(ClampIToUint8) \ |
48 V(ClampTToUint8) \ | 47 V(ClampTToUint8) \ |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 }; | 447 }; |
449 | 448 |
450 | 449 |
451 class LParameter final : public LTemplateInstruction<1, 0, 0> { | 450 class LParameter final : public LTemplateInstruction<1, 0, 0> { |
452 public: | 451 public: |
453 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 452 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
454 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") | 453 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") |
455 }; | 454 }; |
456 | 455 |
457 | 456 |
458 class LCallStub final : public LTemplateInstruction<1, 1, 0> { | |
459 public: | |
460 explicit LCallStub(LOperand* context) { | |
461 inputs_[0] = context; | |
462 } | |
463 | |
464 LOperand* context() { return inputs_[0]; } | |
465 | |
466 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | |
467 DECLARE_HYDROGEN_ACCESSOR(CallStub) | |
468 }; | |
469 | |
470 | |
471 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { | 457 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { |
472 public: | 458 public: |
473 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 459 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
474 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 460 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
475 }; | 461 }; |
476 | 462 |
477 | 463 |
478 template<int I, int T> | 464 template<int I, int T> |
479 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 465 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
480 public: | 466 public: |
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2689 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2704 }; | 2690 }; |
2705 | 2691 |
2706 #undef DECLARE_HYDROGEN_ACCESSOR | 2692 #undef DECLARE_HYDROGEN_ACCESSOR |
2707 #undef DECLARE_CONCRETE_INSTRUCTION | 2693 #undef DECLARE_CONCRETE_INSTRUCTION |
2708 | 2694 |
2709 } // namespace internal | 2695 } // namespace internal |
2710 } // namespace v8 | 2696 } // namespace v8 |
2711 | 2697 |
2712 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2698 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |