Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/crankshaft/mips/lithium-mips.h

Issue 1731303002: [crankshaft] Remove useless HCallFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 V(ApplyArguments) \ 24 V(ApplyArguments) \
25 V(ArgumentsElements) \ 25 V(ArgumentsElements) \
26 V(ArgumentsLength) \ 26 V(ArgumentsLength) \
27 V(ArithmeticD) \ 27 V(ArithmeticD) \
28 V(ArithmeticT) \ 28 V(ArithmeticT) \
29 V(BitI) \ 29 V(BitI) \
30 V(BoundsCheck) \ 30 V(BoundsCheck) \
31 V(Branch) \ 31 V(Branch) \
32 V(CallJSFunction) \ 32 V(CallJSFunction) \
33 V(CallWithDescriptor) \ 33 V(CallWithDescriptor) \
34 V(CallFunction) \
35 V(CallNewArray) \ 34 V(CallNewArray) \
36 V(CallRuntime) \ 35 V(CallRuntime) \
37 V(CheckArrayBufferNotNeutered) \ 36 V(CheckArrayBufferNotNeutered) \
38 V(CheckInstanceType) \ 37 V(CheckInstanceType) \
39 V(CheckMaps) \ 38 V(CheckMaps) \
40 V(CheckMapValue) \ 39 V(CheckMapValue) \
41 V(CheckNonSmi) \ 40 V(CheckNonSmi) \
42 V(CheckSmi) \ 41 V(CheckSmi) \
43 V(CheckValue) \ 42 V(CheckValue) \
44 V(ClampDToUint8) \ 43 V(ClampDToUint8) \
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 1755
1757 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1756 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1758 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1757 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1759 1758
1760 void PrintDataTo(StringStream* stream) override; 1759 void PrintDataTo(StringStream* stream) override;
1761 1760
1762 int arity() const { return hydrogen()->argument_count() - 1; } 1761 int arity() const { return hydrogen()->argument_count() - 1; }
1763 }; 1762 };
1764 1763
1765 1764
1766 class LCallFunction final : public LTemplateInstruction<1, 2, 2> {
1767 public:
1768 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
1769 LOperand* vector) {
1770 inputs_[0] = context;
1771 inputs_[1] = function;
1772 temps_[0] = slot;
1773 temps_[1] = vector;
1774 }
1775
1776 LOperand* context() { return inputs_[0]; }
1777 LOperand* function() { return inputs_[1]; }
1778 LOperand* temp_slot() { return temps_[0]; }
1779 LOperand* temp_vector() { return temps_[1]; }
1780
1781 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1782 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1783
1784 int arity() const { return hydrogen()->argument_count() - 1; }
1785 void PrintDataTo(StringStream* stream) override;
1786 };
1787
1788
1789 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1765 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1790 public: 1766 public:
1791 LCallNewArray(LOperand* context, LOperand* constructor) { 1767 LCallNewArray(LOperand* context, LOperand* constructor) {
1792 inputs_[0] = context; 1768 inputs_[0] = context;
1793 inputs_[1] = constructor; 1769 inputs_[1] = constructor;
1794 } 1770 }
1795 1771
1796 LOperand* context() { return inputs_[0]; } 1772 LOperand* context() { return inputs_[0]; }
1797 LOperand* constructor() { return inputs_[1]; } 1773 LOperand* constructor() { return inputs_[1]; }
1798 1774
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2647 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2672 }; 2648 };
2673 2649
2674 #undef DECLARE_HYDROGEN_ACCESSOR 2650 #undef DECLARE_HYDROGEN_ACCESSOR
2675 #undef DECLARE_CONCRETE_INSTRUCTION 2651 #undef DECLARE_CONCRETE_INSTRUCTION
2676 2652
2677 } // namespace internal 2653 } // namespace internal
2678 } // namespace v8 2654 } // namespace v8
2679 2655
2680 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2656 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698