| 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 $regexpLastMatchInfoOverride; | 5 var $regexpLastMatchInfoOverride; | 
| 6 var harmony_regexps = false; | 6 var harmony_regexps = false; | 
| 7 var harmony_unicode_regexps = false; | 7 var harmony_unicode_regexps = false; | 
| 8 | 8 | 
| 9 (function(global, utils) { | 9 (function(global, utils) { | 
| 10 | 10 | 
| 11 %CheckIsBootstrapping(); | 11 %CheckIsBootstrapping(); | 
| 12 | 12 | 
| 13 // ------------------------------------------------------------------- | 13 // ------------------------------------------------------------------- | 
| 14 // Imports | 14 // Imports | 
| 15 | 15 | 
| 16 var GlobalRegExp = global.RegExp; | 16 var GlobalRegExp = global.RegExp; | 
| 17 var InternalPackedArray = utils.InternalPackedArray; | 17 var InternalPackedArray = utils.InternalPackedArray; | 
|  | 18 var ToNumber; | 
| 18 | 19 | 
| 19 utils.Import(function(from) { | 20 utils.Import(function(from) { | 
| 20   ToNumber = from.ToNumber; | 21   ToNumber = from.ToNumber; | 
| 21 }); | 22 }); | 
| 22 | 23 | 
| 23 // ------------------------------------------------------------------- | 24 // ------------------------------------------------------------------- | 
| 24 | 25 | 
| 25 // Property of the builtins object for recording the result of the last | 26 // Property of the builtins object for recording the result of the last | 
| 26 // regexp match.  The property RegExpLastMatchInfo includes the matchIndices | 27 // regexp match.  The property RegExpLastMatchInfo includes the matchIndices | 
| 27 // array of the last successful regexp match (an array of start/end index | 28 // array of the last successful regexp match (an array of start/end index | 
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 448 // Exports | 449 // Exports | 
| 449 | 450 | 
| 450 utils.Export(function(to) { | 451 utils.Export(function(to) { | 
| 451   to.RegExpExec = DoRegExpExec; | 452   to.RegExpExec = DoRegExpExec; | 
| 452   to.RegExpExecNoTests = RegExpExecNoTests; | 453   to.RegExpExecNoTests = RegExpExecNoTests; | 
| 453   to.RegExpLastMatchInfo = RegExpLastMatchInfo; | 454   to.RegExpLastMatchInfo = RegExpLastMatchInfo; | 
| 454   to.RegExpTest = RegExpTest; | 455   to.RegExpTest = RegExpTest; | 
| 455 }); | 456 }); | 
| 456 | 457 | 
| 457 }) | 458 }) | 
| OLD | NEW | 
|---|