Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 0407f01c084e1b742173c7d6d397d1c9d73b4b58..a3a3f325c6993dcdd408bca4eccf280a74f6e521 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -631,11 +631,13 @@ void FullCodeGenerator::StackValueContext::Plug( |
Label done; |
__ bind(materialize_true); |
__ LoadRoot(at, Heap::kTrueValueRootIndex); |
+ // Push the value as the following branch can clobber at in long branch mode. |
+ __ push(at); |
__ Branch(&done); |
__ bind(materialize_false); |
__ LoadRoot(at, Heap::kFalseValueRootIndex); |
- __ bind(&done); |
__ push(at); |
+ __ bind(&done); |
} |