OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_PROFILER_PROFILE_GENERATOR_H_ | 5 #ifndef V8_PROFILER_PROFILE_GENERATOR_H_ |
6 #define V8_PROFILER_PROFILE_GENERATOR_H_ | 6 #define V8_PROFILER_PROFILE_GENERATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 Address instruction_start() const { return instruction_start_; } | 107 Address instruction_start() const { return instruction_start_; } |
108 Logger::LogEventsAndTags tag() const { return TagField::decode(bit_field_); } | 108 Logger::LogEventsAndTags tag() const { return TagField::decode(bit_field_); } |
109 | 109 |
110 static const char* const kEmptyNamePrefix; | 110 static const char* const kEmptyNamePrefix; |
111 static const char* const kEmptyResourceName; | 111 static const char* const kEmptyResourceName; |
112 static const char* const kEmptyBailoutReason; | 112 static const char* const kEmptyBailoutReason; |
113 static const char* const kNoDeoptReason; | 113 static const char* const kNoDeoptReason; |
114 | 114 |
115 private: | 115 private: |
116 class TagField : public BitField<Logger::LogEventsAndTags, 0, 8> {}; | 116 class TagField : public BitField<Logger::LogEventsAndTags, 0, 8> {}; |
117 class BuiltinIdField : public BitField<Builtins::Name, 8, 8> {}; | 117 class BuiltinIdField : public BitField<Builtins::Name, 8, 9> {}; |
118 | 118 |
119 uint32_t bit_field_; | 119 uint32_t bit_field_; |
120 const char* name_prefix_; | 120 const char* name_prefix_; |
121 const char* name_; | 121 const char* name_; |
122 const char* resource_name_; | 122 const char* resource_name_; |
123 int line_number_; | 123 int line_number_; |
124 int column_number_; | 124 int column_number_; |
125 int script_id_; | 125 int script_id_; |
126 int position_; | 126 int position_; |
127 const char* bailout_reason_; | 127 const char* bailout_reason_; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 CodeEntry* unresolved_entry_; | 367 CodeEntry* unresolved_entry_; |
368 | 368 |
369 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 369 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
370 }; | 370 }; |
371 | 371 |
372 | 372 |
373 } // namespace internal | 373 } // namespace internal |
374 } // namespace v8 | 374 } // namespace v8 |
375 | 375 |
376 #endif // V8_PROFILER_PROFILE_GENERATOR_H_ | 376 #endif // V8_PROFILER_PROFILE_GENERATOR_H_ |
OLD | NEW |