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

Side by Side Diff: src/compiler.h

Issue 995183005: CpuProfiler: replace FLAG_hydrogen_track_positions with is_tracking_positions method on Compilation… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaselined Created 5 years, 9 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 | « no previous file | src/compiler.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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int opt_count() const { return opt_count_; } 161 int opt_count() const { return opt_count_; }
162 int num_parameters() const; 162 int num_parameters() const;
163 int num_heap_slots() const; 163 int num_heap_slots() const;
164 Code::Flags flags() const; 164 Code::Flags flags() const;
165 165
166 void set_parameter_count(int parameter_count) { 166 void set_parameter_count(int parameter_count) {
167 DCHECK(IsStub()); 167 DCHECK(IsStub());
168 parameter_count_ = parameter_count; 168 parameter_count_ = parameter_count;
169 } 169 }
170 170
171 bool is_tracking_positions() const { return track_positions_; }
172
171 bool is_calling() const { 173 bool is_calling() const {
172 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); 174 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling);
173 } 175 }
174 176
175 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } 177 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); }
176 178
177 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } 179 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); }
178 180
179 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); } 181 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); }
180 182
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 DeferredHandles* deferred_handles_; 444 DeferredHandles* deferred_handles_;
443 445
444 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount]; 446 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount];
445 447
446 BailoutReason bailout_reason_; 448 BailoutReason bailout_reason_;
447 449
448 int prologue_offset_; 450 int prologue_offset_;
449 451
450 List<OffsetRange>* no_frame_ranges_; 452 List<OffsetRange>* no_frame_ranges_;
451 std::vector<InlinedFunctionInfo>* inlined_function_infos_; 453 std::vector<InlinedFunctionInfo>* inlined_function_infos_;
454 bool track_positions_;
452 455
453 // A copy of shared_info()->opt_count() to avoid handle deref 456 // A copy of shared_info()->opt_count() to avoid handle deref
454 // during graph optimization. 457 // during graph optimization.
455 int opt_count_; 458 int opt_count_;
456 459
457 // Number of parameters used for compilation of stubs that require arguments. 460 // Number of parameters used for compilation of stubs that require arguments.
458 int parameter_count_; 461 int parameter_count_;
459 462
460 Handle<Foreign> object_wrapper_; 463 Handle<Foreign> object_wrapper_;
461 464
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 Zone zone_; 692 Zone zone_;
690 size_t info_zone_start_allocation_size_; 693 size_t info_zone_start_allocation_size_;
691 base::ElapsedTimer timer_; 694 base::ElapsedTimer timer_;
692 695
693 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 696 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
694 }; 697 };
695 698
696 } } // namespace v8::internal 699 } } // namespace v8::internal
697 700
698 #endif // V8_COMPILER_H_ 701 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698