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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
11 #include "src/crankshaft/arm64/lithium-gap-resolver-arm64.h" 11 #include "src/crankshaft/arm64/lithium-gap-resolver-arm64.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 class SafepointGenerator final : public CallWrapper { 20 class SafepointGenerator final : public CallWrapper {
22 public: 21 public:
23 SafepointGenerator(LCodeGen* codegen, 22 SafepointGenerator(LCodeGen* codegen,
24 LPointerMap* pointers, 23 LPointerMap* pointers,
25 Safepoint::DeoptMode mode) 24 Safepoint::DeoptMode mode)
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 if (branch_type == always && 896 if (branch_type == always &&
898 frame_is_built_ && !info()->saves_caller_doubles()) { 897 frame_is_built_ && !info()->saves_caller_doubles()) {
899 DeoptComment(deopt_info); 898 DeoptComment(deopt_info);
900 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 899 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
901 } else { 900 } else {
902 Deoptimizer::JumpTableEntry* table_entry = 901 Deoptimizer::JumpTableEntry* table_entry =
903 new (zone()) Deoptimizer::JumpTableEntry( 902 new (zone()) Deoptimizer::JumpTableEntry(
904 entry, deopt_info, bailout_type, !frame_is_built_); 903 entry, deopt_info, bailout_type, !frame_is_built_);
905 // We often have several deopts to the same entry, reuse the last 904 // We often have several deopts to the same entry, reuse the last
906 // jump entry if this is the case. 905 // jump entry if this is the case.
907 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 906 if (FLAG_trace_deopt || isolate()->is_profiling() ||
908 jump_table_.is_empty() || 907 jump_table_.is_empty() ||
909 !table_entry->IsEquivalentTo(*jump_table_.last())) { 908 !table_entry->IsEquivalentTo(*jump_table_.last())) {
910 jump_table_.Add(table_entry, zone()); 909 jump_table_.Add(table_entry, zone());
911 } 910 }
912 __ B(&jump_table_.last()->label, branch_type, reg, bit); 911 __ B(&jump_table_.last()->label, branch_type, reg, bit);
913 } 912 }
914 } 913 }
915 914
916 915
917 void LCodeGen::Deoptimize(LInstruction* instr, 916 void LCodeGen::Deoptimize(LInstruction* instr,
(...skipping 4833 matching lines...) Expand 10 before | Expand all | Expand 10 after
5751 // Index is equal to negated out of object property index plus 1. 5750 // Index is equal to negated out of object property index plus 1.
5752 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5751 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5753 __ Ldr(result, FieldMemOperand(result, 5752 __ Ldr(result, FieldMemOperand(result,
5754 FixedArray::kHeaderSize - kPointerSize)); 5753 FixedArray::kHeaderSize - kPointerSize));
5755 __ Bind(deferred->exit()); 5754 __ Bind(deferred->exit());
5756 __ Bind(&done); 5755 __ Bind(&done);
5757 } 5756 }
5758 5757
5759 } // namespace internal 5758 } // namespace internal
5760 } // namespace v8 5759 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698