diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-01-19 15:45:36 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-01-19 15:45:36 -0800 |
commit | e60d653a58a568017d6f69aeaed2e3a765a98104 (patch) | |
tree | 817723cbba19468ad6f3a4ab7c48b3513c2078e9 /deps/v8/src/regexp-delay.js | |
parent | bfd31448617dc4d66f6de5ced7c260562e01349f (diff) | |
download | node-new-e60d653a58a568017d6f69aeaed2e3a765a98104.tar.gz |
Upgrade V8 to 2.0.6.1
Diffstat (limited to 'deps/v8/src/regexp-delay.js')
-rw-r--r-- | deps/v8/src/regexp-delay.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/deps/v8/src/regexp-delay.js b/deps/v8/src/regexp-delay.js index 14c3644573..7bec455d37 100644 --- a/deps/v8/src/regexp-delay.js +++ b/deps/v8/src/regexp-delay.js @@ -136,13 +136,7 @@ function CompileRegExp(pattern, flags) { function DoRegExpExec(regexp, string, index) { - return %RegExpExec(regexp, string, index, lastMatchInfo); -} - - -function DoRegExpExecGlobal(regexp, string) { - // Returns an array of arrays of substring indices. - return %RegExpExecGlobal(regexp, string, lastMatchInfo); + return %_RegExpExec(regexp, string, index, lastMatchInfo); } @@ -170,7 +164,7 @@ function RegExpExec(string) { %_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [this, s, lastIndex]); // matchIndices is either null or the lastMatchInfo array. - var matchIndices = %RegExpExec(this, s, i, lastMatchInfo); + var matchIndices = %_RegExpExec(this, s, i, lastMatchInfo); if (matchIndices == null) { if (this.global) this.lastIndex = 0; @@ -227,7 +221,7 @@ function RegExpTest(string) { %_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [this, s, lastIndex]); // matchIndices is either null or the lastMatchInfo array. - var matchIndices = %RegExpExec(this, s, i, lastMatchInfo); + var matchIndices = %_RegExpExec(this, s, i, lastMatchInfo); if (matchIndices == null) { if (this.global) this.lastIndex = 0; |