| 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 (function(global, utils) { | 5 (function(global, utils) { |
| 6 | 6 |
| 7 %CheckIsBootstrapping(); | 7 %CheckIsBootstrapping(); |
| 8 | 8 |
| 9 // ------------------------------------------------------------------- | 9 // ------------------------------------------------------------------- |
| 10 // Imports | 10 // Imports |
| 11 | 11 |
| 12 var FLAG_harmony_tolength; | 12 var FLAG_harmony_tolength; |
| 13 var GlobalObject = global.Object; | 13 var GlobalObject = global.Object; |
| 14 var GlobalRegExp = global.RegExp; | 14 var GlobalRegExp = global.RegExp; |
| 15 var InternalPackedArray = utils.InternalPackedArray; | 15 var InternalPackedArray = utils.InternalPackedArray; |
| 16 var MakeTypeError; | 16 var MakeTypeError; |
| 17 var regExpFlagsSymbol = utils.ImportNow("regexp_flags_symbol"); | |
| 18 var regExpSourceSymbol = utils.ImportNow("regexp_source_symbol"); | |
| 19 | 17 |
| 20 utils.ImportFromExperimental(function(from) { | 18 utils.ImportFromExperimental(function(from) { |
| 21 FLAG_harmony_tolength = from.FLAG_harmony_tolength; | 19 FLAG_harmony_tolength = from.FLAG_harmony_tolength; |
| 22 }); | 20 }); |
| 23 | 21 |
| 24 utils.Import(function(from) { | 22 utils.Import(function(from) { |
| 25 MakeTypeError = from.MakeTypeError; | 23 MakeTypeError = from.MakeTypeError; |
| 26 }); | 24 }); |
| 27 | 25 |
| 28 // ------------------------------------------------------------------- | 26 // ------------------------------------------------------------------- |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // Exports | 469 // Exports |
| 472 | 470 |
| 473 utils.Export(function(to) { | 471 utils.Export(function(to) { |
| 474 to.RegExpExec = DoRegExpExec; | 472 to.RegExpExec = DoRegExpExec; |
| 475 to.RegExpExecNoTests = RegExpExecNoTests; | 473 to.RegExpExecNoTests = RegExpExecNoTests; |
| 476 to.RegExpLastMatchInfo = RegExpLastMatchInfo; | 474 to.RegExpLastMatchInfo = RegExpLastMatchInfo; |
| 477 to.RegExpTest = RegExpTest; | 475 to.RegExpTest = RegExpTest; |
| 478 }); | 476 }); |
| 479 | 477 |
| 480 }) | 478 }) |
| OLD | NEW |