Index: src/code-factory.cc |
diff --git a/src/code-factory.cc b/src/code-factory.cc |
index be3454994d494ad8bde30b956f721d38caa1c050..acbf515c21d02ef6f20f29d9f1d016eca31d7158 100644 |
--- a/src/code-factory.cc |
+++ b/src/code-factory.cc |
@@ -178,6 +178,13 @@ Callable CodeFactory::ToNumber(Isolate* isolate) { |
// static |
+Callable CodeFactory::ToObject(Isolate* isolate) { |
+ ToObjectStub stub(isolate); |
+ return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
+} |
+ |
+ |
+// static |
Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
PretenureFlag pretenure_flag) { |
StringAddStub stub(isolate, flags, pretenure_flag); |