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

Side by Side Diff: src/regexp.js

Issue 988513003: Switch the order of experimental global initialization and running natives. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 9 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/bootstrapper.cc ('k') | no next file » | 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 var $regexpExec; 5 var $regexpExec;
6 var $regexpExecNoTests; 6 var $regexpExecNoTests;
7 var $regexpLastMatchInfo; 7 var $regexpLastMatchInfo;
8 var $regexpLastMatchInfoOverride; 8 var $regexpLastMatchInfoOverride;
9 var harmony_regexps = false;
arv (Not doing code reviews) 2015/03/12 15:47:30 Why the underscores? JS style is camelCase.
Jakob Kummerow 2015/03/12 16:05:36 DBC: I think this is acceptable, considering preva
10 var harmony_unicode_regexps = false;
9 11
10 (function() { 12 (function() {
11 13
12 %CheckIsBootstrapping(); 14 %CheckIsBootstrapping();
13 15
14 var GlobalRegExp = global.RegExp; 16 var GlobalRegExp = global.RegExp;
15 var GlobalArray = global.Array; 17 var GlobalArray = global.Array;
16 18
17 // Property of the builtins object for recording the result of the last 19 // Property of the builtins object for recording the result of the last
18 // regexp match. The property $regexpLastMatchInfo includes the matchIndices 20 // regexp match. The property $regexpLastMatchInfo includes the matchIndices
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 %DefineAccessorPropertyUnchecked(GlobalRegExp, '$' + i, 437 %DefineAccessorPropertyUnchecked(GlobalRegExp, '$' + i,
436 RegExpMakeCaptureGetter(i), NoOpSetter, 438 RegExpMakeCaptureGetter(i), NoOpSetter,
437 DONT_DELETE); 439 DONT_DELETE);
438 } 440 }
439 %ToFastProperties(GlobalRegExp); 441 %ToFastProperties(GlobalRegExp);
440 442
441 $regexpExecNoTests = RegExpExecNoTests; 443 $regexpExecNoTests = RegExpExecNoTests;
442 $regexpExec = DoRegExpExec; 444 $regexpExec = DoRegExpExec;
443 445
444 })(); 446 })();
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698