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

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

Issue 1707693003: [Interpreter] Enable runtime profiler support for Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really fix --debug-code 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/interpreter/interpreter-assembler.cc ('k') | src/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 // TODO(rmcilroy): Consider doing more than one push per loop iteration. 893 // TODO(rmcilroy): Consider doing more than one push per loop iteration.
894 __ push(t1); 894 __ push(t1);
895 // Continue loop if not done. 895 // Continue loop if not done.
896 __ bind(&loop_check); 896 __ bind(&loop_check);
897 __ Subu(t0, t0, Operand(kPointerSize)); 897 __ Subu(t0, t0, Operand(kPointerSize));
898 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); 898 __ Branch(&loop_header, ge, t0, Operand(zero_reg));
899 } 899 }
900 900
901 // TODO(rmcilroy): List of things not currently dealt with here but done in 901 // TODO(rmcilroy): List of things not currently dealt with here but done in
902 // fullcodegen's prologue: 902 // fullcodegen's prologue:
903 // - Support profiler (specifically profiling_counter).
904 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 903 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
905 // - Code aging of the BytecodeArray object. 904 // - Code aging of the BytecodeArray object.
906 905
907 // Load bytecode offset and dispatch table into registers. 906 // Load bytecode offset and dispatch table into registers.
908 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 907 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
909 __ Addu(kInterpreterRegisterFileRegister, fp, 908 __ Addu(kInterpreterRegisterFileRegister, fp,
910 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 909 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
911 __ li(kInterpreterBytecodeOffsetRegister, 910 __ li(kInterpreterBytecodeOffsetRegister,
912 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 911 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
913 __ li(kInterpreterDispatchTableRegister, 912 __ li(kInterpreterDispatchTableRegister,
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 } 2640 }
2642 } 2641 }
2643 2642
2644 2643
2645 #undef __ 2644 #undef __
2646 2645
2647 } // namespace internal 2646 } // namespace internal
2648 } // namespace v8 2647 } // namespace v8
2649 2648
2650 #endif // V8_TARGET_ARCH_MIPS 2649 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698