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

Side by Side Diff: src/profile-generator.h

Issue 18478002: Revert "Correctly report callstack when current function is FunctionCall builtin" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/cpu-profiler-inl.h ('k') | src/profile-generator.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; } 113 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; }
114 INLINE(int security_token_id() const) { return security_token_id_; } 114 INLINE(int security_token_id() const) { return security_token_id_; }
115 115
116 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); 116 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag));
117 117
118 List<OffsetRange>* no_frame_ranges() const { return no_frame_ranges_; } 118 List<OffsetRange>* no_frame_ranges() const { return no_frame_ranges_; }
119 void set_no_frame_ranges(List<OffsetRange>* ranges) { 119 void set_no_frame_ranges(List<OffsetRange>* ranges) {
120 no_frame_ranges_ = ranges; 120 no_frame_ranges_ = ranges;
121 } 121 }
122 122
123 void SetBuiltinId(Builtins::Name id);
124 Builtins::Name builtin_id() const { return builtin_id_; }
125
126 void CopyData(const CodeEntry& source); 123 void CopyData(const CodeEntry& source);
127 uint32_t GetCallUid() const; 124 uint32_t GetCallUid() const;
128 bool IsSameAs(CodeEntry* entry) const; 125 bool IsSameAs(CodeEntry* entry) const;
129 126
130 static const char* const kEmptyNamePrefix; 127 static const char* const kEmptyNamePrefix;
131 static const char* const kEmptyResourceName; 128 static const char* const kEmptyResourceName;
132 129
133 private: 130 private:
134 Logger::LogEventsAndTags tag_ : 8; 131 Logger::LogEventsAndTags tag_;
135 Builtins::Name builtin_id_ : 8;
136 const char* name_prefix_; 132 const char* name_prefix_;
137 const char* name_; 133 const char* name_;
138 const char* resource_name_; 134 const char* resource_name_;
139 int line_number_; 135 int line_number_;
140 int shared_id_; 136 int shared_id_;
141 int security_token_id_; 137 int security_token_id_;
142 List<OffsetRange>* no_frame_ranges_; 138 List<OffsetRange>* no_frame_ranges_;
143 139
144 DISALLOW_COPY_AND_ASSIGN(CodeEntry); 140 DISALLOW_COPY_AND_ASSIGN(CodeEntry);
145 }; 141 };
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 INLINE(CodeMap* code_map()) { return &code_map_; } 415 INLINE(CodeMap* code_map()) { return &code_map_; }
420 416
421 INLINE(void Tick()) { sample_rate_calc_.Tick(); } 417 INLINE(void Tick()) { sample_rate_calc_.Tick(); }
422 INLINE(double actual_sampling_rate()) { 418 INLINE(double actual_sampling_rate()) {
423 return sample_rate_calc_.ticks_per_ms(); 419 return sample_rate_calc_.ticks_per_ms();
424 } 420 }
425 421
426 static const char* const kAnonymousFunctionName; 422 static const char* const kAnonymousFunctionName;
427 static const char* const kProgramEntryName; 423 static const char* const kProgramEntryName;
428 static const char* const kGarbageCollectorEntryName; 424 static const char* const kGarbageCollectorEntryName;
429 // Used to represent frames for which we have no reliable way to
430 // detect function.
431 static const char* const kUnresolvedFunctionName;
432 425
433 private: 426 private:
434 INLINE(CodeEntry* EntryForVMState(StateTag tag)); 427 INLINE(CodeEntry* EntryForVMState(StateTag tag));
435 428
436 CpuProfilesCollection* profiles_; 429 CpuProfilesCollection* profiles_;
437 CodeMap code_map_; 430 CodeMap code_map_;
438 CodeEntry* program_entry_; 431 CodeEntry* program_entry_;
439 CodeEntry* gc_entry_; 432 CodeEntry* gc_entry_;
440 CodeEntry* unresolved_entry_;
441 SampleRateCalculator sample_rate_calc_; 433 SampleRateCalculator sample_rate_calc_;
442 434
443 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); 435 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
444 }; 436 };
445 437
446 438
447 } } // namespace v8::internal 439 } } // namespace v8::internal
448 440
449 #endif // V8_PROFILE_GENERATOR_H_ 441 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/cpu-profiler-inl.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698