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

Side by Side Diff: src/cpu-profiler.h

Issue 959203002: CpuProfiler: replace raw position with SourcePosition for DeoptReason (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for win32 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 | « src/compiler.h ('k') | src/cpu-profiler.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_CPU_PROFILER_H_ 5 #ifndef V8_CPU_PROFILER_H_
6 #define V8_CPU_PROFILER_H_ 6 #define V8_CPU_PROFILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
10 #include "src/base/platform/time.h" 10 #include "src/base/platform/time.h"
11 #include "src/circular-queue.h" 11 #include "src/circular-queue.h"
12 #include "src/compiler.h"
12 #include "src/sampler.h" 13 #include "src/sampler.h"
13 #include "src/unbound-queue.h" 14 #include "src/unbound-queue.h"
14 15
15 namespace v8 { 16 namespace v8 {
16 namespace internal { 17 namespace internal {
17 18
18 // Forward declarations. 19 // Forward declarations.
19 class CodeEntry; 20 class CodeEntry;
20 class CodeMap; 21 class CodeMap;
21 class CompilationInfo; 22 class CompilationInfo;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const char* bailout_reason; 72 const char* bailout_reason;
72 73
73 INLINE(void UpdateCodeMap(CodeMap* code_map)); 74 INLINE(void UpdateCodeMap(CodeMap* code_map));
74 }; 75 };
75 76
76 77
77 class CodeDeoptEventRecord : public CodeEventRecord { 78 class CodeDeoptEventRecord : public CodeEventRecord {
78 public: 79 public:
79 Address start; 80 Address start;
80 const char* deopt_reason; 81 const char* deopt_reason;
81 int raw_position; 82 SourcePosition position;
82 83
83 INLINE(void UpdateCodeMap(CodeMap* code_map)); 84 INLINE(void UpdateCodeMap(CodeMap* code_map));
84 }; 85 };
85 86
86 87
87 class ReportBuiltinEventRecord : public CodeEventRecord { 88 class ReportBuiltinEventRecord : public CodeEventRecord {
88 public: 89 public:
89 Address start; 90 Address start;
90 Builtins::Name builtin_id; 91 Builtins::Name builtin_id;
91 92
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 bool saved_is_logging_; 267 bool saved_is_logging_;
267 bool is_profiling_; 268 bool is_profiling_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); 270 DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
270 }; 271 };
271 272
272 } } // namespace v8::internal 273 } } // namespace v8::internal
273 274
274 275
275 #endif // V8_CPU_PROFILER_H_ 276 #endif // V8_CPU_PROFILER_H_
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698