WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
71358
JSC: Remove startPosition from SourceProvider, convert firstLine into TextPosition in SourceCode.
https://bugs.webkit.org/show_bug.cgi?id=71358
Summary
JSC: Remove startPosition from SourceProvider, convert firstLine into TextPos...
Pavel Feldman
Reported
2011-11-02 05:21:03 PDT
Oliver suggested that SourceProvider should not be position aware, JSC should manage positions in the SourceCode.
Attachments
Patch
(66.16 KB, patch)
2011-11-02 06:23 PDT
,
Pavel Feldman
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2011-11-02 06:23:35 PDT
Created
attachment 113309
[details]
Patch
WebKit Review Bot
Comment 2
2011-11-02 06:49:29 PDT
Comment on
attachment 113309
[details]
Patch
Attachment 113309
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/10257270
New failing tests: inspector/debugger/linkifier.html
Yury Semikhatsky
Comment 3
2011-11-02 06:55:27 PDT
Comment on
attachment 113309
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=113309&action=review
> Source/JavaScriptCore/ChangeLog:56 > + Web Inspector: [JSC] remove startPosition from SourceProvider,
Remove the second entry.
> Source/JavaScriptCore/debugger/Debugger.cpp:62 > + m_debugger->sourceParsed(iter->second, *iter->first, -1, UString());
This should be called once per script source, not for each function in it and position should be the origin of that script.
> Source/JavaScriptCore/parser/ASTBuilder.h:257 > + ExpressionNode* createFunctionExpr(int lineNumber, const Identifier* name, FunctionBodyNode* body, ParameterNode* parameters, int openBracePos, int closeBracePos, int bodyStartLine, int bodyStartColumn, int bodyEndLine)
Consider using TextPosition.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug