Index: src/builtins/builtins-date-gen.cc |
diff --git a/src/builtins/builtins-date-gen.cc b/src/builtins/builtins-date-gen.cc |
index 10bb39f861386f3d3f20b6731be2bc57609e2d35..6b23be9a82fc815045c78e3a90081a0783efb93d 100644 |
--- a/src/builtins/builtins-date-gen.cc |
+++ b/src/builtins/builtins-date-gen.cc |
@@ -204,17 +204,19 @@ TF_BUILTIN(DatePrototypeToPrimitive, CodeStubAssembler) { |
GotoIf(WordEqual(hint, string_string), &hint_is_string); |
// Slow-case with actual string comparisons. |
- Callable string_equal = CodeFactory::StringEqual(isolate()); |
GotoIf(TaggedIsSmi(hint), &hint_is_invalid); |
GotoIfNot(IsString(hint), &hint_is_invalid); |
- GotoIf(WordEqual(CallStub(string_equal, context, hint, number_string), |
- TrueConstant()), |
+ GotoIf(WordEqual( |
+ CallBuiltin(Builtins::kStringEqual, context, hint, number_string), |
+ TrueConstant()), |
&hint_is_number); |
- GotoIf(WordEqual(CallStub(string_equal, context, hint, default_string), |
- TrueConstant()), |
+ GotoIf(WordEqual( |
+ CallBuiltin(Builtins::kStringEqual, context, hint, default_string), |
+ TrueConstant()), |
&hint_is_string); |
- GotoIf(WordEqual(CallStub(string_equal, context, hint, string_string), |
- TrueConstant()), |
+ GotoIf(WordEqual( |
+ CallBuiltin(Builtins::kStringEqual, context, hint, string_string), |
+ TrueConstant()), |
&hint_is_string); |
Goto(&hint_is_invalid); |