Index: src/builtins/builtins-object.cc |
diff --git a/src/builtins/builtins-object.cc b/src/builtins/builtins-object.cc |
index 3c5e6aa2a114826a895104b064df56d3392062cc..f7e5f3eee6a3a18d108f0787694fa44d83d42c60 100644 |
--- a/src/builtins/builtins-object.cc |
+++ b/src/builtins/builtins-object.cc |
@@ -1078,5 +1078,17 @@ void Builtins::Generate_OrdinaryHasInstance( |
assembler.Return(assembler.OrdinaryHasInstance(context, constructor, object)); |
} |
+void Builtins::Generate_GetSuperConstructor( |
+ compiler::CodeAssemblerState* state) { |
+ typedef compiler::Node Node; |
+ typedef TypeofDescriptor Descriptor; |
+ CodeStubAssembler assembler(state); |
+ |
+ Node* object = assembler.Parameter(Descriptor::kObject); |
+ Node* context = assembler.Parameter(Descriptor::kContext); |
+ |
+ assembler.Return(assembler.GetSuperConstructor(object, context)); |
+} |
+ |
} // namespace internal |
} // namespace v8 |