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

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

Issue 2729163002: [turbofan] compute arguments length in deoptimizer (Closed)
Patch Set: fix comment Created 3 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/compiler/code-generator.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/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/compiler/frame-states.h" 10 #include "src/compiler/frame-states.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; 290 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny };
291 size_t hash_value(OsrGuardType type); 291 size_t hash_value(OsrGuardType type);
292 std::ostream& operator<<(std::ostream&, OsrGuardType); 292 std::ostream& operator<<(std::ostream&, OsrGuardType);
293 OsrGuardType OsrGuardTypeOf(Operator const*); 293 OsrGuardType OsrGuardTypeOf(Operator const*);
294 294
295 SparseInputMask SparseInputMaskOf(Operator const*); 295 SparseInputMask SparseInputMaskOf(Operator const*);
296 296
297 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) 297 ZoneVector<MachineType> const* MachineTypesOf(Operator const*)
298 WARN_UNUSED_RESULT; 298 WARN_UNUSED_RESULT;
299 299
300 // The ArgumentsElementsState can either describe an unmapped arguments backing 300 // The ArgumentsElementsState and ArgumentsLengthState can either describe an
301 // store or the backing store of the rest parameters. IsRestOf(op) is true in 301 // unmapped arguments backing store or the backing store of the rest parameters.
302 // the second case. 302 // IsRestOf(op) is true in the second case.
303 bool IsRestOf(Operator const*); 303 bool IsRestOf(Operator const*);
304 304
305 // Interface for building common operators that can be used at any level of IR, 305 // Interface for building common operators that can be used at any level of IR,
306 // including JavaScript, mid-level, and low-level. 306 // including JavaScript, mid-level, and low-level.
307 class V8_EXPORT_PRIVATE CommonOperatorBuilder final 307 class V8_EXPORT_PRIVATE CommonOperatorBuilder final
308 : public NON_EXPORTED_BASE(ZoneObject) { 308 : public NON_EXPORTED_BASE(ZoneObject) {
309 public: 309 public:
310 explicit CommonOperatorBuilder(Zone* zone); 310 explicit CommonOperatorBuilder(Zone* zone);
311 311
312 const Operator* Dead(); 312 const Operator* Dead();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 const Operator* LoopExit(); 361 const Operator* LoopExit();
362 const Operator* LoopExitValue(); 362 const Operator* LoopExitValue();
363 const Operator* LoopExitEffect(); 363 const Operator* LoopExitEffect();
364 const Operator* Checkpoint(); 364 const Operator* Checkpoint();
365 const Operator* BeginRegion(RegionObservability); 365 const Operator* BeginRegion(RegionObservability);
366 const Operator* FinishRegion(); 366 const Operator* FinishRegion();
367 const Operator* StateValues(int arguments, SparseInputMask bitmask); 367 const Operator* StateValues(int arguments, SparseInputMask bitmask);
368 const Operator* TypedStateValues(const ZoneVector<MachineType>* types, 368 const Operator* TypedStateValues(const ZoneVector<MachineType>* types,
369 SparseInputMask bitmask); 369 SparseInputMask bitmask);
370 const Operator* ArgumentsElementsState(bool is_rest); 370 const Operator* ArgumentsElementsState(bool is_rest);
371 const Operator* ArgumentsLengthState(bool is_rest);
371 const Operator* ObjectState(int pointer_slots); 372 const Operator* ObjectState(int pointer_slots);
372 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); 373 const Operator* TypedObjectState(const ZoneVector<MachineType>* types);
373 const Operator* FrameState(BailoutId bailout_id, 374 const Operator* FrameState(BailoutId bailout_id,
374 OutputFrameStateCombine state_combine, 375 OutputFrameStateCombine state_combine,
375 const FrameStateFunctionInfo* function_info); 376 const FrameStateFunctionInfo* function_info);
376 const Operator* Call(const CallDescriptor* descriptor); 377 const Operator* Call(const CallDescriptor* descriptor);
377 const Operator* TailCall(const CallDescriptor* descriptor); 378 const Operator* TailCall(const CallDescriptor* descriptor);
378 const Operator* Projection(size_t index); 379 const Operator* Projection(size_t index);
379 const Operator* Retain(); 380 const Operator* Retain();
380 const Operator* TypeGuard(Type* type); 381 const Operator* TypeGuard(Type* type);
(...skipping 14 matching lines...) Expand all
395 Zone* const zone_; 396 Zone* const zone_;
396 397
397 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 398 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
398 }; 399 };
399 400
400 } // namespace compiler 401 } // namespace compiler
401 } // namespace internal 402 } // namespace internal
402 } // namespace v8 403 } // namespace v8
403 404
404 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 405 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698