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

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

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.h
diff --git a/src/compiler/type-hints.h b/src/compiler/type-hints.h
deleted file mode 100644
index d41b421626777e3caee8dacab822005d97d4d3fd..0000000000000000000000000000000000000000
--- a/src/compiler/type-hints.h
+++ /dev/null
@@ -1,74 +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.
-
-#ifndef V8_COMPILER_TYPE_HINTS_H_
-#define V8_COMPILER_TYPE_HINTS_H_
-
-#include "src/base/flags.h"
-#include "src/utils.h"
-
-namespace v8 {
-namespace internal {
-namespace compiler {
-
-// Type hints for an binary operation.
-enum class BinaryOperationHint : uint8_t {
- kNone,
- kSignedSmall,
- kSigned32,
- kNumberOrOddball,
- kString,
- kAny
-};
-
-inline size_t hash_value(BinaryOperationHint hint) {
- return static_cast<unsigned>(hint);
-}
-
-std::ostream& operator<<(std::ostream&, BinaryOperationHint);
-
-// Type hints for an compare operation.
-enum class CompareOperationHint : uint8_t {
- kNone,
- kSignedSmall,
- kNumber,
- kNumberOrOddball,
- kAny
-};
-
-inline size_t hash_value(CompareOperationHint hint) {
- return static_cast<unsigned>(hint);
-}
-
-std::ostream& operator<<(std::ostream&, CompareOperationHint);
-
-// Type hints for the ToBoolean type conversion.
-enum class ToBooleanHint : uint16_t {
- kNone = 0u,
- kUndefined = 1u << 0,
- kBoolean = 1u << 1,
- kNull = 1u << 2,
- kSmallInteger = 1u << 3,
- kReceiver = 1u << 4,
- kString = 1u << 5,
- kSymbol = 1u << 6,
- kHeapNumber = 1u << 7,
- kSimdValue = 1u << 8,
- kAny = kUndefined | kBoolean | kNull | kSmallInteger | kReceiver | kString |
- kSymbol | kHeapNumber | kSimdValue
-};
-
-std::ostream& operator<<(std::ostream&, ToBooleanHint);
-
-typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints;
-
-std::ostream& operator<<(std::ostream&, ToBooleanHints);
-
-DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints)
-
-} // namespace compiler
-} // namespace internal
-} // namespace v8
-
-#endif // V8_COMPILER_TYPE_HINTS_H_

Powered by Google App Engine
This is Rietveld 408576698