5 #ifndef V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_ 6 #define V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_ 8 #include "src/contexts.h" 9 #include "src/objects.h" 10 #include "src/objects/dictionary.h" 11 #include "src/objects/js-array.h" 18 static int MaximumFunctionContextSlots() {
19 return FLAG_test_small_max_function_context_stub_size ? kSmallMaximumSlots
25 static const int kMaximumClonedShallowArrayElements =
26 JSArray::kInitialMaxFastElementArray;
30 static const int kMaximumClonedShallowObjectProperties =
31 NameDictionary::kMaxRegularCapacity / 3 * 2;
34 static const int kMaximumSlots =
35 (kMaxRegularHeapObjectSize - Context::kTodoHeaderSize) / kTaggedSize - 1;
36 static const int kSmallMaximumSlots = 10;
40 STATIC_ASSERT(Context::SizeFor(kMaximumSlots + Context::MIN_CONTEXT_SLOTS) <
41 kMaxRegularHeapObjectSize);
47 #endif // V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_