Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 65b1d35650930035c1f1c3b6ecc905537941e159..53bf14f48deb90990675bf810e51c9f5cc06885f 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7951,6 +7951,23 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewStrictArgumentsFast) { |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_NewClosureBailout) { |
+ HandleScope scope(isolate); |
+ ASSERT(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); |
+ Handle<Context> context(isolate->context()); |
+ |
+ // The caller ensures that we pretenure closures that are assigned |
+ // directly to properties. |
Michael Starzinger
2013/08/27 08:12:51
nit: Comment does not apply, lets just drop it.
mvstanton
2013/08/27 09:23:04
Done.
|
+ 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); |