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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/compiler/wasm-compiler.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
11 #include "src/crankshaft/hydrogen-osr.h" 11 #include "src/crankshaft/hydrogen-osr.h"
12 #include "src/ic/ic.h" 12 #include "src/ic/ic.h"
13 #include "src/ic/stub-cache.h" 13 #include "src/ic/stub-cache.h"
14 #include "src/profiler/cpu-profiler.h"
15 14
16 namespace v8 { 15 namespace v8 {
17 namespace internal { 16 namespace internal {
18 17
19 18
20 class SafepointGenerator final : public CallWrapper { 19 class SafepointGenerator final : public CallWrapper {
21 public: 20 public:
22 SafepointGenerator(LCodeGen* codegen, 21 SafepointGenerator(LCodeGen* codegen,
23 LPointerMap* pointers, 22 LPointerMap* pointers,
24 Safepoint::DeoptMode mode) 23 Safepoint::DeoptMode mode)
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 // restore caller doubles. 827 // restore caller doubles.
829 if (condition == al && frame_is_built_ && 828 if (condition == al && frame_is_built_ &&
830 !info()->saves_caller_doubles()) { 829 !info()->saves_caller_doubles()) {
831 DeoptComment(deopt_info); 830 DeoptComment(deopt_info);
832 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 831 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
833 } else { 832 } else {
834 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 833 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
835 !frame_is_built_); 834 !frame_is_built_);
836 // We often have several deopts to the same entry, reuse the last 835 // We often have several deopts to the same entry, reuse the last
837 // jump entry if this is the case. 836 // jump entry if this is the case.
838 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 837 if (FLAG_trace_deopt || isolate()->is_profiling() ||
839 jump_table_.is_empty() || 838 jump_table_.is_empty() ||
840 !table_entry.IsEquivalentTo(jump_table_.last())) { 839 !table_entry.IsEquivalentTo(jump_table_.last())) {
841 jump_table_.Add(table_entry, zone()); 840 jump_table_.Add(table_entry, zone());
842 } 841 }
843 __ b(condition, &jump_table_.last().label); 842 __ b(condition, &jump_table_.last().label);
844 } 843 }
845 } 844 }
846 845
847 846
848 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr, 847 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
(...skipping 4711 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 __ ldr(result, FieldMemOperand(scratch, 5559 __ ldr(result, FieldMemOperand(scratch,
5561 FixedArray::kHeaderSize - kPointerSize)); 5560 FixedArray::kHeaderSize - kPointerSize));
5562 __ bind(deferred->exit()); 5561 __ bind(deferred->exit());
5563 __ bind(&done); 5562 __ bind(&done);
5564 } 5563 }
5565 5564
5566 #undef __ 5565 #undef __
5567 5566
5568 } // namespace internal 5567 } // namespace internal
5569 } // namespace v8 5568 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698