mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 942604 - Add correct Float32 handling to MSetFrameArgument. r=bbouvier
This commit is contained in:
parent
2c36a671c8
commit
8800e00b9c
11
js/src/jit-test/tests/ion/bug942604.js
Normal file
11
js/src/jit-test/tests/ion/bug942604.js
Normal file
@ -0,0 +1,11 @@
|
||||
for (var j = 0; j < 999; ++j) {
|
||||
try {
|
||||
(function() {
|
||||
function f(x) {
|
||||
x = (new Float32Array)[i >> 2];
|
||||
{}(w) = arguments[0]
|
||||
}
|
||||
return f
|
||||
})()();
|
||||
} catch (e) {}
|
||||
}
|
@ -8325,7 +8325,8 @@ class MGetFrameArgument
|
||||
|
||||
// This MIR instruction is used to set an argument value in the frame.
|
||||
class MSetFrameArgument
|
||||
: public MUnaryInstruction
|
||||
: public MUnaryInstruction,
|
||||
public NoFloatPolicy<0>
|
||||
{
|
||||
uint32_t argno_;
|
||||
|
||||
@ -8357,6 +8358,9 @@ class MSetFrameArgument
|
||||
AliasSet getAliasSet() const {
|
||||
return AliasSet::Store(AliasSet::FrameArgument);
|
||||
}
|
||||
TypePolicy *typePolicy() {
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
class MRestCommon
|
||||
|
Loading…
Reference in New Issue
Block a user