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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 2040683002: Remove dependencies of V8 on cpu-profiler is_profiling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use macro for declaring is_profiling Created 4 years, 6 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/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
11 #include "src/code-stubs.h" 11 #include "src/code-stubs.h"
12 #include "src/crankshaft/hydrogen-osr.h" 12 #include "src/crankshaft/hydrogen-osr.h"
13 #include "src/ic/ic.h" 13 #include "src/ic/ic.h"
14 #include "src/ic/stub-cache.h" 14 #include "src/ic/stub-cache.h"
15 #include "src/profiler/cpu-profiler.h"
16 15
17 namespace v8 { 16 namespace v8 {
18 namespace internal { 17 namespace internal {
19 18
20 19
21 // When invoking builtins, we need to record the safepoint in the middle of 20 // When invoking builtins, we need to record the safepoint in the middle of
22 // the invoke instruction sequence generated by the macro assembler. 21 // the invoke instruction sequence generated by the macro assembler.
23 class SafepointGenerator final : public CallWrapper { 22 class SafepointGenerator final : public CallWrapper {
24 public: 23 public:
25 SafepointGenerator(LCodeGen* codegen, 24 SafepointGenerator(LCodeGen* codegen,
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // restore caller doubles. 752 // restore caller doubles.
754 if (cc == no_condition && frame_is_built_ && 753 if (cc == no_condition && frame_is_built_ &&
755 !info()->saves_caller_doubles()) { 754 !info()->saves_caller_doubles()) {
756 DeoptComment(deopt_info); 755 DeoptComment(deopt_info);
757 __ call(entry, RelocInfo::RUNTIME_ENTRY); 756 __ call(entry, RelocInfo::RUNTIME_ENTRY);
758 } else { 757 } else {
759 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 758 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
760 !frame_is_built_); 759 !frame_is_built_);
761 // We often have several deopts to the same entry, reuse the last 760 // We often have several deopts to the same entry, reuse the last
762 // jump entry if this is the case. 761 // jump entry if this is the case.
763 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 762 if (FLAG_trace_deopt || isolate()->is_profiling() ||
764 jump_table_.is_empty() || 763 jump_table_.is_empty() ||
765 !table_entry.IsEquivalentTo(jump_table_.last())) { 764 !table_entry.IsEquivalentTo(jump_table_.last())) {
766 jump_table_.Add(table_entry, zone()); 765 jump_table_.Add(table_entry, zone());
767 } 766 }
768 if (cc == no_condition) { 767 if (cc == no_condition) {
769 __ jmp(&jump_table_.last().label); 768 __ jmp(&jump_table_.last().label);
770 } else { 769 } else {
771 __ j(cc, &jump_table_.last().label); 770 __ j(cc, &jump_table_.last().label);
772 } 771 }
773 } 772 }
(...skipping 4851 matching lines...) Expand 10 before | Expand all | Expand 10 after
5625 __ bind(deferred->exit()); 5624 __ bind(deferred->exit());
5626 __ bind(&done); 5625 __ bind(&done);
5627 } 5626 }
5628 5627
5629 #undef __ 5628 #undef __
5630 5629
5631 } // namespace internal 5630 } // namespace internal
5632 } // namespace v8 5631 } // namespace v8
5633 5632
5634 #endif // V8_TARGET_ARCH_X64 5633 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698