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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 11 matching lines...) Expand all
22 V(AddI) \ 22 V(AddI) \
23 V(Allocate) \ 23 V(Allocate) \
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) \
33 V(CallWithDescriptor) \ 32 V(CallWithDescriptor) \
34 V(CallNewArray) \ 33 V(CallNewArray) \
35 V(CallRuntime) \ 34 V(CallRuntime) \
36 V(CheckArrayBufferNotNeutered) \ 35 V(CheckArrayBufferNotNeutered) \
37 V(CheckInstanceType) \ 36 V(CheckInstanceType) \
38 V(CheckMaps) \ 37 V(CheckMaps) \
39 V(CheckMapValue) \ 38 V(CheckMapValue) \
40 V(CheckNonSmi) \ 39 V(CheckNonSmi) \
41 V(CheckSmi) \ 40 V(CheckSmi) \
42 V(CheckValue) \ 41 V(CheckValue) \
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 inputs_[0] = context; 1675 inputs_[0] = context;
1677 } 1676 }
1678 1677
1679 LOperand* context() { return inputs_[0]; } 1678 LOperand* context() { return inputs_[0]; }
1680 1679
1681 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") 1680 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
1682 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) 1681 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
1683 }; 1682 };
1684 1683
1685 1684
1686 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> {
1687 public:
1688 explicit LCallJSFunction(LOperand* function) {
1689 inputs_[0] = function;
1690 }
1691
1692 LOperand* function() { return inputs_[0]; }
1693
1694 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
1695 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1696
1697 void PrintDataTo(StringStream* stream) override;
1698
1699 int arity() const { return hydrogen()->argument_count() - 1; }
1700 };
1701
1702
1703 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { 1685 class LCallWithDescriptor final : public LTemplateResultInstruction<1> {
1704 public: 1686 public:
1705 LCallWithDescriptor(CallInterfaceDescriptor descriptor, 1687 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1706 const ZoneList<LOperand*>& operands, Zone* zone) 1688 const ZoneList<LOperand*>& operands, Zone* zone)
1707 : descriptor_(descriptor), 1689 : descriptor_(descriptor),
1708 inputs_(descriptor.GetRegisterParameterCount() + 1690 inputs_(descriptor.GetRegisterParameterCount() +
1709 kImplicitRegisterParameterCount, 1691 kImplicitRegisterParameterCount,
1710 zone) { 1692 zone) {
1711 DCHECK(descriptor.GetRegisterParameterCount() + 1693 DCHECK(descriptor.GetRegisterParameterCount() +
1712 kImplicitRegisterParameterCount == 1694 kImplicitRegisterParameterCount ==
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2629 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2648 }; 2630 };
2649 2631
2650 #undef DECLARE_HYDROGEN_ACCESSOR 2632 #undef DECLARE_HYDROGEN_ACCESSOR
2651 #undef DECLARE_CONCRETE_INSTRUCTION 2633 #undef DECLARE_CONCRETE_INSTRUCTION
2652 2634
2653 } // namespace internal 2635 } // namespace internal
2654 } // namespace v8 2636 } // namespace v8
2655 2637
2656 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2638 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698