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

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

Issue 1554273002: PPC: [Interpreter] Fix some issues in the non-x64 InterpreterNotifyDeoptimized builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 944 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
945 // Save accumulator register and pass the deoptimization type to 945 // Save accumulator register and pass the deoptimization type to
946 // the runtime system. 946 // the runtime system.
947 __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type))); 947 __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type)));
948 __ Push(kInterpreterAccumulatorRegister, r4); 948 __ Push(kInterpreterAccumulatorRegister, r4);
949 __ CallRuntime(Runtime::kNotifyDeoptimized); 949 __ CallRuntime(Runtime::kNotifyDeoptimized);
950 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. 950 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register.
951 // Tear down internal frame. 951 // Tear down internal frame.
952 } 952 }
953 953
954 // Drop state (we don't use these for interpreter deopts) and push PC at top 954 // Drop state (we don't use these for interpreter deopts).
955 // of stack (to simulate initial call to bytecode handler in interpreter entry 955 __ Drop(1);
956 // trampoline).
957 __ pop(r4);
958 __ StoreP(r4, MemOperand(sp, 0));
959 956
960 // Initialize register file register and dispatch table register. 957 // Initialize register file register and dispatch table register.
961 __ addi(kInterpreterRegisterFileRegister, fp, 958 __ addi(kInterpreterRegisterFileRegister, fp,
962 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 959 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
963 __ LoadRoot(kInterpreterDispatchTableRegister, 960 __ LoadRoot(kInterpreterDispatchTableRegister,
964 Heap::kInterpreterTableRootIndex); 961 Heap::kInterpreterTableRootIndex);
965 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 962 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
966 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 963 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
967 964
968 // Get the context from the frame. 965 // Get the context from the frame.
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 __ bkpt(0); 2375 __ bkpt(0);
2379 } 2376 }
2380 } 2377 }
2381 2378
2382 2379
2383 #undef __ 2380 #undef __
2384 } // namespace internal 2381 } // namespace internal
2385 } // namespace v8 2382 } // namespace v8
2386 2383
2387 #endif // V8_TARGET_ARCH_PPC 2384 #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