WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
91690
JSC: bug fixes and enhancements for OfflineASM annotation system
https://bugs.webkit.org/show_bug.cgi?id=91690
Summary
JSC: bug fixes and enhancements for OfflineASM annotation system
Mark Lam
Reported
2012-07-18 16:17:04 PDT
The previously added OfflineASM annotation infrastructure does not support annotations for macros or at lines which do not have instructions at all. Under some circumstances, adding such annotations will actually break the build. This change set fills out the implementation of the annotation infrastructure, and it now allows annotations to be added anywhere. It also adds more pretty printing to make the annotations more readable in the output comment.
Attachments
Fix.
(18.56 KB, patch)
2012-07-18 16:29 PDT
,
Mark Lam
fpizlo
: review-
fpizlo
: commit-queue-
Details
Formatted Diff
Diff
rev 1: addressed Filip's concern. No longer play tricks with string encoding.
(19.04 KB, patch)
2012-07-18 18:16 PDT
,
Mark Lam
mark.lam
: review-
mark.lam
: commit-queue-
Details
Formatted Diff
Diff
rev 2: removed an unneeded OOPS comment in the last patch.
(
deleted
)
2012-07-19 01:00 PDT
,
Mark Lam
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2012-07-18 16:29:15 PDT
Created
attachment 153132
[details]
Fix.
Filip Pizlo
Comment 2
2012-07-18 17:28:14 PDT
Comment on
attachment 153132
[details]
Fix. View in context:
https://bugs.webkit.org/attachment.cgi?id=153132&action=review
> Source/JavaScriptCore/offlineasm/parser.rb:94 > + annotationType = whitespaceFound ? "@L" : "@G" # local or global annotation
It is customary to use symbols (:thing) rather than strings ("thing") for enumerating in ruby.
> Source/JavaScriptCore/offlineasm/parser.rb:99 > - result << Token.new(CodeOrigin.new(fileName, lineNumber), "@" + annotation) > + result << Token.new(CodeOrigin.new(fileName, lineNumber), > + "#{annotationType}#{annotation}")
I don't like the idea of using strings with magic as the contents of a token. Tokens are supposed to contain the string that was parsed. We already have a slightly ugly hack for numbers (we convert the string to a number then back to a decimal string) but I don't want that to spread.
Mark Lam
Comment 3
2012-07-18 18:16:09 PDT
Created
attachment 153151
[details]
rev 1: addressed Filip's concern. No longer play tricks with string encoding.
Mark Lam
Comment 4
2012-07-19 01:00:56 PDT
Created
attachment 153203
[details]
rev 2: removed an unneeded OOPS comment in the last patch.
WebKit Review Bot
Comment 5
2012-07-19 13:53:33 PDT
Comment on
attachment 153203
[details]
rev 2: removed an unneeded OOPS comment in the last patch. Clearing flags on attachment: 153203 Committed
r123147
: <
http://trac.webkit.org/changeset/123147
>
WebKit Review Bot
Comment 6
2012-07-19 13:53:38 PDT
All reviewed patches have been landed. Closing bug.
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