Lines Matching defs:constructor
16 #include "src/builtins/builtins-constructor.h"
1453 // The derived constructor case is handled in VisitCallSuper.
2568 // evaluation. This will be stored in the instance later in the constructor.
2647 VisitFunctionLiteral(expr->constructor());
2931 void BytecodeGenerator::BuildInstanceMemberInitialization(Register constructor,
2940 ->LoadClassFieldsInitializer(constructor, feedback_index(slot))
2942 // constructor and derived constructor. This is only required
5162 // the class constructor.
5223 // Load the class constructor.
5231 // TODO(joyee): get a reference to the class constructor through
5600 // %reflect_construct(constructor, [1, ...x, 2], new_target)
5606 // Prepare the constructor to the super call.
5608 Register constructor = register_allocator()->NewRegister();
5611 .GetSuperConstructor(constructor);
5617 // Check if the constructor is in fact a constructor.
5618 builder()->ThrowIfNotSuperConstructor(constructor);
5623 builder()->MoveRegister(constructor, construct_args[0]);
5630 // Check if the constructor is in fact a constructor.
5631 builder()->ThrowIfNotSuperConstructor(constructor);
5641 builder()->ConstructWithSpread(constructor, args_regs,
5646 // TODO(turbofan): For now we do gather feedback on super constructor
5649 // is not an ideal solution for super constructor calls, but it gets
5652 builder()->Construct(constructor, args_regs, feedback_slot_index);
5656 // Explicit calls to the super constructor using super() perform an
5669 // The constructor scope always needs ScopeInfo, so we are certain that
5670 // the first constructor scope found in the outer scope chain is the
5672 // Note that this doesn't necessarily mean that the constructor needs
5678 // constructor needs private brand initialization, and if that's
5690 // The derived constructor has the correct bit set always, so we
5711 // Load the constructor. It's in the first register in args for ease of
5738 Register constructor = args.first_register();
5743 // constructor for CallNew.
5745 builder()->LoadAccumulatorWithRegister(constructor);
5749 builder()->ConstructWithSpread(constructor, args, feedback_slot_index);
5752 builder()->Construct(constructor, args, feedback_slot_index);