• Lu Yahan's avatar
    [riscv64] Create Instance Type for Class Constructors · 783e1fde
    Lu Yahan authored
    Port: 1cd7a582
    
    Original Commit Message:
    
    Class Constructors are special, because they are callable but [[Call]]
    raises an exception. Instead of checking if a JS function is a class
    constructor for every JS function call, this CL adds a new instance
    type for class constructors.
    This way we can use a fast instance type range check for the common
    case, and only check for class constructors in the uncommon case were
    a class constructor is called and when we need to raise an exception.
    
    Change-Id: I8f11416124a1eefc4ba63423747686bc0b519bb9
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3218711
    Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
    Reviewed-by: 's avatarji qiu <qiuji@iscas.ac.cn>
    Cr-Commit-Position: refs/heads/main@{#77395}
    783e1fde
Name
Last commit
Last update
..
builtins-riscv64.cc Loading commit data...