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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 919953002: CPUProfiler: Push deopt reason further to ProfileNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: unnecessary changes were removed Created 5 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/profile-generator-inl.h ('k') | src/x64/lithium-codegen-x64.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 #include "src/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3444 3444
3445 void Assembler::RecordComment(const char* msg, bool force) { 3445 void Assembler::RecordComment(const char* msg, bool force) {
3446 if (FLAG_code_comments || force) { 3446 if (FLAG_code_comments || force) {
3447 EnsureSpace ensure_space(this); 3447 EnsureSpace ensure_space(this);
3448 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3448 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3449 } 3449 }
3450 } 3450 }
3451 3451
3452 3452
3453 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { 3453 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
3454 if (FLAG_trace_deopt) { 3454 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) {
3455 EnsureSpace ensure_space(this); 3455 EnsureSpace ensure_space(this);
3456 RecordRelocInfo(RelocInfo::POSITION, raw_position); 3456 RecordRelocInfo(RelocInfo::POSITION, raw_position);
3457 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); 3457 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
3458 } 3458 }
3459 } 3459 }
3460 3460
3461 3461
3462 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { 3462 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) {
3463 // No out-of-line constant pool support. 3463 // No out-of-line constant pool support.
3464 DCHECK(!FLAG_enable_ool_constant_pool); 3464 DCHECK(!FLAG_enable_ool_constant_pool);
(...skipping 23 matching lines...) Expand all
3488 3488
3489 3489
3490 bool RelocInfo::IsInConstantPool() { 3490 bool RelocInfo::IsInConstantPool() {
3491 return false; 3491 return false;
3492 } 3492 }
3493 3493
3494 3494
3495 } } // namespace v8::internal 3495 } } // namespace v8::internal
3496 3496
3497 #endif // V8_TARGET_ARCH_X64 3497 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/profile-generator-inl.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698