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

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

Issue 1665853002: [Interpreter] Add explicit StackCheck bytecodes on function entry and back branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittests. Created 4 years, 10 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 | « src/mips/builtins-mips.cc ('k') | src/ppc/builtins-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 __ Branch(&loop_header, ge, a4, Operand(zero_reg)); 1017 __ Branch(&loop_header, ge, a4, Operand(zero_reg));
1018 } 1018 }
1019 1019
1020 // TODO(rmcilroy): List of things not currently dealt with here but done in 1020 // TODO(rmcilroy): List of things not currently dealt with here but done in
1021 // fullcodegen's prologue: 1021 // fullcodegen's prologue:
1022 // - Support profiler (specifically profiling_counter). 1022 // - Support profiler (specifically profiling_counter).
1023 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 1023 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
1024 // - Allow simulator stop operations if FLAG_stop_at is set. 1024 // - Allow simulator stop operations if FLAG_stop_at is set.
1025 // - Code aging of the BytecodeArray object. 1025 // - Code aging of the BytecodeArray object.
1026 1026
1027 // Perform stack guard check.
1028 {
1029 Label ok;
1030 __ LoadRoot(at, Heap::kStackLimitRootIndex);
1031 __ Branch(&ok, hs, sp, Operand(at));
1032 __ push(kInterpreterBytecodeArrayRegister);
1033 __ CallRuntime(Runtime::kStackGuard);
1034 __ pop(kInterpreterBytecodeArrayRegister);
1035 __ bind(&ok);
1036 }
1037
1038 // Load bytecode offset and dispatch table into registers. 1027 // Load bytecode offset and dispatch table into registers.
1039 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 1028 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
1040 __ Daddu(kInterpreterRegisterFileRegister, fp, 1029 __ Daddu(kInterpreterRegisterFileRegister, fp,
1041 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1030 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1042 __ li(kInterpreterBytecodeOffsetRegister, 1031 __ li(kInterpreterBytecodeOffsetRegister,
1043 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 1032 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
1044 __ LoadRoot(kInterpreterDispatchTableRegister, 1033 __ LoadRoot(kInterpreterDispatchTableRegister,
1045 Heap::kInterpreterTableRootIndex); 1034 Heap::kInterpreterTableRootIndex);
1046 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 1035 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
1047 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 1036 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 } 2760 }
2772 } 2761 }
2773 2762
2774 2763
2775 #undef __ 2764 #undef __
2776 2765
2777 } // namespace internal 2766 } // namespace internal
2778 } // namespace v8 2767 } // namespace v8
2779 2768
2780 #endif // V8_TARGET_ARCH_MIPS64 2769 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698