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

Issue 28068: Fixed regression http://code.google.com/p/v8/issues/detail?id=236. (Closed)

Created:
11 years, 10 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fixed regression http://code.google.com/p/v8/issues/detail?id=236. The problem was that the case of 'undefined' script source wasn't handled in Script::InitLineEnds.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M src/objects.cc View 1 chunk +6 lines, -0 lines 2 comments Download
M test/cctest/test-compiler.cc View 1 chunk +14 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Mikhail Naganov
11 years, 10 months ago (2009-02-24 11:55:35 UTC) #1
Søren Thygesen Gjesse
LGTM This could actually cause a crash all the way down in String::ToUC16Vector()? v8::internal::String::ToUC16Vector() v8::internal::Runtime::StringMatch() ...
11 years, 10 months ago (2009-02-24 13:21:42 UTC) #2
Søren Thygesen Gjesse
http://codereview.chromium.org/28068/diff/1/2 File src/objects.cc (right): http://codereview.chromium.org/28068/diff/1/2#newcode6863 Line 6863: set_line_ends(*(Factory::NewArrayLiteral(0))); Please use NewJSArray. http://codereview.chromium.org/28068/diff/1/3 File test/cctest/test-compiler.cc (right): ...
11 years, 10 months ago (2009-02-24 13:23:52 UTC) #3
Mikhail Naganov
On 2009/02/24 13:21:42, Søren Gjesse wrote: > LGTM > > This could actually cause a ...
11 years, 10 months ago (2009-02-24 13:32:17 UTC) #4
Mikhail Naganov
11 years, 10 months ago (2009-02-24 13:41:01 UTC) #5
http://codereview.chromium.org/28068/diff/1/2
File src/objects.cc (right):

http://codereview.chromium.org/28068/diff/1/2#newcode6863
Line 6863: set_line_ends(*(Factory::NewArrayLiteral(0)));
On 2009/02/24 13:23:52, Søren Gjesse wrote:
> Please use NewJSArray.

Um, but 'NewArrayLiteral' uses NewJSArrayWithElements. Isn't it the same?

http://codereview.chromium.org/28068/diff/1/3
File test/cctest/test-compiler.cc (right):

http://codereview.chromium.org/28068/diff/1/3#newcode317
Line 317: CHECK_EQ(-1, script->GetLineNumber(-1));
On 2009/02/24 13:23:52, Søren Gjesse wrote:
> As this bug originated from Chrome where source is external strings using an
> empty external string in the test case as well might be a good idea.

Ok, will add such test. But it will be a new CL since I already commited this
one immediately after your LGTM ;)

Powered by Google App Engine
This is Rietveld 408576698