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/ia32/lithium-ia32.h

Issue 1731303002: [crankshaft] Remove useless HCallFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_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 17 matching lines...) Expand all
28 V(ApplyArguments) \ 28 V(ApplyArguments) \
29 V(ArgumentsElements) \ 29 V(ArgumentsElements) \
30 V(ArgumentsLength) \ 30 V(ArgumentsLength) \
31 V(ArithmeticD) \ 31 V(ArithmeticD) \
32 V(ArithmeticT) \ 32 V(ArithmeticT) \
33 V(BitI) \ 33 V(BitI) \
34 V(BoundsCheck) \ 34 V(BoundsCheck) \
35 V(Branch) \ 35 V(Branch) \
36 V(CallJSFunction) \ 36 V(CallJSFunction) \
37 V(CallWithDescriptor) \ 37 V(CallWithDescriptor) \
38 V(CallFunction) \
39 V(CallNewArray) \ 38 V(CallNewArray) \
40 V(CallRuntime) \ 39 V(CallRuntime) \
41 V(CheckArrayBufferNotNeutered) \ 40 V(CheckArrayBufferNotNeutered) \
42 V(CheckInstanceType) \ 41 V(CheckInstanceType) \
43 V(CheckMaps) \ 42 V(CheckMaps) \
44 V(CheckMapValue) \ 43 V(CheckMapValue) \
45 V(CheckNonSmi) \ 44 V(CheckNonSmi) \
46 V(CheckSmi) \ 45 V(CheckSmi) \
47 V(CheckValue) \ 46 V(CheckValue) \
48 V(ClampDToUint8) \ 47 V(ClampDToUint8) \
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 1790
1792 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1791 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1793 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1792 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1794 1793
1795 void PrintDataTo(StringStream* stream) override; 1794 void PrintDataTo(StringStream* stream) override;
1796 1795
1797 int arity() const { return hydrogen()->argument_count() - 1; } 1796 int arity() const { return hydrogen()->argument_count() - 1; }
1798 }; 1797 };
1799 1798
1800 1799
1801 class LCallFunction final : public LTemplateInstruction<1, 2, 2> {
1802 public:
1803 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
1804 LOperand* vector) {
1805 inputs_[0] = context;
1806 inputs_[1] = function;
1807 temps_[0] = slot;
1808 temps_[1] = vector;
1809 }
1810
1811 LOperand* context() { return inputs_[0]; }
1812 LOperand* function() { return inputs_[1]; }
1813 LOperand* temp_slot() { return temps_[0]; }
1814 LOperand* temp_vector() { return temps_[1]; }
1815
1816 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1817 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1818
1819 void PrintDataTo(StringStream* stream) override;
1820 int arity() const { return hydrogen()->argument_count() - 1; }
1821 };
1822
1823
1824 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1800 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1825 public: 1801 public:
1826 LCallNewArray(LOperand* context, LOperand* constructor) { 1802 LCallNewArray(LOperand* context, LOperand* constructor) {
1827 inputs_[0] = context; 1803 inputs_[0] = context;
1828 inputs_[1] = constructor; 1804 inputs_[1] = constructor;
1829 } 1805 }
1830 1806
1831 LOperand* context() { return inputs_[0]; } 1807 LOperand* context() { return inputs_[0]; }
1832 LOperand* constructor() { return inputs_[1]; } 1808 LOperand* constructor() { return inputs_[1]; }
1833 1809
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2712 }; 2688 };
2713 2689
2714 #undef DECLARE_HYDROGEN_ACCESSOR 2690 #undef DECLARE_HYDROGEN_ACCESSOR
2715 #undef DECLARE_CONCRETE_INSTRUCTION 2691 #undef DECLARE_CONCRETE_INSTRUCTION
2716 2692
2717 } // namespace internal 2693 } // namespace internal
2718 } // namespace v8 2694 } // namespace v8
2719 2695
2720 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2696 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698