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 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, 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 15 matching lines...) Expand all
26 V(AddI) \ 26 V(AddI) \
27 V(Allocate) \ 27 V(Allocate) \
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) \
37 V(CallWithDescriptor) \ 36 V(CallWithDescriptor) \
38 V(CallNewArray) \ 37 V(CallNewArray) \
39 V(CallRuntime) \ 38 V(CallRuntime) \
40 V(CheckArrayBufferNotNeutered) \ 39 V(CheckArrayBufferNotNeutered) \
41 V(CheckInstanceType) \ 40 V(CheckInstanceType) \
42 V(CheckMaps) \ 41 V(CheckMaps) \
43 V(CheckMapValue) \ 42 V(CheckMapValue) \
44 V(CheckNonSmi) \ 43 V(CheckNonSmi) \
45 V(CheckSmi) \ 44 V(CheckSmi) \
46 V(CheckValue) \ 45 V(CheckValue) \
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 inputs_[0] = context; 1714 inputs_[0] = context;
1716 } 1715 }
1717 1716
1718 LOperand* context() { return inputs_[0]; } 1717 LOperand* context() { return inputs_[0]; }
1719 1718
1720 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") 1719 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
1721 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) 1720 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
1722 }; 1721 };
1723 1722
1724 1723
1725 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> {
1726 public:
1727 explicit LCallJSFunction(LOperand* function) {
1728 inputs_[0] = function;
1729 }
1730
1731 LOperand* function() { return inputs_[0]; }
1732
1733 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
1734 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1735
1736 void PrintDataTo(StringStream* stream) override;
1737
1738 int arity() const { return hydrogen()->argument_count() - 1; }
1739 };
1740
1741
1742 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { 1724 class LCallWithDescriptor final : public LTemplateResultInstruction<1> {
1743 public: 1725 public:
1744 LCallWithDescriptor(CallInterfaceDescriptor descriptor, 1726 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1745 const ZoneList<LOperand*>& operands, Zone* zone) 1727 const ZoneList<LOperand*>& operands, Zone* zone)
1746 : inputs_(descriptor.GetRegisterParameterCount() + 1728 : inputs_(descriptor.GetRegisterParameterCount() +
1747 kImplicitRegisterParameterCount, 1729 kImplicitRegisterParameterCount,
1748 zone) { 1730 zone) {
1749 DCHECK(descriptor.GetRegisterParameterCount() + 1731 DCHECK(descriptor.GetRegisterParameterCount() +
1750 kImplicitRegisterParameterCount == 1732 kImplicitRegisterParameterCount ==
1751 operands.length()); 1733 operands.length());
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2669 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2688 }; 2670 };
2689 2671
2690 #undef DECLARE_HYDROGEN_ACCESSOR 2672 #undef DECLARE_HYDROGEN_ACCESSOR
2691 #undef DECLARE_CONCRETE_INSTRUCTION 2673 #undef DECLARE_CONCRETE_INSTRUCTION
2692 2674
2693 } // namespace internal 2675 } // namespace internal
2694 } // namespace v8 2676 } // namespace v8
2695 2677
2696 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2678 #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