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

Issue 551227: Correctly set eval_from_shared value when new function is created by "new Fun... (Closed)

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

Description

Correctly set eval_from_shared value when new function is created by "new Function(...)". At the moment it's set to the native script where the Function is defined(v8natives.js) which doesn't make much sense for the user when he tries to debug his code. Moreover, it causes an exception in JSONProtocolSerializer.prototype.serialize_. Related Chromium bug: http://crbug.com/29062 Committed: http://code.google.com/p/v8/source/detail?r=3755

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -8 lines) Patch
M src/compiler.cc View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M src/mirror-delay.js View 3 1 chunk +4 lines, -2 lines 0 comments Download
A test/mjsunit/debug-compile-event-newfunction.js View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
yurys
10 years, 10 months ago (2010-02-01 09:49:49 UTC) #1
Søren Thygesen Gjesse
LGTM, but it looks as if the added test does not test what the change ...
10 years, 10 months ago (2010-02-01 11:09:05 UTC) #2
yurys
On 2010/02/01 11:09:05, Søren Gjesse wrote: > LGTM, but it looks as if the added ...
10 years, 10 months ago (2010-02-01 12:55:45 UTC) #3
yurys
10 years, 10 months ago (2010-02-01 12:56:11 UTC) #4
http://codereview.chromium.org/551227/diff/1004/3001
File test/mjsunit/debug-compile-event-newfunction.js (right):

http://codereview.chromium.org/551227/diff/1004/3001#newcode49
test/mjsunit/debug-compile-event-newfunction.js:49: assertEquals(62,
evalFromLocation.line);
On 2010/02/01 11:09:05, Søren Gjesse wrote:
> Why is this 62 and not 63?

Oops, I removed one commented line above after running the test, fixed.

Powered by Google App Engine
This is Rietveld 408576698