Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index ea7ab8e1ff2fa228cb1bbf8b0679b94d9d5838ba..a40977fcc84ab6cf0829511146470f055208e3ce 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -17,7 +17,6 @@ |
#include "src/compiler/node-properties.h" |
#include "src/compiler/operator-properties.h" |
#include "src/compiler/state-values-utils.h" |
-#include "src/compiler/type-hint-analyzer.h" |
namespace v8 { |
namespace internal { |
@@ -413,8 +412,7 @@ class AstGraphBuilder::ControlScopeForFinally : public ControlScope { |
AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info, |
JSGraph* jsgraph, float invocation_frequency, |
- LoopAssignmentAnalysis* loop, |
- TypeHintAnalysis* type_hint_analysis) |
+ LoopAssignmentAnalysis* loop) |
: isolate_(info->isolate()), |
local_zone_(local_zone), |
info_(info), |
@@ -430,7 +428,6 @@ AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info, |
input_buffer_(nullptr), |
exit_controls_(local_zone), |
loop_assignment_analysis_(loop), |
- type_hint_analysis_(type_hint_analysis), |
state_values_cache_(jsgraph), |
liveness_analyzer_(static_cast<size_t>(info->scope()->num_stack_slots()), |
false, local_zone), |
@@ -1279,13 +1276,7 @@ void AstGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) { |
Node* label = environment()->Pop(); |
Node* tag = environment()->Top(); |
- CompareOperationHint hint; |
- if (!type_hint_analysis_ || |
- !type_hint_analysis_->GetCompareOperationHint(clause->CompareId(), |
- &hint)) { |
- hint = CompareOperationHint::kAny; |
- } |
- |
+ CompareOperationHint hint = CompareOperationHint::kAny; |
const Operator* op = javascript()->StrictEqual(hint); |
Node* condition = NewNode(op, tag, label); |
compare_switch.BeginLabel(i, condition); |
@@ -2805,13 +2796,7 @@ void AstGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
return VisitLiteralCompareNil(expr, sub_expr, jsgraph()->NullConstant()); |
} |
- CompareOperationHint hint; |
- if (!type_hint_analysis_ || |
- !type_hint_analysis_->GetCompareOperationHint( |
- expr->CompareOperationFeedbackId(), &hint)) { |
- hint = CompareOperationHint::kAny; |
- } |
- |
+ CompareOperationHint hint = CompareOperationHint::kAny; |
const Operator* op; |
switch (expr->op()) { |
case Token::EQ: |
@@ -3680,11 +3665,7 @@ Node* AstGraphBuilder::BuildLoadNativeContextField(int index) { |
Node* AstGraphBuilder::BuildToBoolean(Node* input, TypeFeedbackId feedback_id) { |
if (Node* node = TryFastToBoolean(input)) return node; |
- ToBooleanHints hints; |
- if (!type_hint_analysis_ || |
- !type_hint_analysis_->GetToBooleanHints(feedback_id, &hints)) { |
- hints = ToBooleanHint::kAny; |
- } |
+ ToBooleanHints hints = ToBooleanHint::kAny; |
return NewNode(javascript()->ToBoolean(hints), input); |
} |
@@ -3797,11 +3778,7 @@ Node* AstGraphBuilder::BuildThrow(Node* exception_value) { |
Node* AstGraphBuilder::BuildBinaryOp(Node* left, Node* right, Token::Value op, |
TypeFeedbackId feedback_id) { |
const Operator* js_op; |
- BinaryOperationHint hint; |
- if (!type_hint_analysis_ || |
- !type_hint_analysis_->GetBinaryOperationHint(feedback_id, &hint)) { |
- hint = BinaryOperationHint::kAny; |
- } |
+ BinaryOperationHint hint = BinaryOperationHint::kAny; |
switch (op) { |
case Token::BIT_OR: |
js_op = javascript()->BitwiseOr(hint); |
@@ -4365,10 +4342,9 @@ Node* AstGraphBuilder::MergeValue(Node* value, Node* other, Node* control) { |
AstGraphBuilderWithPositions::AstGraphBuilderWithPositions( |
Zone* local_zone, CompilationInfo* info, JSGraph* jsgraph, |
float invocation_frequency, LoopAssignmentAnalysis* loop_assignment, |
- TypeHintAnalysis* type_hint_analysis, SourcePositionTable* source_positions, |
- int inlining_id) |
+ SourcePositionTable* source_positions, int inlining_id) |
: AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, |
- loop_assignment, type_hint_analysis), |
+ loop_assignment), |
source_positions_(source_positions), |
start_position_(info->shared_info()->start_position(), inlining_id) {} |