| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 65b1d35650930035c1f1c3b6ecc905537941e159..878ae1588e009c81466ea5f05b137274fa198b5d 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -7951,6 +7951,20 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewStrictArgumentsFast) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_NewClosureFromStubFailure) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0);
|
| + Handle<Context> context(isolate->context());
|
| + PretenureFlag pretenure_flag = NOT_TENURED;
|
| + Handle<JSFunction> result =
|
| + isolate->factory()->NewFunctionFromSharedFunctionInfo(shared,
|
| + context,
|
| + pretenure_flag);
|
| + return *result;
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_NewClosure) {
|
| HandleScope scope(isolate);
|
| ASSERT(args.length() == 3);
|
|
|