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

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

Issue 915173005: Revert of CPUProfiler: Push deopt reason further to ProfileNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 3432 matching lines...) Expand 10 before | Expand all | Expand 10 after
3443 3443
3444 void Assembler::RecordComment(const char* msg, bool force) { 3444 void Assembler::RecordComment(const char* msg, bool force) {
3445 if (FLAG_code_comments || force) { 3445 if (FLAG_code_comments || force) {
3446 EnsureSpace ensure_space(this); 3446 EnsureSpace ensure_space(this);
3447 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3447 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3448 } 3448 }
3449 } 3449 }
3450 3450
3451 3451
3452 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { 3452 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
3453 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { 3453 if (FLAG_trace_deopt) {
3454 EnsureSpace ensure_space(this); 3454 EnsureSpace ensure_space(this);
3455 RecordRelocInfo(RelocInfo::POSITION, raw_position); 3455 RecordRelocInfo(RelocInfo::POSITION, raw_position);
3456 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); 3456 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
3457 } 3457 }
3458 } 3458 }
3459 3459
3460 3460
3461 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { 3461 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) {
3462 // No out-of-line constant pool support. 3462 // No out-of-line constant pool support.
3463 DCHECK(!FLAG_enable_ool_constant_pool); 3463 DCHECK(!FLAG_enable_ool_constant_pool);
(...skipping 23 matching lines...) Expand all
3487 3487
3488 3488
3489 bool RelocInfo::IsInConstantPool() { 3489 bool RelocInfo::IsInConstantPool() {
3490 return false; 3490 return false;
3491 } 3491 }
3492 3492
3493 3493
3494 } } // namespace v8::internal 3494 } } // namespace v8::internal
3495 3495
3496 #endif // V8_TARGET_ARCH_X64 3496 #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