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

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

Issue 1553123002: [Interpreter] Fix some issues in the non-x64 InterpreterNotifyDeoptimized builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_cctest
Patch Set: Rebase 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 | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 961
962 // Pass the deoptimization type to the runtime system. 962 // Pass the deoptimization type to the runtime system.
963 __ mov(r1, Operand(Smi::FromInt(static_cast<int>(type)))); 963 __ mov(r1, Operand(Smi::FromInt(static_cast<int>(type))));
964 __ push(r1); 964 __ push(r1);
965 __ CallRuntime(Runtime::kNotifyDeoptimized); 965 __ CallRuntime(Runtime::kNotifyDeoptimized);
966 966
967 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. 967 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register.
968 // Tear down internal frame. 968 // Tear down internal frame.
969 } 969 }
970 970
971 // Drop state (we don't use these for interpreter deopts) and push PC at top 971 // Drop state (we don't use this for interpreter deopts).
972 // of stack (to simulate initial call to bytecode handler in interpreter entry
973 // trampoline).
974 __ pop(r1);
975 __ Drop(1); 972 __ Drop(1);
976 __ push(r1);
977 973
978 // Initialize register file register and dispatch table register. 974 // Initialize register file register and dispatch table register.
979 __ add(kInterpreterRegisterFileRegister, fp, 975 __ add(kInterpreterRegisterFileRegister, fp,
980 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 976 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
981 __ LoadRoot(kInterpreterDispatchTableRegister, 977 __ LoadRoot(kInterpreterDispatchTableRegister,
982 Heap::kInterpreterTableRootIndex); 978 Heap::kInterpreterTableRootIndex);
983 __ add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 979 __ add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
984 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 980 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
985 981
986 // Get the context from the frame. 982 // Get the context from the frame.
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 } 2314 }
2319 } 2315 }
2320 2316
2321 2317
2322 #undef __ 2318 #undef __
2323 2319
2324 } // namespace internal 2320 } // namespace internal
2325 } // namespace v8 2321 } // namespace v8
2326 2322
2327 #endif // V8_TARGET_ARCH_ARM 2323 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698