• Mike Stanton's avatar
    [Torque] Support JavaScript builtins with fixed args · 93df7ff0
    Mike Stanton authored
    To implement builtin continuations called from the deoptimizer,
    we need to better support writing builtins declared with javascript
    binding in Torque. This CL adds fixed number of argument support.
    So you can declare in Torque, something like:
    
    builtin javascript Foo(context: Context, receiver: Object, bar: Object):
      Object {
      ...
    }
    
    Formerly, this would give you an error because we only supported
    javascript bindings with a varargs array.
    
    Bug: v8:7672
    Change-Id: I5b5b25bdbbd5e054049c39dd2f1a4c606472dcd5
    Reviewed-on: https://chromium-review.googlesource.com/1018941
    Commit-Queue: Michael Stanton <mvstanton@chromium.org>
    Reviewed-by: 's avatarDaniel Clifford <danno@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#52704}
    93df7ff0
implementation-visitor.cc 48.1 KB