| Index: src/compiler/type-hint-analyzer.cc
|
| diff --git a/src/compiler/type-hint-analyzer.cc b/src/compiler/type-hint-analyzer.cc
|
| index 2df2b280d9f01a2c5fb99f2a6c9e3601dc42ef28..a668a48ad8fcf44c800fa3dbb7f0a958e04a03a3 100644
|
| --- a/src/compiler/type-hint-analyzer.cc
|
| +++ b/src/compiler/type-hint-analyzer.cc
|
| @@ -6,8 +6,8 @@
|
|
|
| #include "src/assembler.h"
|
| #include "src/code-stubs.h"
|
| -#include "src/compiler/type-hints.h"
|
| #include "src/ic/ic-state.h"
|
| +#include "src/type-hints.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -136,32 +136,6 @@ TypeHintAnalysis* TypeHintAnalyzer::Analyze(Handle<Code> code) {
|
| return new (zone()) TypeHintAnalysis(infos, zone());
|
| }
|
|
|
| -// Helper function to transform the feedback to BinaryOperationHint.
|
| -BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback) {
|
| - switch (type_feedback) {
|
| - case BinaryOperationFeedback::kSignedSmall:
|
| - return BinaryOperationHint::kSignedSmall;
|
| - case BinaryOperationFeedback::kNumber:
|
| - return BinaryOperationHint::kNumberOrOddball;
|
| - case BinaryOperationFeedback::kAny:
|
| - default:
|
| - return BinaryOperationHint::kAny;
|
| - }
|
| - UNREACHABLE();
|
| - return BinaryOperationHint::kNone;
|
| -}
|
| -
|
| -// Helper function to transform the feedback to CompareOperationHint.
|
| -CompareOperationHint CompareOperationHintFromFeedback(int type_feedback) {
|
| - switch (type_feedback) {
|
| - case CompareOperationFeedback::kSignedSmall:
|
| - return CompareOperationHint::kSignedSmall;
|
| - case CompareOperationFeedback::kNumber:
|
| - return CompareOperationHint::kNumber;
|
| - default:
|
| - return CompareOperationHint::kAny;
|
| - }
|
| -}
|
|
|
| } // namespace compiler
|
| } // namespace internal
|
|
|