Bug 60942

Summary: Reduce code size for inline cache
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: New BugsAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo.noronha, gustavo, thouraya.andolsi, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
barraclough: review+
fix issue oliver: review-

Oliver Hunt
Reported 2011-05-16 20:34:49 PDT
Reduce code size for inline cache
Attachments
Patch (31.25 KB, patch)
2011-05-16 21:09 PDT, Oliver Hunt
no flags
Patch (31.04 KB, patch)
2011-05-17 12:31 PDT, Oliver Hunt
barraclough: review+
fix issue (2.19 KB, patch)
2011-05-23 10:23 PDT, thouraya
oliver: review-
Oliver Hunt
Comment 1 2011-05-16 21:09:46 PDT
WebKit Review Bot
Comment 2 2011-05-16 21:12:29 PDT
Attachment 93735 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/assembler/CodeLocation.h:133: Missing space inside { }. [whitespace/braces] [5] Source/JavaScriptCore/assembler/CodeLocation.h:135: Missing space inside { }. [whitespace/braces] [5] Source/JavaScriptCore/assembler/CodeLocation.h:137: Missing space inside { }. [whitespace/braces] [5] Source/JavaScriptCore/assembler/X86Assembler.h:1023: movl_mr_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1098: movq_mr_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1687: oneByteOp_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1801: oneByteOp64_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:2040: memoryModRM_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 8 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Collabora GTK+ EWS bot
Comment 3 2011-05-17 01:06:14 PDT
Oliver Hunt
Comment 4 2011-05-17 12:31:42 PDT
WebKit Review Bot
Comment 5 2011-05-17 12:34:48 PDT
Attachment 93808 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/assembler/X86Assembler.h:1023: movl_mr_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1098: movq_mr_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1687: oneByteOp_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:1801: oneByteOp64_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Source/JavaScriptCore/assembler/X86Assembler.h:2041: memoryModRM_disp8 is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 5 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 6 2011-05-17 12:56:14 PDT
Comment on attachment 93808 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=93808&action=review > Source/JavaScriptCore/assembler/AbstractMacroAssembler.h:68 > + static const int MaximumCompactPtrAlignedAddressOffset = 0x7FFFFFFF; I think defining this here could be confusing, since you have have implementations of load32WithAddressOffsetPatch in all macro assemblers. To avoid programmer errors I suggest moving this down into the architecture specific MacroAssemblers. > Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h:44 > + static const int MaximumCompactPtrAlignedAddressOffset = ((1 << 8) - 1) / 2; I think just 127 would be clearer here.
Oliver Hunt
Comment 7 2011-05-17 13:03:53 PDT
thouraya
Comment 8 2011-05-23 10:23:02 PDT
Created attachment 94436 [details] fix issue Hello, Fix issues related to the patch: added load32WithCompactAddressOffsetPatch function and removed the duplicated function load32WithAddressOffsetPatch. Regards, Thouraya.
Oliver Hunt
Comment 9 2011-05-23 10:26:09 PDT
Comment on attachment 94436 [details] fix issue I think it would be better simply to implement the compact version properly -- it looked like sh4 should be able to do this in a single instruction saving memory + cpu time
Note You need to log in before you can comment on or make changes to this bug.