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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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 | « no previous file | src/crankshaft/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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(CheckNonSmi) \ 38 V(CheckNonSmi) \
40 V(CheckMaps) \ 39 V(CheckMaps) \
41 V(CheckMapValue) \ 40 V(CheckMapValue) \
42 V(CheckSmi) \ 41 V(CheckSmi) \
43 V(CheckValue) \ 42 V(CheckValue) \
44 V(ClampDToUint8) \ 43 V(ClampDToUint8) \
(...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 1792
1794 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1793 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1795 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1794 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1796 1795
1797 void PrintDataTo(StringStream* stream) override; 1796 void PrintDataTo(StringStream* stream) override;
1798 1797
1799 int arity() const { return hydrogen()->argument_count() - 1; } 1798 int arity() const { return hydrogen()->argument_count() - 1; }
1800 }; 1799 };
1801 1800
1802 1801
1803 class LCallFunction final : public LTemplateInstruction<1, 2, 2> {
1804 public:
1805 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
1806 LOperand* vector) {
1807 inputs_[0] = context;
1808 inputs_[1] = function;
1809 temps_[0] = slot;
1810 temps_[1] = vector;
1811 }
1812
1813 LOperand* context() { return inputs_[0]; }
1814 LOperand* function() { return inputs_[1]; }
1815 LOperand* temp_slot() { return temps_[0]; }
1816 LOperand* temp_vector() { return temps_[1]; }
1817
1818 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1819 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1820
1821 int arity() const { return hydrogen()->argument_count() - 1; }
1822 void PrintDataTo(StringStream* stream) override;
1823 };
1824
1825
1826 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 1802 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
1827 public: 1803 public:
1828 LCallNewArray(LOperand* context, LOperand* constructor) { 1804 LCallNewArray(LOperand* context, LOperand* constructor) {
1829 inputs_[0] = context; 1805 inputs_[0] = context;
1830 inputs_[1] = constructor; 1806 inputs_[1] = constructor;
1831 } 1807 }
1832 1808
1833 LOperand* context() { return inputs_[0]; } 1809 LOperand* context() { return inputs_[0]; }
1834 LOperand* constructor() { return inputs_[1]; } 1810 LOperand* constructor() { return inputs_[1]; }
1835 1811
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2689 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2714 }; 2690 };
2715 2691
2716 #undef DECLARE_HYDROGEN_ACCESSOR 2692 #undef DECLARE_HYDROGEN_ACCESSOR
2717 #undef DECLARE_CONCRETE_INSTRUCTION 2693 #undef DECLARE_CONCRETE_INSTRUCTION
2718 2694
2719 } // namespace internal 2695 } // namespace internal
2720 } // namespace v8 2696 } // namespace v8
2721 2697
2722 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2698 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698