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

Side by Side Diff: src/ppc/builtins-ppc.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/objects-inl.h ('k') | src/runtime-profiler.h » ('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 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 __ beq(&no_args, cr0); 1020 __ beq(&no_args, cr0);
1021 __ mtctr(r5); 1021 __ mtctr(r5);
1022 __ bind(&loop); 1022 __ bind(&loop);
1023 __ push(r6); 1023 __ push(r6);
1024 __ bdnz(&loop); 1024 __ bdnz(&loop);
1025 __ bind(&no_args); 1025 __ bind(&no_args);
1026 } 1026 }
1027 1027
1028 // TODO(rmcilroy): List of things not currently dealt with here but done in 1028 // TODO(rmcilroy): List of things not currently dealt with here but done in
1029 // fullcodegen's prologue: 1029 // fullcodegen's prologue:
1030 // - Support profiler (specifically profiling_counter).
1031 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 1030 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
1032 // - Code aging of the BytecodeArray object. 1031 // - Code aging of the BytecodeArray object.
1033 1032
1034 // Load accumulator, register file, bytecode offset, dispatch table into 1033 // Load accumulator, register file, bytecode offset, dispatch table into
1035 // registers. 1034 // registers.
1036 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 1035 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
1037 __ addi(kInterpreterRegisterFileRegister, fp, 1036 __ addi(kInterpreterRegisterFileRegister, fp,
1038 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1037 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1039 __ mov(kInterpreterBytecodeOffsetRegister, 1038 __ mov(kInterpreterBytecodeOffsetRegister,
1040 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 1039 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 __ bkpt(0); 2760 __ bkpt(0);
2762 } 2761 }
2763 } 2762 }
2764 2763
2765 2764
2766 #undef __ 2765 #undef __
2767 } // namespace internal 2766 } // namespace internal
2768 } // namespace v8 2767 } // namespace v8
2769 2768
2770 #endif // V8_TARGET_ARCH_PPC 2769 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698