| Index: src/mips/lithium-codegen-mips.cc | 
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc | 
| index cdc68c865275d7897fc8ce25040eb7c9303663ea..004548997b3241f52374378a4a7e6b5f884e0f66 100644 | 
| --- a/src/mips/lithium-codegen-mips.cc | 
| +++ b/src/mips/lithium-codegen-mips.cc | 
| @@ -25,6 +25,8 @@ | 
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|  | 
| +#include <limits> | 
| + | 
| #include "src/v8.h" | 
|  | 
| #include "src/base/bits.h" | 
| @@ -3842,7 +3844,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) { | 
| // Math.pow(-Infinity, 0.5) == Infinity | 
| // Math.sqrt(-Infinity) == NaN | 
| Label done; | 
| -  __ Move(temp, static_cast<double>(-V8_INFINITY)); | 
| +  __ Move(temp, std::numeric_limits<double>::infinity()); | 
| __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input); | 
| // Set up Infinity in the delay slot. | 
| // result is overwritten if the branch is not taken. | 
|  |