v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
feedback-source.cc
Go to the documentation of this file.
1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7namespace v8 {
8namespace internal {
9namespace compiler {
10
16
19
24
25bool operator==(FeedbackSource const& lhs, FeedbackSource const& rhs) {
26 return FeedbackSource::Equal()(lhs, rhs);
27}
28
29bool operator!=(FeedbackSource const& lhs, FeedbackSource const& rhs) {
30 return !(lhs == rhs);
31}
32
33std::ostream& operator<<(std::ostream& os, const FeedbackSource& p) {
34 if (p.IsValid()) {
35 return os << "FeedbackSource(" << p.slot << ")";
36 }
37 return os << "FeedbackSource(INVALID)";
38}
39
40} // namespace compiler
41} // namespace internal
42} // namespace v8
bool IsInvalid() const
Definition utils.h:649
static int GetIndex(FeedbackSlot slot)
std::vector< T > vector_
Definition sweeper.cc:212
bool operator!=(DeoptimizeParameters lhs, DeoptimizeParameters rhs)
bool operator==(const BranchParameters &lhs, const BranchParameters &rhs)
std::ostream & operator<<(std::ostream &os, AccessMode access_mode)
#define CHECK(condition)
Definition logging.h:124
#define DCHECK(condition)
Definition logging.h:482