Index: src/builtins/builtins-conversion.cc |
diff --git a/src/builtins/builtins-conversion.cc b/src/builtins/builtins-conversion.cc |
index 177b739c4b75348eaeb310a9e46d1f7e50b8d1a0..ec1543a1b700a6cc5365b55b217140c372809d20 100644 |
--- a/src/builtins/builtins-conversion.cc |
+++ b/src/builtins/builtins-conversion.cc |
@@ -474,6 +474,17 @@ void Builtins::Generate_ToObject(compiler::CodeAssemblerState* state) { |
assembler.Return(object); |
} |
+// Deprecated ES5 [[Class]] internal property (used to implement %_ClassOf). |
+void Builtins::Generate_ClassOf(compiler::CodeAssemblerState* state) { |
+ typedef compiler::Node Node; |
+ typedef TypeofDescriptor Descriptor; |
+ CodeStubAssembler assembler(state); |
+ |
+ Node* object = assembler.Parameter(Descriptor::kObject); |
+ |
+ assembler.Return(assembler.ClassOf(object)); |
+} |
+ |
// ES6 section 12.5.5 typeof operator |
void Builtins::Generate_Typeof(compiler::CodeAssemblerState* state) { |
typedef compiler::Node Node; |