Closed
Bug 986155
Opened 11 years ago
Closed 11 years ago
MPostWriteBarrier can inhibit some optimizations
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
742 bytes,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
See the micro-benchmark below. We're not able to hoist the element access due to MPostWriteBarrier not overriding getAliasSet.
Note that this is not GGC-specific as MPostWriteBarrier is also added in non-GGC builds.
function f() {
var arr = [1, 2, 3];
var obj = {x: arr};
for (var i=0; i<100000000; i++) {
var z = arr[1];
obj.x = arr;
}
}
var t = new Date;
f();
print(new Date - t);
Assignee | ||
Comment 1•11 years ago
|
||
MPostWriteBarrier is not movable, and doesn't override congruentTo, so this should work.
Attachment #8400166 -
Flags: review?(bhackett1024)
Updated•11 years ago
|
Attachment #8400166 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•