forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1236600 - Properly pre-barrier sets to inline TypedObject Any-typ…
…e Elements. (r=jandem)
- Loading branch information
Eric Faust
committed
Jan 13, 2016
1 parent
6877e14
commit 24be047
Showing
4 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
js/src/jit-test/tests/TypedObject/jit-write-references-2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if (typeof TypedObject === "undefined" || typeof Intl === "undefined") | ||
quit(); | ||
|
||
try { | ||
gczeal(4) | ||
} catch (exc) {} | ||
var T = TypedObject; | ||
var ValueStruct = new T.StructType({ | ||
f: T.Any | ||
}) | ||
var v = new ValueStruct; | ||
new class get extends Number {}; | ||
function writeValue(o, v) | ||
o.f = v | ||
for (var i = 0; i < 5; i++) | ||
writeValue(v, {}, "helo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters