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

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

Issue 1728423002: [crankshaft] Remove useless HCallJSFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@remove-dynamic-frame-alignment
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(CallJSFunction) \
36 V(CallNewArray) \ 35 V(CallNewArray) \
37 V(CallRuntime) \ 36 V(CallRuntime) \
38 V(CallWithDescriptor) \ 37 V(CallWithDescriptor) \
39 V(CheckArrayBufferNotNeutered) \ 38 V(CheckArrayBufferNotNeutered) \
40 V(CheckInstanceType) \ 39 V(CheckInstanceType) \
41 V(CheckMapValue) \ 40 V(CheckMapValue) \
42 V(CheckMaps) \ 41 V(CheckMaps) \
43 V(CheckNonSmi) \ 42 V(CheckNonSmi) \
44 V(CheckSmi) \ 43 V(CheckSmi) \
45 V(CheckValue) \ 44 V(CheckValue) \
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 LOperand* temp1() { return temps_[0]; } 792 LOperand* temp1() { return temps_[0]; }
794 LOperand* temp2() { return temps_[1]; } 793 LOperand* temp2() { return temps_[1]; }
795 794
796 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch") 795 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
797 DECLARE_HYDROGEN_ACCESSOR(Branch) 796 DECLARE_HYDROGEN_ACCESSOR(Branch)
798 797
799 void PrintDataTo(StringStream* stream) override; 798 void PrintDataTo(StringStream* stream) override;
800 }; 799 };
801 800
802 801
803 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> {
804 public:
805 explicit LCallJSFunction(LOperand* function) {
806 inputs_[0] = function;
807 }
808
809 LOperand* function() { return inputs_[0]; }
810
811 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
812 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
813
814 void PrintDataTo(StringStream* stream) override;
815
816 int arity() const { return hydrogen()->argument_count() - 1; }
817 };
818
819
820 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { 802 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> {
821 public: 803 public:
822 LCallNewArray(LOperand* context, LOperand* constructor) { 804 LCallNewArray(LOperand* context, LOperand* constructor) {
823 inputs_[0] = context; 805 inputs_[0] = context;
824 inputs_[1] = constructor; 806 inputs_[1] = constructor;
825 } 807 }
826 808
827 LOperand* context() { return inputs_[0]; } 809 LOperand* context() { return inputs_[0]; }
828 LOperand* constructor() { return inputs_[1]; } 810 LOperand* constructor() { return inputs_[1]; }
829 811
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3043 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3062 }; 3044 };
3063 3045
3064 #undef DECLARE_HYDROGEN_ACCESSOR 3046 #undef DECLARE_HYDROGEN_ACCESSOR
3065 #undef DECLARE_CONCRETE_INSTRUCTION 3047 #undef DECLARE_CONCRETE_INSTRUCTION
3066 3048
3067 } // namespace internal 3049 } // namespace internal
3068 } // namespace v8 3050 } // namespace v8
3069 3051
3070 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3052 #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