Index: src/builtins/builtins-constructor.h |
diff --git a/src/builtins/builtins-constructor.h b/src/builtins/builtins-constructor.h |
index 3fddb54ceaceb50936f5e872f75abd826f4a98f8..b58522eb82f225084e9f9e96195035570acb606b 100644 |
--- a/src/builtins/builtins-constructor.h |
+++ b/src/builtins/builtins-constructor.h |
@@ -16,6 +16,18 @@ class ConstructorBuiltinsAssembler : public CodeStubAssembler { |
: CodeStubAssembler(state) {} |
Node* EmitFastNewClosure(Node* shared_info, Node* context); |
+ Node* EmitFastNewFunctionContext(Node* closure, Node* slots, Node* context, |
+ ScopeType scope_type); |
+ static int MaximumFunctionContextSlots(); |
+ |
+ private: |
+ static const int kMaximumSlots = 0x8000; |
+ static const int kSmallMaximumSlots = 10; |
+ |
+ // FastNewFunctionContext can only allocate closures which fit in the |
+ // new space. |
+ STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize + |
+ FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize); |
}; |
} // namespace internal |