Mark box instructions as idempotent (no bug, r=dvander)
authorRyan Pearl <rpearl@mozilla.com>
Fri, 12 Aug 2011 14:21:22 -0700
changeset 108720 f7076b6bc9c91496facb3174e29de9263f7b6589
parent 108719 f82e7d7508f8d11b8fbaecfe769a965f48a25053
child 108721 a43711f75e378f40c107dc654dcbdfafa5466c20
push id2248
push userakeybl@mozilla.com
push dateMon, 08 Oct 2012 19:23:44 +0000
treeherdermozilla-aurora@118a3b748323 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
milestone8.0a1
Mark box instructions as idempotent (no bug, r=dvander)
js/src/ion/MIR.h
--- a/js/src/ion/MIR.h
+++ b/js/src/ion/MIR.h
@@ -840,16 +840,17 @@ class MCopy : public MUnaryInstruction
 };
 
 // Takes a typed value and returns an untyped value.
 class MBox : public MUnaryInstruction
 {
     MBox(MDefinition *ins)
       : MUnaryInstruction(ins)
     {
+        setIdempotent();
         setResultType(MIRType_Value);
     }
 
   public:
     INSTRUCTION_HEADER(Box);
     static MBox *New(MDefinition *ins)
     {
         // Cannot box a box.