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

Unified Diff: src/builtins/builtins-date-gen.cc

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 7 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
« no previous file with comments | « src/builtins/builtins-async-iterator-gen.cc ('k') | src/builtins/builtins-iterator-gen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/builtins/builtins-async-iterator-gen.cc ('k') | src/builtins/builtins-iterator-gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698