Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 27f31aa81c38d550ce009f13cc8e1e50e2066efc..b1fa64e5f4836681b585eaacdb4beb166b9c8279 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -5088,9 +5088,7 @@ compiler::Node* ForInFilterStub::Generate(CodeStubAssembler* assembler, |
assembler->Bind(&return_to_name); |
{ |
- // TODO(cbruni): inline ToName here. |
- Callable callable = CodeFactory::ToName(assembler->isolate()); |
- var_result.Bind(assembler->CallStub(callable, context, key)); |
+ var_result.Bind(assembler->ToName(context, key)); |
assembler->Goto(&end); |
} |