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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 1802
1804 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1803 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1805 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1804 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1806 1805
1807 void PrintDataTo(StringStream* stream) override; 1806 void PrintDataTo(StringStream* stream) override;
1808 1807
1809 int arity() const { return hydrogen()->argument_count() - 1; } 1808 int arity() const { return hydrogen()->argument_count() - 1; }
1810 }; 1809 };
1811 1810
1812 1811
1813 class LCallFunction final : public LTemplateInstruction<1, 2, 2> {
1814 public:
1815 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
1816 LOperand* vector) {
1817 inputs_[0] = context;
1818 inputs_[1] = function;
1819 temps_[0] = slot;
1820 temps_[1] = vector;
1821 }
1822
1823 LOperand* context() { return inputs_[0]; }
1824 LOperand* function() { return inputs_[1]; }
1825 LOperand* temp_slot() { return temps_[0]; }
1826 LOperand* temp_vector() { return temps_[1]; }
1827
1828 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1829 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1830
1831 void PrintDataTo(StringStream* stream) override;
1832 int arity() const { return hydrogen()->argument_count() - 1; }
1833 };
1834
1835
1836 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1812 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1837 public: 1813 public:
1838 LCallNewArray(LOperand* context, LOperand* constructor) { 1814 LCallNewArray(LOperand* context, LOperand* constructor) {
1839 inputs_[0] = context; 1815 inputs_[0] = context;
1840 inputs_[1] = constructor; 1816 inputs_[1] = constructor;
1841 } 1817 }
1842 1818
1843 LOperand* context() { return inputs_[0]; } 1819 LOperand* context() { return inputs_[0]; }
1844 LOperand* constructor() { return inputs_[1]; } 1820 LOperand* constructor() { return inputs_[1]; }
1845 1821
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2703 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2728 }; 2704 };
2729 2705
2730 #undef DECLARE_HYDROGEN_ACCESSOR 2706 #undef DECLARE_HYDROGEN_ACCESSOR
2731 #undef DECLARE_CONCRETE_INSTRUCTION 2707 #undef DECLARE_CONCRETE_INSTRUCTION
2732 2708
2733 } // namespace internal 2709 } // namespace internal
2734 } // namespace v8 2710 } // namespace v8
2735 2711
2736 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2712 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698