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

Side by Side Diff: src/ia32/builtins-ia32.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/heap/objects-visiting-inl.h ('k') | src/interpreter/interpreter.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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // TODO(rmcilroy): Consider doing more than one push per loop iteration. 463 // TODO(rmcilroy): Consider doing more than one push per loop iteration.
464 __ push(eax); 464 __ push(eax);
465 // Continue loop if not done. 465 // Continue loop if not done.
466 __ bind(&loop_check); 466 __ bind(&loop_check);
467 __ sub(ebx, Immediate(kPointerSize)); 467 __ sub(ebx, Immediate(kPointerSize));
468 __ j(greater_equal, &loop_header); 468 __ j(greater_equal, &loop_header);
469 } 469 }
470 470
471 // TODO(rmcilroy): List of things not currently dealt with here but done in 471 // TODO(rmcilroy): List of things not currently dealt with here but done in
472 // fullcodegen's prologue: 472 // fullcodegen's prologue:
473 // - Support profiler (specifically profiling_counter).
474 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 473 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
475 // - Code aging of the BytecodeArray object. 474 // - Code aging of the BytecodeArray object.
476 475
477 // Load accumulator, register file, bytecode offset, dispatch table into 476 // Load accumulator, register file, bytecode offset, dispatch table into
478 // registers. 477 // registers.
479 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 478 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
480 __ mov(kInterpreterRegisterFileRegister, ebp); 479 __ mov(kInterpreterRegisterFileRegister, ebp);
481 __ add(kInterpreterRegisterFileRegister, 480 __ add(kInterpreterRegisterFileRegister,
482 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 481 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp));
483 __ mov(kInterpreterBytecodeOffsetRegister, 482 __ mov(kInterpreterBytecodeOffsetRegister,
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 2649
2651 __ bind(&ok); 2650 __ bind(&ok);
2652 __ ret(0); 2651 __ ret(0);
2653 } 2652 }
2654 2653
2655 #undef __ 2654 #undef __
2656 } // namespace internal 2655 } // namespace internal
2657 } // namespace v8 2656 } // namespace v8
2658 2657
2659 #endif // V8_TARGET_ARCH_IA32 2658 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698