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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 14 matching lines...) Expand all
25 V(Allocate) \ 25 V(Allocate) \
26 V(ApplyArguments) \ 26 V(ApplyArguments) \
27 V(ArgumentsElements) \ 27 V(ArgumentsElements) \
28 V(ArgumentsLength) \ 28 V(ArgumentsLength) \
29 V(ArithmeticD) \ 29 V(ArithmeticD) \
30 V(ArithmeticT) \ 30 V(ArithmeticT) \
31 V(BitI) \ 31 V(BitI) \
32 V(BitS) \ 32 V(BitS) \
33 V(BoundsCheck) \ 33 V(BoundsCheck) \
34 V(Branch) \ 34 V(Branch) \
35 V(CallFunction) \
36 V(CallJSFunction) \ 35 V(CallJSFunction) \
37 V(CallNewArray) \ 36 V(CallNewArray) \
38 V(CallRuntime) \ 37 V(CallRuntime) \
39 V(CallWithDescriptor) \ 38 V(CallWithDescriptor) \
40 V(CheckArrayBufferNotNeutered) \ 39 V(CheckArrayBufferNotNeutered) \
41 V(CheckInstanceType) \ 40 V(CheckInstanceType) \
42 V(CheckMapValue) \ 41 V(CheckMapValue) \
43 V(CheckMaps) \ 42 V(CheckMaps) \
44 V(CheckNonSmi) \ 43 V(CheckNonSmi) \
45 V(CheckSmi) \ 44 V(CheckSmi) \
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 810
812 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") 811 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
813 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 812 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
814 813
815 void PrintDataTo(StringStream* stream) override; 814 void PrintDataTo(StringStream* stream) override;
816 815
817 int arity() const { return hydrogen()->argument_count() - 1; } 816 int arity() const { return hydrogen()->argument_count() - 1; }
818 }; 817 };
819 818
820 819
821 class LCallFunction final : public LTemplateInstruction<1, 2, 2> {
822 public:
823 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
824 LOperand* vector) {
825 inputs_[0] = context;
826 inputs_[1] = function;
827 temps_[0] = slot;
828 temps_[1] = vector;
829 }
830
831 LOperand* context() { return inputs_[0]; }
832 LOperand* function() { return inputs_[1]; }
833 LOperand* temp_slot() { return temps_[0]; }
834 LOperand* temp_vector() { return temps_[1]; }
835
836 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
837 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
838
839 int arity() const { return hydrogen()->argument_count() - 1; }
840 void PrintDataTo(StringStream* stream) override;
841 };
842
843
844 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 820 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
845 public: 821 public:
846 LCallNewArray(LOperand* context, LOperand* constructor) { 822 LCallNewArray(LOperand* context, LOperand* constructor) {
847 inputs_[0] = context; 823 inputs_[0] = context;
848 inputs_[1] = constructor; 824 inputs_[1] = constructor;
849 } 825 }
850 826
851 LOperand* context() { return inputs_[0]; } 827 LOperand* context() { return inputs_[0]; }
852 LOperand* constructor() { return inputs_[1]; } 828 LOperand* constructor() { return inputs_[1]; }
853 829
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3061 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3086 }; 3062 };
3087 3063
3088 #undef DECLARE_HYDROGEN_ACCESSOR 3064 #undef DECLARE_HYDROGEN_ACCESSOR
3089 #undef DECLARE_CONCRETE_INSTRUCTION 3065 #undef DECLARE_CONCRETE_INSTRUCTION
3090 3066
3091 } // namespace internal 3067 } // namespace internal
3092 } // namespace v8 3068 } // namespace v8
3093 3069
3094 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3070 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698