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

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

Issue 1881913002: Revert of [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/common-node-cache.cc ('k') | src/compiler/common-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 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_COMPILER_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/assembler.h"
9 #include "src/compiler/frame-states.h" 8 #include "src/compiler/frame-states.h"
10 #include "src/machine-type.h" 9 #include "src/machine-type.h"
11 #include "src/zone-containers.h" 10 #include "src/zone-containers.h"
12 11
13 namespace v8 { 12 namespace v8 {
14 namespace internal { 13 namespace internal {
15 14
16 // Forward declarations. 15 // Forward declarations.
16 class ExternalReference;
17 class Type; 17 class Type;
18 18
19 namespace compiler { 19 namespace compiler {
20 20
21 // Forward declarations. 21 // Forward declarations.
22 class CallDescriptor; 22 class CallDescriptor;
23 struct CommonOperatorGlobalCache; 23 struct CommonOperatorGlobalCache;
24 class Operator; 24 class Operator;
25 25
26 26
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 private: 107 private:
108 int index_; 108 int index_;
109 const char* debug_name_; 109 const char* debug_name_;
110 }; 110 };
111 111
112 std::ostream& operator<<(std::ostream&, ParameterInfo const&); 112 std::ostream& operator<<(std::ostream&, ParameterInfo const&);
113 113
114 int ParameterIndexOf(const Operator* const); 114 int ParameterIndexOf(const Operator* const);
115 const ParameterInfo& ParameterInfoOf(const Operator* const); 115 const ParameterInfo& ParameterInfoOf(const Operator* const);
116 116
117 class RelocatablePtrConstantInfo final {
118 public:
119 RelocatablePtrConstantInfo(intptr_t value, RelocInfo::Mode rmode)
120 : value_(value), rmode_(rmode) {}
121
122 intptr_t value() const { return value_; }
123 RelocInfo::Mode rmode() const { return rmode_; }
124
125 private:
126 intptr_t value_;
127 RelocInfo::Mode rmode_;
128 };
129
130 bool operator==(RelocatablePtrConstantInfo const& lhs,
131 RelocatablePtrConstantInfo const& rhs);
132 bool operator!=(RelocatablePtrConstantInfo const& lhs,
133 RelocatablePtrConstantInfo const& rhs);
134 std::ostream& operator<<(std::ostream&, RelocatablePtrConstantInfo const&);
135 size_t hash_value(RelocatablePtrConstantInfo const& p);
136 117
137 // Interface for building common operators that can be used at any level of IR, 118 // Interface for building common operators that can be used at any level of IR,
138 // including JavaScript, mid-level, and low-level. 119 // including JavaScript, mid-level, and low-level.
139 class CommonOperatorBuilder final : public ZoneObject { 120 class CommonOperatorBuilder final : public ZoneObject {
140 public: 121 public:
141 explicit CommonOperatorBuilder(Zone* zone); 122 explicit CommonOperatorBuilder(Zone* zone);
142 123
143 const Operator* Dead(); 124 const Operator* Dead();
144 const Operator* End(size_t control_input_count); 125 const Operator* End(size_t control_input_count);
145 const Operator* Branch(BranchHint = BranchHint::kNone); 126 const Operator* Branch(BranchHint = BranchHint::kNone);
(...skipping 21 matching lines...) Expand all
167 const Operator* OsrValue(int index); 148 const Operator* OsrValue(int index);
168 149
169 const Operator* Int32Constant(int32_t); 150 const Operator* Int32Constant(int32_t);
170 const Operator* Int64Constant(int64_t); 151 const Operator* Int64Constant(int64_t);
171 const Operator* Float32Constant(volatile float); 152 const Operator* Float32Constant(volatile float);
172 const Operator* Float64Constant(volatile double); 153 const Operator* Float64Constant(volatile double);
173 const Operator* ExternalConstant(const ExternalReference&); 154 const Operator* ExternalConstant(const ExternalReference&);
174 const Operator* NumberConstant(volatile double); 155 const Operator* NumberConstant(volatile double);
175 const Operator* HeapConstant(const Handle<HeapObject>&); 156 const Operator* HeapConstant(const Handle<HeapObject>&);
176 157
177 const Operator* RelocatableInt32Constant(int32_t value,
178 RelocInfo::Mode rmode);
179 const Operator* RelocatableInt64Constant(int64_t value,
180 RelocInfo::Mode rmode);
181
182 const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); 158 const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone);
183 const Operator* Phi(MachineRepresentation representation, 159 const Operator* Phi(MachineRepresentation representation,
184 int value_input_count); 160 int value_input_count);
185 const Operator* EffectPhi(int effect_input_count); 161 const Operator* EffectPhi(int effect_input_count);
186 const Operator* EffectSet(int arguments); 162 const Operator* EffectSet(int arguments);
187 const Operator* Guard(Type* type); 163 const Operator* Guard(Type* type);
188 const Operator* BeginRegion(); 164 const Operator* BeginRegion();
189 const Operator* FinishRegion(); 165 const Operator* FinishRegion();
190 const Operator* StateValues(int arguments); 166 const Operator* StateValues(int arguments);
191 const Operator* ObjectState(int pointer_slots, int id); 167 const Operator* ObjectState(int pointer_slots, int id);
(...skipping 21 matching lines...) Expand all
213 Zone* const zone_; 189 Zone* const zone_;
214 190
215 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 191 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
216 }; 192 };
217 193
218 } // namespace compiler 194 } // namespace compiler
219 } // namespace internal 195 } // namespace internal
220 } // namespace v8 196 } // namespace v8
221 197
222 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 198 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/common-node-cache.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698