Title: [160091] trunk/Source/_javascript_Core
- Revision
- 160091
- Author
- [email protected]
- Date
- 2013-12-04 06:42:09 -0800 (Wed, 04 Dec 2013)
Log Message
Avoid to add zero offset in BaseIndex.
https://bugs.webkit.org/show_bug.cgi?id=125215
Patch by László Langó <[email protected]> on 2013-12-04
Reviewed by Michael Saboff.
When using cloop do not generate offsets additions for BaseIndex if the offset is zero.
* offlineasm/cloop.rb:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (160090 => 160091)
--- trunk/Source/_javascript_Core/ChangeLog 2013-12-04 13:49:39 UTC (rev 160090)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-12-04 14:42:09 UTC (rev 160091)
@@ -1,3 +1,14 @@
+2013-12-04 László Langó <[email protected]>
+
+ Avoid to add zero offset in BaseIndex.
+ https://bugs.webkit.org/show_bug.cgi?id=125215
+
+ Reviewed by Michael Saboff.
+
+ When using cloop do not generate offsets additions for BaseIndex if the offset is zero.
+
+ * offlineasm/cloop.rb:
+
2013-12-04 Peter Molnar <[email protected]>
Fix !ENABLE(_javascript__DEBUGGER) build.
Modified: trunk/Source/_javascript_Core/offlineasm/cloop.rb (160090 => 160091)
--- trunk/Source/_javascript_Core/offlineasm/cloop.rb 2013-12-04 13:49:39 UTC (rev 160090)
+++ trunk/Source/_javascript_Core/offlineasm/cloop.rb 2013-12-04 14:42:09 UTC (rev 160091)
@@ -261,7 +261,11 @@
end
end
def pointerExpr
- "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift}) + #{offset.clValue}"
+ if offset.value == 0
+ "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift})"
+ else
+ "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift}) + #{offset.clValue}"
+ end
end
def int8MemRef
"*CAST<int8_t*>(#{pointerExpr})"
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes