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

Issue 43075: * Reapply revisions 1383, 1384, 1391, 1398, 1401, 1402,... (Closed)

Created:
11 years, 9 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

* Reapply revisions 1383, 1384, 1391, 1398, 1401, 1402, 1418, and 1419 from bleeding_edge, reverted in 1429. * Fix of $1 accessor on sliced strings. * Fix of lastParen method when last parenthesis did not match. Committed: http://code.google.com/p/v8/source/detail?r=1491

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+812 lines, -436 lines) Patch
M src/factory.h View 1 chunk +14 lines, -6 lines 0 comments Download
M src/factory.cc View 2 chunks +26 lines, -6 lines 0 comments Download
M src/jsregexp.h View 5 chunks +76 lines, -27 lines 2 comments Download
M src/jsregexp.cc View 16 chunks +333 lines, -254 lines 5 comments Download
M src/macros.py View 2 chunks +20 lines, -1 line 0 comments Download
M src/objects.h View 4 chunks +39 lines, -5 lines 0 comments Download
M src/objects.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +13 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/regexp-delay.js View 9 chunks +96 lines, -57 lines 4 comments Download
M src/runtime.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime.cc View 2 chunks +17 lines, -6 lines 0 comments Download
M src/string.js View 17 chunks +89 lines, -68 lines 2 comments Download
M test/mjsunit/regexp-static.js View 1 chunk +11 lines, -0 lines 0 comments Download
A test/mjsunit/regexp-string-methods.js View 1 chunk +51 lines, -0 lines 0 comments Download
M tools/js2c.py View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Erik Corry
11 years, 9 months ago (2009-03-11 13:33:03 UTC) #1
Mads Ager (chromium)
LGTM, thanks for finding and fixing the issues! A couple of nits below. http://codereview.chromium.org/43075/diff/1/16 File ...
11 years, 9 months ago (2009-03-11 13:49:17 UTC) #2
Lasse Reichstein
LGTM http://codereview.chromium.org/43075/diff/1/7 File src/regexp-delay.js (right): http://codereview.chromium.org/43075/diff/1/7#newcode138 Line 138: function DoRegExpExec(regexp, string, index) { Is this ...
11 years, 9 months ago (2009-03-11 13:49:41 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/43075/diff/1/7 File src/regexp-delay.js (right): http://codereview.chromium.org/43075/diff/1/7#newcode138 Line 138: function DoRegExpExec(regexp, string, index) { > Is this ...
11 years, 9 months ago (2009-03-11 13:51:53 UTC) #4
Lasse Reichstein
http://codereview.chromium.org/43075/diff/1/16 File src/jsregexp.cc (right): http://codereview.chromium.org/43075/diff/1/16#newcode740 Line 740: // Unimplemented on ARM, fall through to bytecode. ...
11 years, 9 months ago (2009-03-11 13:54:03 UTC) #5
Erik Corry
11 years, 9 months ago (2009-03-11 14:01:06 UTC) #6
Committed as r1491

http://codereview.chromium.org/43075/diff/1/16
File src/jsregexp.cc (right):

http://codereview.chromium.org/43075/diff/1/16#newcode603
Line 603: matches = Factory::null_value();
On 2009/03/11 13:49:17, Mads Ager wrote:
> I know this is not your code, but why is there an assignment to a local
variable
> followed by a return?

Lasse has a patch waiting that also fixes this.

http://codereview.chromium.org/43075/diff/1/16#newcode740
Line 740: // Unimplemented on ARM, fall through to bytecode.
On 2009/03/11 13:54:03, Lasse Reichstein wrote:
> I'm all for factoring it differently, but I think we should wait until after
> another pending patch that I have (or during), since it introduces even more
> #ifdef ARM's.

I'll leave it alone for now.

http://codereview.chromium.org/43075/diff/1/10
File src/jsregexp.h (right):

http://codereview.chromium.org/43075/diff/1/10#newcode118
Line 118: static int GetCapture(FixedArray* array, int index) {
On 2009/03/11 13:49:17, Mads Ager wrote:
> This is a general comment on this code.  Don't let it stop you from putting
> back, but this code does not match the style of the rest of the V8 code.  We
> usually put vertical space between functions to increase readability.  It
seems
> that there is very little vertical spacing in this file. 

Changed here, left alone other places in the file.

http://codereview.chromium.org/43075/diff/1/7
File src/regexp-delay.js (right):

http://codereview.chromium.org/43075/diff/1/7#newcode207
Line 207: throw MakeTypeError('method_called_on_incompatible',
['RegExp.prototype.test', this]);
On 2009/03/11 13:49:17, Mads Ager wrote:
> Long line, break it?

Yes.  It seems none of our linters catch >80 characters in .js files.

http://codereview.chromium.org/43075/diff/1/14
File src/string.js (right):

http://codereview.chromium.org/43075/diff/1/14#newcode302
Line 302: 
On 2009/03/11 13:49:17, Mads Ager wrote:
> Any reason for the extra space here?

No.

Powered by Google App Engine
This is Rietveld 408576698