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

Side by Side Diff: src/compiler/code-generator.cc

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 9 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/compiler.cc ('k') | src/compiler/wasm-compiler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/address-map.h" 7 #include "src/address-map.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 PopulateDeoptimizationData(result); 211 PopulateDeoptimizationData(result);
212 212
213 // Ensure there is space for lazy deoptimization in the relocation info. 213 // Ensure there is space for lazy deoptimization in the relocation info.
214 if (info->ShouldEnsureSpaceForLazyDeopt()) { 214 if (info->ShouldEnsureSpaceForLazyDeopt()) {
215 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); 215 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result);
216 } 216 }
217 217
218 // Emit a code line info recording stop event. 218 // Emit a code line info recording stop event.
219 void* line_info = recorder->DetachJITHandlerData(); 219 void* line_info = recorder->DetachJITHandlerData();
220 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info)); 220 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(
221 AbstractCode::cast(*result), line_info));
221 222
222 return result; 223 return result;
223 } 224 }
224 225
225 226
226 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { 227 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const {
227 return code() 228 return code()
228 ->InstructionBlockAt(current_block_) 229 ->InstructionBlockAt(current_block_)
229 ->ao_number() 230 ->ao_number()
230 .IsNext(code()->InstructionBlockAt(block)->ao_number()); 231 .IsNext(code()->InstructionBlockAt(block)->ao_number());
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 774 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
774 gen->ools_ = this; 775 gen->ools_ = this;
775 } 776 }
776 777
777 778
778 OutOfLineCode::~OutOfLineCode() {} 779 OutOfLineCode::~OutOfLineCode() {}
779 780
780 } // namespace compiler 781 } // namespace compiler
781 } // namespace internal 782 } // namespace internal
782 } // namespace v8 783 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698