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

Side by Side Diff: src/x64/builtins-x64.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/runtime-profiler.cc ('k') | src/x87/builtins-x87.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // TODO(rmcilroy): Consider doing more than one push per loop iteration. 534 // TODO(rmcilroy): Consider doing more than one push per loop iteration.
535 __ Push(rdx); 535 __ Push(rdx);
536 // Continue loop if not done. 536 // Continue loop if not done.
537 __ bind(&loop_check); 537 __ bind(&loop_check);
538 __ subp(rcx, Immediate(kPointerSize)); 538 __ subp(rcx, Immediate(kPointerSize));
539 __ j(greater_equal, &loop_header, Label::kNear); 539 __ j(greater_equal, &loop_header, Label::kNear);
540 } 540 }
541 541
542 // TODO(rmcilroy): List of things not currently dealt with here but done in 542 // TODO(rmcilroy): List of things not currently dealt with here but done in
543 // fullcodegen's prologue: 543 // fullcodegen's prologue:
544 // - Support profiler (specifically profiling_counter).
545 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 544 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
546 // - Code aging of the BytecodeArray object. 545 // - Code aging of the BytecodeArray object.
547 546
548 // Load accumulator, register file, bytecode offset, dispatch table into 547 // Load accumulator, register file, bytecode offset, dispatch table into
549 // registers. 548 // registers.
550 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 549 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
551 __ movp(kInterpreterRegisterFileRegister, rbp); 550 __ movp(kInterpreterRegisterFileRegister, rbp);
552 __ addp(kInterpreterRegisterFileRegister, 551 __ addp(kInterpreterRegisterFileRegister,
553 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 552 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp));
554 __ movp(kInterpreterBytecodeOffsetRegister, 553 __ movp(kInterpreterBytecodeOffsetRegister,
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 __ ret(0); 2726 __ ret(0);
2728 } 2727 }
2729 2728
2730 2729
2731 #undef __ 2730 #undef __
2732 2731
2733 } // namespace internal 2732 } // namespace internal
2734 } // namespace v8 2733 } // namespace v8
2735 2734
2736 #endif // V8_TARGET_ARCH_X64 2735 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698