Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 })(); |
| OLD | NEW |