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

Side by Side Diff: src/compiler/machine-operator.h

Issue 2624183002: [compiler] Allow for StackSlots of arbitrary size (Closed)
Patch Set: Address comments Created 3 years, 11 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/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.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_COMPILER_MACHINE_OPERATOR_H_ 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ 6 #define V8_COMPILER_MACHINE_OPERATOR_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 typedef MachineType CheckedLoadRepresentation; 86 typedef MachineType CheckedLoadRepresentation;
87 87
88 CheckedLoadRepresentation CheckedLoadRepresentationOf(Operator const*); 88 CheckedLoadRepresentation CheckedLoadRepresentationOf(Operator const*);
89 89
90 90
91 // A CheckedStore needs a MachineType. 91 // A CheckedStore needs a MachineType.
92 typedef MachineRepresentation CheckedStoreRepresentation; 92 typedef MachineRepresentation CheckedStoreRepresentation;
93 93
94 CheckedStoreRepresentation CheckedStoreRepresentationOf(Operator const*); 94 CheckedStoreRepresentation CheckedStoreRepresentationOf(Operator const*);
95 95
96 MachineRepresentation StackSlotRepresentationOf(Operator const* op); 96 int StackSlotSizeOf(Operator const* op);
97 97
98 MachineRepresentation AtomicStoreRepresentationOf(Operator const* op); 98 MachineRepresentation AtomicStoreRepresentationOf(Operator const* op);
99 99
100 // Interface for building machine-level operators. These operators are 100 // Interface for building machine-level operators. These operators are
101 // machine-level but machine-independent and thus define a language suitable 101 // machine-level but machine-independent and thus define a language suitable
102 // for generating code to run on architectures such as ia32, x64, arm, etc. 102 // for generating code to run on architectures such as ia32, x64, arm, etc.
103 class V8_EXPORT_PRIVATE MachineOperatorBuilder final 103 class V8_EXPORT_PRIVATE MachineOperatorBuilder final
104 : public NON_EXPORTED_BASE(ZoneObject) { 104 : public NON_EXPORTED_BASE(ZoneObject) {
105 public: 105 public:
106 // Flags that specify which operations are available. This is useful 106 // Flags that specify which operations are available. This is useful
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 // store [base + index], value 612 // store [base + index], value
613 const Operator* Store(StoreRepresentation rep); 613 const Operator* Store(StoreRepresentation rep);
614 const Operator* ProtectedStore(MachineRepresentation rep); 614 const Operator* ProtectedStore(MachineRepresentation rep);
615 615
616 // unaligned load [base + index] 616 // unaligned load [base + index]
617 const Operator* UnalignedLoad(UnalignedLoadRepresentation rep); 617 const Operator* UnalignedLoad(UnalignedLoadRepresentation rep);
618 618
619 // unaligned store [base + index], value 619 // unaligned store [base + index], value
620 const Operator* UnalignedStore(UnalignedStoreRepresentation rep); 620 const Operator* UnalignedStore(UnalignedStoreRepresentation rep);
621 621
622 const Operator* StackSlot(int size);
622 const Operator* StackSlot(MachineRepresentation rep); 623 const Operator* StackSlot(MachineRepresentation rep);
623 624
624 // Access to the machine stack. 625 // Access to the machine stack.
625 const Operator* LoadStackPointer(); 626 const Operator* LoadStackPointer();
626 const Operator* LoadFramePointer(); 627 const Operator* LoadFramePointer();
627 const Operator* LoadParentFramePointer(); 628 const Operator* LoadParentFramePointer();
628 629
629 // checked-load heap, index, length 630 // checked-load heap, index, length
630 const Operator* CheckedLoad(CheckedLoadRepresentation); 631 const Operator* CheckedLoad(CheckedLoadRepresentation);
631 // checked-store heap, index, length, value 632 // checked-store heap, index, length, value
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 }; 695 };
695 696
696 697
697 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 698 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
698 699
699 } // namespace compiler 700 } // namespace compiler
700 } // namespace internal 701 } // namespace internal
701 } // namespace v8 702 } // namespace v8
702 703
703 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 704 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698