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/compiler/common-operator.h

Issue 2388303006: Reland of "[turbofan] Osr value typing + dynamic type checks on entry. (patchset #5 id:80001 of htt… (Closed)
Patch Set: Tweaks Created 4 years, 2 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/bytecode-graph-builder.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" 8 #include "src/assembler.h"
9 #include "src/compiler/frame-states.h" 9 #include "src/compiler/frame-states.h"
10 #include "src/deoptimize-reason.h" 10 #include "src/deoptimize-reason.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 std::ostream& operator<<(std::ostream&, RegionObservability); 165 std::ostream& operator<<(std::ostream&, RegionObservability);
166 166
167 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT; 167 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT;
168 168
169 std::ostream& operator<<(std::ostream& os, 169 std::ostream& operator<<(std::ostream& os,
170 const ZoneVector<MachineType>* types); 170 const ZoneVector<MachineType>* types);
171 171
172 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT; 172 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT;
173 173
174 int OsrValueIndexOf(Operator const*);
175
176 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny };
177 size_t hash_value(OsrGuardType type);
178 std::ostream& operator<<(std::ostream&, OsrGuardType);
179 OsrGuardType OsrGuardTypeOf(Operator const*);
180
174 // Interface for building common operators that can be used at any level of IR, 181 // Interface for building common operators that can be used at any level of IR,
175 // including JavaScript, mid-level, and low-level. 182 // including JavaScript, mid-level, and low-level.
176 class CommonOperatorBuilder final : public ZoneObject { 183 class CommonOperatorBuilder final : public ZoneObject {
177 public: 184 public:
178 explicit CommonOperatorBuilder(Zone* zone); 185 explicit CommonOperatorBuilder(Zone* zone);
179 186
180 const Operator* Dead(); 187 const Operator* Dead();
181 const Operator* End(size_t control_input_count); 188 const Operator* End(size_t control_input_count);
182 const Operator* Branch(BranchHint = BranchHint::kNone); 189 const Operator* Branch(BranchHint = BranchHint::kNone);
183 const Operator* IfTrue(); 190 const Operator* IfTrue();
(...skipping 11 matching lines...) Expand all
195 const Operator* Terminate(); 202 const Operator* Terminate();
196 203
197 const Operator* Start(int value_output_count); 204 const Operator* Start(int value_output_count);
198 const Operator* Loop(int control_input_count); 205 const Operator* Loop(int control_input_count);
199 const Operator* Merge(int control_input_count); 206 const Operator* Merge(int control_input_count);
200 const Operator* Parameter(int index, const char* debug_name = nullptr); 207 const Operator* Parameter(int index, const char* debug_name = nullptr);
201 208
202 const Operator* OsrNormalEntry(); 209 const Operator* OsrNormalEntry();
203 const Operator* OsrLoopEntry(); 210 const Operator* OsrLoopEntry();
204 const Operator* OsrValue(int index); 211 const Operator* OsrValue(int index);
212 const Operator* OsrGuard(OsrGuardType type);
205 213
206 const Operator* Int32Constant(int32_t); 214 const Operator* Int32Constant(int32_t);
207 const Operator* Int64Constant(int64_t); 215 const Operator* Int64Constant(int64_t);
208 const Operator* Float32Constant(volatile float); 216 const Operator* Float32Constant(volatile float);
209 const Operator* Float64Constant(volatile double); 217 const Operator* Float64Constant(volatile double);
210 const Operator* ExternalConstant(const ExternalReference&); 218 const Operator* ExternalConstant(const ExternalReference&);
211 const Operator* NumberConstant(volatile double); 219 const Operator* NumberConstant(volatile double);
212 const Operator* HeapConstant(const Handle<HeapObject>&); 220 const Operator* HeapConstant(const Handle<HeapObject>&);
213 221
214 const Operator* RelocatableInt32Constant(int32_t value, 222 const Operator* RelocatableInt32Constant(int32_t value,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 Zone* const zone_; 263 Zone* const zone_;
256 264
257 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 265 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
258 }; 266 };
259 267
260 } // namespace compiler 268 } // namespace compiler
261 } // namespace internal 269 } // namespace internal
262 } // namespace v8 270 } // namespace v8
263 271
264 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 272 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698