Index: test/cctest/interpreter/test-interpreter.cc |
diff --git a/test/cctest/interpreter/test-interpreter.cc b/test/cctest/interpreter/test-interpreter.cc |
index 135e20fcb3329259f391807d2e8aad3987a407f8..dc17cf0f8d9d56a0fae568660a157c68dd7c60a0 100644 |
--- a/test/cctest/interpreter/test-interpreter.cc |
+++ b/test/cctest/interpreter/test-interpreter.cc |
@@ -1798,9 +1798,9 @@ TEST(InterpreterStringComparisons) { |
BytecodeArrayBuilder builder(isolate, handles.main_zone(), 0, 0, 1); |
Register r0(0); |
- builder.LoadLiteral(factory->NewStringFromAsciiChecked(lhs)) |
+ builder.LoadLiteral(factory->InternalizeUtf8String(lhs)) |
.StoreAccumulatorInRegister(r0) |
- .LoadLiteral(factory->NewStringFromAsciiChecked(rhs)) |
+ .LoadLiteral(factory->InternalizeUtf8String(rhs)) |
.CompareOperation(comparison, r0, vector->GetIndex(slot)) |
.Return(); |
@@ -1813,8 +1813,11 @@ TEST(InterpreterStringComparisons) { |
CompareC(comparison, inputs[i], inputs[j])); |
Object* feedback = vector->Get(slot); |
CHECK(feedback->IsSmi()); |
- CHECK_EQ(CompareOperationFeedback::kString, |
- static_cast<Smi*>(feedback)->value()); |
+ int const expected_feedback = |
+ Token::IsOrderedRelationalCompareOp(comparison) |
+ ? CompareOperationFeedback::kString |
+ : CompareOperationFeedback::kInternalizedString; |
+ CHECK_EQ(expected_feedback, static_cast<Smi*>(feedback)->value()); |
} |
} |
} |