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

Unified Diff: src/code-factory.cc

Issue 2302923002: [stubs] Port ToName stub to TurboFan. (Closed)
Patch Set: Create ToName helper and inline Interpreter::DoToName Created 4 years, 3 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
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 06bccf23faada7b8aabca37276fcb4bfc9c18900..7fd120dfdcf215fd1b8348504105445e4e779582 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -189,8 +189,8 @@ Callable CodeFactory::ToString(Isolate* isolate) {
// static
Callable CodeFactory::ToName(Isolate* isolate) {
- ToNameStub stub(isolate);
- return make_callable(stub);
+ return Callable(isolate->builtins()->ToName(),
+ TypeConversionDescriptor(isolate));
}
// static

Powered by Google App Engine
This is Rietveld 408576698