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

Side by Side Diff: src/js/regexp.js

Issue 1840723002: String.prototype.{match,search} should do only one RegExp brand check (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « no previous file | src/js/string.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function(global, utils) { 5 (function(global, utils) {
6 6
7 'use strict'; 7 'use strict';
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 utils.InstallGetterSetter(GlobalRegExp, '$' + i, RegExpMakeCaptureGetter(i), 1176 utils.InstallGetterSetter(GlobalRegExp, '$' + i, RegExpMakeCaptureGetter(i),
1177 NoOpSetter, DONT_DELETE); 1177 NoOpSetter, DONT_DELETE);
1178 } 1178 }
1179 %ToFastProperties(GlobalRegExp); 1179 %ToFastProperties(GlobalRegExp);
1180 1180
1181 // ------------------------------------------------------------------- 1181 // -------------------------------------------------------------------
1182 // Exports 1182 // Exports
1183 1183
1184 utils.Export(function(to) { 1184 utils.Export(function(to) {
1185 to.RegExpExec = DoRegExpExec; 1185 to.RegExpExec = DoRegExpExec;
1186 to.RegExpInitialize = RegExpInitialize;
1186 to.RegExpLastMatchInfo = RegExpLastMatchInfo; 1187 to.RegExpLastMatchInfo = RegExpLastMatchInfo;
1187 to.RegExpSubclassExecJS = RegExpSubclassExecJS; 1188 to.RegExpSubclassExecJS = RegExpSubclassExecJS;
1188 to.RegExpSubclassMatch = RegExpSubclassMatch; 1189 to.RegExpSubclassMatch = RegExpSubclassMatch;
1189 to.RegExpSubclassReplace = RegExpSubclassReplace; 1190 to.RegExpSubclassReplace = RegExpSubclassReplace;
1190 to.RegExpSubclassSearch = RegExpSubclassSearch; 1191 to.RegExpSubclassSearch = RegExpSubclassSearch;
1191 to.RegExpSubclassSplit = RegExpSubclassSplit; 1192 to.RegExpSubclassSplit = RegExpSubclassSplit;
1192 to.RegExpSubclassTest = RegExpSubclassTest; 1193 to.RegExpSubclassTest = RegExpSubclassTest;
1193 to.RegExpTest = RegExpTest; 1194 to.RegExpTest = RegExpTest;
1194 to.IsRegExp = IsRegExp; 1195 to.IsRegExp = IsRegExp;
1195 }); 1196 });
1196 1197
1197 }) 1198 })
OLDNEW
« no previous file with comments | « no previous file | src/js/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698