Index: src/builtins/builtins-conversion.cc |
diff --git a/src/builtins/builtins-conversion.cc b/src/builtins/builtins-conversion.cc |
index 625ad87f7623a293d36b71ed1b518578691688cb..1797b2ece84944ec4053fa334f0d8c7a1fea209a 100644 |
--- a/src/builtins/builtins-conversion.cc |
+++ b/src/builtins/builtins-conversion.cc |
@@ -119,6 +119,16 @@ void Builtins::Generate_StringToNumber(CodeStubAssembler* assembler) { |
assembler->Return(assembler->StringToNumber(context, input)); |
} |
+void Builtins::Generate_ToName(CodeStubAssembler* assembler) { |
+ typedef compiler::Node Node; |
+ typedef TypeConversionDescriptor Descriptor; |
+ |
+ Node* input = assembler->Parameter(Descriptor::kArgument); |
+ Node* context = assembler->Parameter(Descriptor::kContext); |
+ |
+ assembler->Return(assembler->ToName(context, input)); |
+} |
+ |
// ES6 section 7.1.3 ToNumber ( argument ) |
void Builtins::Generate_NonNumberToNumber(CodeStubAssembler* assembler) { |
typedef CodeStubAssembler::Label Label; |