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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | src/external-reference-table.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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/codegen.h" 12 #include "src/codegen.h"
13 #include "src/crankshaft/hydrogen-osr.h" 13 #include "src/crankshaft/hydrogen-osr.h"
14 #include "src/deoptimizer.h" 14 #include "src/deoptimizer.h"
15 #include "src/ic/ic.h" 15 #include "src/ic/ic.h"
16 #include "src/ic/stub-cache.h" 16 #include "src/ic/stub-cache.h"
17 #include "src/profiler/cpu-profiler.h"
18 #include "src/x87/frames-x87.h" 17 #include "src/x87/frames-x87.h"
19 18
20 namespace v8 { 19 namespace v8 {
21 namespace internal { 20 namespace internal {
22 21
23 // When invoking builtins, we need to record the safepoint in the middle of 22 // When invoking builtins, we need to record the safepoint in the middle of
24 // the invoke instruction sequence generated by the macro assembler. 23 // the invoke instruction sequence generated by the macro assembler.
25 class SafepointGenerator final : public CallWrapper { 24 class SafepointGenerator final : public CallWrapper {
26 public: 25 public:
27 SafepointGenerator(LCodeGen* codegen, 26 SafepointGenerator(LCodeGen* codegen,
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 1017
1019 DCHECK(info()->IsStub() || frame_is_built_); 1018 DCHECK(info()->IsStub() || frame_is_built_);
1020 if (cc == no_condition && frame_is_built_) { 1019 if (cc == no_condition && frame_is_built_) {
1021 DeoptComment(deopt_info); 1020 DeoptComment(deopt_info);
1022 __ call(entry, RelocInfo::RUNTIME_ENTRY); 1021 __ call(entry, RelocInfo::RUNTIME_ENTRY);
1023 } else { 1022 } else {
1024 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 1023 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
1025 !frame_is_built_); 1024 !frame_is_built_);
1026 // We often have several deopts to the same entry, reuse the last 1025 // We often have several deopts to the same entry, reuse the last
1027 // jump entry if this is the case. 1026 // jump entry if this is the case.
1028 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 1027 if (FLAG_trace_deopt || isolate()->is_profiling() ||
1029 jump_table_.is_empty() || 1028 jump_table_.is_empty() ||
1030 !table_entry.IsEquivalentTo(jump_table_.last())) { 1029 !table_entry.IsEquivalentTo(jump_table_.last())) {
1031 jump_table_.Add(table_entry, zone()); 1030 jump_table_.Add(table_entry, zone());
1032 } 1031 }
1033 if (cc == no_condition) { 1032 if (cc == no_condition) {
1034 __ jmp(&jump_table_.last().label); 1033 __ jmp(&jump_table_.last().label);
1035 } else { 1034 } else {
1036 __ j(cc, &jump_table_.last().label); 1035 __ j(cc, &jump_table_.last().label);
1037 } 1036 }
1038 } 1037 }
(...skipping 4828 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 __ bind(deferred->exit()); 5866 __ bind(deferred->exit());
5868 __ bind(&done); 5867 __ bind(&done);
5869 } 5868 }
5870 5869
5871 #undef __ 5870 #undef __
5872 5871
5873 } // namespace internal 5872 } // namespace internal
5874 } // namespace v8 5873 } // namespace v8
5875 5874
5876 #endif // V8_TARGET_ARCH_X87 5875 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/external-reference-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698