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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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(CheckNonSmi) \ 37 V(CheckNonSmi) \
39 V(CheckMaps) \ 38 V(CheckMaps) \
40 V(CheckMapValue) \ 39 V(CheckMapValue) \
41 V(CheckSmi) \ 40 V(CheckSmi) \
42 V(CheckValue) \ 41 V(CheckValue) \
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 public: 1650 public:
1652 explicit LDeclareGlobals(LOperand* context) { inputs_[0] = context; } 1651 explicit LDeclareGlobals(LOperand* context) { inputs_[0] = context; }
1653 1652
1654 LOperand* context() { return inputs_[0]; } 1653 LOperand* context() { return inputs_[0]; }
1655 1654
1656 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") 1655 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals")
1657 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) 1656 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals)
1658 }; 1657 };
1659 1658
1660 1659
1661 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> {
1662 public:
1663 explicit LCallJSFunction(LOperand* function) { inputs_[0] = function; }
1664
1665 LOperand* function() { return inputs_[0]; }
1666
1667 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function")
1668 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1669
1670 void PrintDataTo(StringStream* stream) override;
1671
1672 int arity() const { return hydrogen()->argument_count() - 1; }
1673 };
1674
1675
1676 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { 1660 class LCallWithDescriptor final : public LTemplateResultInstruction<1> {
1677 public: 1661 public:
1678 LCallWithDescriptor(CallInterfaceDescriptor descriptor, 1662 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1679 const ZoneList<LOperand*>& operands, Zone* zone) 1663 const ZoneList<LOperand*>& operands, Zone* zone)
1680 : descriptor_(descriptor), 1664 : descriptor_(descriptor),
1681 inputs_(descriptor.GetRegisterParameterCount() + 1665 inputs_(descriptor.GetRegisterParameterCount() +
1682 kImplicitRegisterParameterCount, 1666 kImplicitRegisterParameterCount,
1683 zone) { 1667 zone) {
1684 DCHECK(descriptor.GetRegisterParameterCount() + 1668 DCHECK(descriptor.GetRegisterParameterCount() +
1685 kImplicitRegisterParameterCount == 1669 kImplicitRegisterParameterCount ==
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 2556
2573 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2557 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2574 }; 2558 };
2575 2559
2576 #undef DECLARE_HYDROGEN_ACCESSOR 2560 #undef DECLARE_HYDROGEN_ACCESSOR
2577 #undef DECLARE_CONCRETE_INSTRUCTION 2561 #undef DECLARE_CONCRETE_INSTRUCTION
2578 } // namespace internal 2562 } // namespace internal
2579 } // namespace v8 2563 } // namespace v8
2580 2564
2581 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2565 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698