Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: src/builtins/ppc/builtins-ppc.cc

Issue 2765713003: PPC: Use correct register to store returned instr (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 r7.bit() | r8.bit() | r9.bit() | r10.bit(); 3038 r7.bit() | r8.bit() | r9.bit() | r10.bit();
3039 const RegList fp_regs = d1.bit() | d2.bit() | d3.bit() | d4.bit() | 3039 const RegList fp_regs = d1.bit() | d2.bit() | d3.bit() | d4.bit() |
3040 d5.bit() | d6.bit() | d7.bit() | d8.bit(); 3040 d5.bit() | d6.bit() | d7.bit() | d8.bit();
3041 __ MultiPush(gp_regs); 3041 __ MultiPush(gp_regs);
3042 __ MultiPushDoubles(fp_regs); 3042 __ MultiPushDoubles(fp_regs);
3043 3043
3044 // Initialize cp register with kZero, CEntryStub will use it to set the 3044 // Initialize cp register with kZero, CEntryStub will use it to set the
3045 // current context on the isolate. 3045 // current context on the isolate.
3046 __ LoadSmiLiteral(cp, Smi::kZero); 3046 __ LoadSmiLiteral(cp, Smi::kZero);
3047 __ CallRuntime(Runtime::kWasmCompileLazy); 3047 __ CallRuntime(Runtime::kWasmCompileLazy);
3048 // Store returned instruction start in ip. 3048 // Store returned instruction start in r11.
3049 __ addi(ip, r3, Operand(Code::kHeaderSize - kHeapObjectTag)); 3049 __ addi(r11, r3, Operand(Code::kHeaderSize - kHeapObjectTag));
3050 3050
3051 // Restore registers. 3051 // Restore registers.
3052 __ MultiPopDoubles(fp_regs); 3052 __ MultiPopDoubles(fp_regs);
3053 __ MultiPop(gp_regs); 3053 __ MultiPop(gp_regs);
3054 } 3054 }
3055 // Now jump to the instructions of the returned code object. 3055 // Now jump to the instructions of the returned code object.
3056 __ Jump(ip); 3056 __ Jump(r11);
3057 } 3057 }
3058 3058
3059 #undef __ 3059 #undef __
3060 } // namespace internal 3060 } // namespace internal
3061 } // namespace v8 3061 } // namespace v8
3062 3062
3063 #endif // V8_TARGET_ARCH_PPC 3063 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698