[turbofan] Support inline receiver allocation for class constructors.
There's actually no need to restrict the inline allocation of receivers for class constructors anymore; the relevant issues were addressed in the compiler and runtime several weeks ago. R=yangguo@chromium.org Review URL: https://codereview.chromium.org/1532453004 . Cr-Commit-Position: refs/heads/master@{#32925}
This commit is contained in:
parent
e0a3ff0f5c
commit
d0cfc9bfb8
@ -1411,8 +1411,9 @@ const int kMaxInlineInstanceSize = 64 * kPointerSize;
|
||||
|
||||
// Checks whether allocation using the given constructor can be inlined.
|
||||
bool IsAllocationInlineable(Handle<JSFunction> constructor) {
|
||||
// TODO(bmeurer): Support inlining of class constructors.
|
||||
if (IsClassConstructor(constructor->shared()->kind())) return false;
|
||||
// TODO(bmeurer): Further relax restrictions on inlining, i.e.
|
||||
// instance type and maybe instance size (inobject properties
|
||||
// are limited anyways by the runtime).
|
||||
return constructor->has_initial_map() &&
|
||||
constructor->initial_map()->instance_type() == JS_OBJECT_TYPE &&
|
||||
constructor->initial_map()->instance_size() < kMaxInlineInstanceSize;
|
||||
|
Loading…
Reference in New Issue
Block a user