// Copyright 2017 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.
// Call RegExp constructor with a cons string.varcons_string=%ConstructConsString("","aaaaaaaaaaaaaa");newRegExp(cons_string);// Same thing but using TF lowering.functionmake_cons_string(s){returns+"aaaaaaaaaaaaaa";}make_cons_string("");%OptimizeFunctionOnNextCall(make_cons_string);varcons_str=make_cons_string("");newRegExp(cons_str);