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
33902
Opcode.h use const void* for Opcode cause error #1211 for RVCT compiler
https://bugs.webkit.org/show_bug.cgi?id=33902
Summary
Opcode.h use const void* for Opcode cause error #1211 for RVCT compiler
Lyon Chen
Reported
2010-01-20 07:24:02 PST
In commit
r52231
, Opcode is changed from void* to const void* when COMPUTED_GOTO is used, this caused a compiling error #1211 for RVCT 4.0 compilers. Suggest to change to: --- a/JavaScriptCore/bytecode/Opcode.h +++ b/JavaScriptCore/bytecode/Opcode.h @@ -196,7 +196,11 @@ #undef VERIFY_OPCODE_ID #if HAVE(COMPUTED_GOTO) +#if COMPILER(RVCT) + typedef void* Opcode; +#else typedef const void* Opcode; +#endif #else typedef OpcodeID Opcode; #endif
Attachments
Patch for bug 33902
(436 bytes, patch)
2010-01-20 08:03 PST
,
Lyon Chen
darin
: review-
Details
Formatted Diff
Diff
New patch with changelog.
(877 bytes, patch)
2010-01-21 09:29 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
New patch with RVCT flag.
(913 bytes, patch)
2010-01-21 10:54 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Lyon Chen
Comment 1
2010-01-20 08:03:26 PST
Created
attachment 47035
[details]
Patch for
bug 33902
Darin Adler
Comment 2
2010-01-20 08:14:12 PST
Comment on
attachment 47035
[details]
Patch for
bug 33902
Two problems here: 1) We don't accept patches without change log entries. 2) This is probably not something that should be ifdef'd based on compiler. If void* works for the other compilers, then the patch should just switch from const void* to void*.
Lyon Chen
Comment 3
2010-01-20 08:19:09 PST
Darin: In commit
r52231
,
ggaren@apple.com
mentioned the change from void* to const void* is to avoid generating bloated codes in interpreter.cpp, so maybe it's better #ifdef this change? And maybe RVCT compiler can someday updated to support const void* for computed goto, instead of void*? Hope to hear from
ggaren@apple.com
on this matter.
Geoffrey Garen
Comment 4
2010-01-20 11:11:05 PST
> In commit
r52231
,
ggaren@apple.com
mentioned the change from void* to const > void* is to avoid generating bloated codes in interpreter.cpp, so maybe it's > better #ifdef this change?
I'm not sure if that specific part of the change is required. I guess you'd have to test to find out.
Lyon Chen
Comment 5
2010-01-21 09:29:03 PST
Created
attachment 47128
[details]
New patch with changelog.
Geoffrey Garen
Comment 6
2010-01-21 09:57:42 PST
Did you verify that this change doesn't change code generation for non-RVCT compilers?
Lyon Chen
Comment 7
2010-01-21 10:02:53 PST
No, I didn't, Garen. I thought your comment means this part is not essential to your optimization, and based on Darin's comments, I simply removed the #ifdef for RVCT. Sorry I don't have the time to verify it for other platforms for now, should I add these #ifdef back?
Yong Li
Comment 8
2010-01-21 10:31:54 PST
+George Staikos
Lyon Chen
Comment 9
2010-01-21 10:54:06 PST
Created
attachment 47131
[details]
New patch with RVCT flag. Add a new patch with code change limited to RVCT compiler.
Darin Adler
Comment 10
2010-01-21 10:55:14 PST
Comment on
attachment 47128
[details]
New patch with changelog. I’ll let Geoff handle reviewing duties on this bug. I’m not sure I know what the issues are and I know he does.
Maciej Stachowiak
Comment 11
2010-01-22 01:52:15 PST
Comment on
attachment 47131
[details]
New patch with RVCT flag. Seems fine to have this scoped to COMPILER(RCVT)
WebKit Commit Bot
Comment 12
2010-01-26 08:54:31 PST
Comment on
attachment 47131
[details]
New patch with RVCT flag. Rejecting patch 47131 from commit-queue.
lyon.chen@torchmobile.com
does not have committer permissions according to
http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/committers.py
. - If you do not have committer rights please read
http://webkit.org/coding/contributing.html
for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in WebKitTools/Scripts/webkitpy/committers.py by adding yourself to the file (no review needed). Due to
bug 30084
the commit-queue will require a restart after your change. Please contact
eseidel@chromium.org
to request a commit-queue restart. After restart the commit-queue will correctly respect your committer rights.
WebKit Commit Bot
Comment 13
2010-01-26 20:20:44 PST
Comment on
attachment 47131
[details]
New patch with RVCT flag. Clearing flags on attachment: 47131 Committed
r53891
: <
http://trac.webkit.org/changeset/53891
>
WebKit Commit Bot
Comment 14
2010-01-26 20:20:50 PST
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