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

Side by Side Diff: src/js/harmony-regexp-exec.js

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 6 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/js/collection.js ('k') | src/js/harmony-species.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 2012 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 (function(global, utils) {
6
7 %CheckIsBootstrapping();
8
9 // -------------------------------------------------------------------
10 // Imports
11
12 var GlobalRegExp = global.RegExp;
13 var RegExpSubclassExecJS = utils.ImportNow("RegExpSubclassExecJS");
14 var RegExpSubclassMatch = utils.ImportNow("RegExpSubclassMatch");
15 var RegExpSubclassReplace = utils.ImportNow("RegExpSubclassReplace");
16 var RegExpSubclassSearch = utils.ImportNow("RegExpSubclassSearch");
17 var RegExpSubclassSplit = utils.ImportNow("RegExpSubclassSplit");
18 var RegExpSubclassTest = utils.ImportNow("RegExpSubclassTest");
19 var matchSymbol = utils.ImportNow("match_symbol");
20 var replaceSymbol = utils.ImportNow("replace_symbol");
21 var searchSymbol = utils.ImportNow("search_symbol");
22 var splitSymbol = utils.ImportNow("split_symbol");
23
24 utils.OverrideFunction(GlobalRegExp.prototype, "exec",
25 RegExpSubclassExecJS, true);
26 utils.OverrideFunction(GlobalRegExp.prototype, matchSymbol,
27 RegExpSubclassMatch, true);
28 utils.OverrideFunction(GlobalRegExp.prototype, replaceSymbol,
29 RegExpSubclassReplace, true);
30 utils.OverrideFunction(GlobalRegExp.prototype, searchSymbol,
31 RegExpSubclassSearch, true);
32 utils.OverrideFunction(GlobalRegExp.prototype, splitSymbol,
33 RegExpSubclassSplit, true);
34 utils.OverrideFunction(GlobalRegExp.prototype, "test",
35 RegExpSubclassTest, true);
36
37 })
OLDNEW
« no previous file with comments | « src/js/collection.js ('k') | src/js/harmony-species.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698