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

Unified Diff: src/compiler/type-hints.cc

Issue 2342853002: [TypeFeedbackVector] special ic slots for interpreter compare/binary ops. (Closed)
Patch Set: Code comments. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/type-hints.cc
diff --git a/src/compiler/type-hints.cc b/src/compiler/type-hints.cc
deleted file mode 100644
index 32e4486a52b9a859eed81978217384fdd2d553ab..0000000000000000000000000000000000000000
--- a/src/compiler/type-hints.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "src/compiler/type-hints.h"
-
-namespace v8 {
-namespace internal {
-namespace compiler {
-
-std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) {
- switch (hint) {
- case BinaryOperationHint::kNone:
- return os << "None";
- case BinaryOperationHint::kSignedSmall:
- return os << "SignedSmall";
- case BinaryOperationHint::kSigned32:
- return os << "Signed32";
- case BinaryOperationHint::kNumberOrOddball:
- return os << "NumberOrOddball";
- case BinaryOperationHint::kString:
- return os << "String";
- case BinaryOperationHint::kAny:
- return os << "Any";
- }
- UNREACHABLE();
- return os;
-}
-
-std::ostream& operator<<(std::ostream& os, CompareOperationHint hint) {
- switch (hint) {
- case CompareOperationHint::kNone:
- return os << "None";
- case CompareOperationHint::kSignedSmall:
- return os << "SignedSmall";
- case CompareOperationHint::kNumber:
- return os << "Number";
- case CompareOperationHint::kNumberOrOddball:
- return os << "NumberOrOddball";
- case CompareOperationHint::kAny:
- return os << "Any";
- }
- UNREACHABLE();
- return os;
-}
-
-std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) {
- switch (hint) {
- case ToBooleanHint::kNone:
- return os << "None";
- case ToBooleanHint::kUndefined:
- return os << "Undefined";
- case ToBooleanHint::kBoolean:
- return os << "Boolean";
- case ToBooleanHint::kNull:
- return os << "Null";
- case ToBooleanHint::kSmallInteger:
- return os << "SmallInteger";
- case ToBooleanHint::kReceiver:
- return os << "Receiver";
- case ToBooleanHint::kString:
- return os << "String";
- case ToBooleanHint::kSymbol:
- return os << "Symbol";
- case ToBooleanHint::kHeapNumber:
- return os << "HeapNumber";
- case ToBooleanHint::kSimdValue:
- return os << "SimdValue";
- case ToBooleanHint::kAny:
- return os << "Any";
- }
- UNREACHABLE();
- return os;
-}
-
-std::ostream& operator<<(std::ostream& os, ToBooleanHints hints) {
- if (hints == ToBooleanHint::kAny) return os << "Any";
- if (hints == ToBooleanHint::kNone) return os << "None";
- bool first = true;
- for (ToBooleanHints::mask_type i = 0; i < sizeof(i) * 8; ++i) {
- ToBooleanHint const hint = static_cast<ToBooleanHint>(1u << i);
- if (hints & hint) {
- if (!first) os << "|";
- first = false;
- os << hint;
- }
- }
- return os;
-}
-
-} // namespace compiler
-} // namespace internal
-} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698