v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
builtins-constructor.h
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_
6#define V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_
7
11#include "src/objects/objects.h"
12
13namespace v8 {
14namespace internal {
15
17 public:
19 return v8_flags.test_small_max_function_context_stub_size
22 }
23
24 // Maximum number of elements in copied array (chosen so that even an array
25 // backed by a double backing store will fit into new-space).
28 // Maximum number of properties in copied object so that the properties store
29 // will fit into new-space. This constant is based on the assumption that
30 // NameDictionaries are 50% over-allocated.
32 NameDictionary::kMaxRegularCapacity / 3 * 2;
33
34 private:
35 static const int kMaximumSlots =
37 static const int kSmallMaximumSlots = 10;
38
39 // FastNewFunctionContext can only allocate closures which fit in the
40 // new space.
43};
44
45} // namespace internal
46} // namespace v8
47
48#endif // V8_BUILTINS_BUILTINS_CONSTRUCTOR_H_
static const int kMaximumClonedShallowObjectProperties
static V8_INLINE constexpr int SizeFor(int length)
Definition contexts.h:503
static const int kTodoHeaderSize
Definition contexts.h:497
static const int kInitialMaxFastElementArray
Definition js-array.h:144
constexpr int kTaggedSize
Definition globals.h:542
constexpr int kMaxRegularHeapObjectSize
Definition globals.h:680
V8_EXPORT_PRIVATE FlagValues v8_flags