Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: test/mjsunit/regress/regress-6210.js

Issue 2808023002: [regexp] Ensure there are no shape changes on the fast path (Closed)
Patch Set: Rebase and backmerge second part Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/regexp/regexp-utils.cc ('k') | test/mjsunit/regress/regress-708247.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --predictable
6
7 const str = '2016-01-02';
8
9 function testToUint32InSplit() {
10 var re;
11 function toDictMode() {
12 re.x = 42;
13 delete re.x;
14 return "def";
15 }
16
17 re = /./g; // Needs to be global to trigger lastIndex accesses.
18 return re[Symbol.replace]("abc", { valueOf: toDictMode });
19 }
20
21 function testToStringInReplace() {
22 var re;
23 function toDictMode() {
24 re.x = 42;
25 delete re.x;
26 return 42;
27 }
28
29 re = /./g; // Needs to be global to trigger lastIndex accesses.
30 return re[Symbol.split]("abc", { valueOf: toDictMode });
31 }
32
33 testToUint32InSplit();
34 testToStringInReplace();
OLDNEW
« no previous file with comments | « src/regexp/regexp-utils.cc ('k') | test/mjsunit/regress/regress-708247.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698