Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 56b386cf6c536ffb500114ecd26910e0622862ad..bbb3688292f55668e34dca226713538b979dc7c5 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -125,6 +125,7 @@ void Builtins::Generate_ArrayCode(MacroAssembler* masm) { |
__ Assert(eq, kUnexpectedInitialMapForArrayFunction); |
} |
+ __ mr(r6, r4); |
// Run the native code for the Array function called as a normal function. |
// tail call a stub |
__ LoadRoot(r5, Heap::kUndefinedValueRootIndex); |
@@ -921,7 +922,9 @@ static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
// Push function as parameter to the runtime call. |
__ Push(r4, r4); |
// Whether to compile in a background thread. |
- __ Push(masm->isolate()->factory()->ToBoolean(concurrent)); |
+ __ LoadRoot( |
+ r0, concurrent ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
+ __ push(r0); |
__ CallRuntime(Runtime::kCompileOptimized, 2); |
// Restore receiver. |