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

Unified Diff: src/builtins/builtins-object-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-number-gen.cc ('k') | src/builtins/builtins-promise-gen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-object-gen.cc
diff --git a/src/builtins/builtins-object-gen.cc b/src/builtins/builtins-object-gen.cc
index 6f03d613e6690c4fd5cf2c85965f80a5f9f16b3a..c76abfdbcf27c1234f109e81246c8b7f13d34065 100644
--- a/src/builtins/builtins-object-gen.cc
+++ b/src/builtins/builtins-object-gen.cc
@@ -208,8 +208,7 @@ TF_BUILTIN(ObjectProtoToString, ObjectBuiltinsAssembler) {
GotoIf(WordEqual(receiver, NullConstant()), &return_null);
- Callable to_object = CodeFactory::ToObject(isolate());
- receiver = CallStub(to_object, context, receiver);
+ receiver = CallBuiltin(Builtins::kToObject, context, receiver);
Node* receiver_instance_type = LoadInstanceType(receiver);
@@ -354,10 +353,7 @@ TF_BUILTIN(ObjectPrototypeValueOf, CodeStubAssembler) {
Node* receiver = Parameter(Descriptor::kReceiver);
Node* context = Parameter(Descriptor::kContext);
- Callable to_object = CodeFactory::ToObject(isolate());
- receiver = CallStub(to_object, context, receiver);
-
- Return(receiver);
+ Return(CallBuiltin(Builtins::kToObject, context, receiver));
}
// ES #sec-object.create
« no previous file with comments | « src/builtins/builtins-number-gen.cc ('k') | src/builtins/builtins-promise-gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698