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

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

Issue 14387004: Fix segmentation fault in CodeMap::Print (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 8 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 | « no previous file | 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const char* resource_name, 100 const char* resource_name,
101 int line_number, 101 int line_number,
102 int security_token_id)); 102 int security_token_id));
103 103
104 INLINE(bool is_js_function() const) { return is_js_function_tag(tag_); } 104 INLINE(bool is_js_function() const) { return is_js_function_tag(tag_); }
105 INLINE(const char* name_prefix() const) { return name_prefix_; } 105 INLINE(const char* name_prefix() const) { return name_prefix_; }
106 INLINE(bool has_name_prefix() const) { return name_prefix_[0] != '\0'; } 106 INLINE(bool has_name_prefix() const) { return name_prefix_[0] != '\0'; }
107 INLINE(const char* name() const) { return name_; } 107 INLINE(const char* name() const) { return name_; }
108 INLINE(const char* resource_name() const) { return resource_name_; } 108 INLINE(const char* resource_name() const) { return resource_name_; }
109 INLINE(int line_number() const) { return line_number_; } 109 INLINE(int line_number() const) { return line_number_; }
110 INLINE(int shared_id() const) { return shared_id_; }
111 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; } 110 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; }
112 INLINE(int security_token_id() const) { return security_token_id_; } 111 INLINE(int security_token_id() const) { return security_token_id_; }
113 112
114 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); 113 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag));
115 114
116 void CopyData(const CodeEntry& source); 115 void CopyData(const CodeEntry& source);
117 uint32_t GetCallUid() const; 116 uint32_t GetCallUid() const;
118 bool IsSameAs(CodeEntry* entry) const; 117 bool IsSameAs(CodeEntry* entry) const;
119 118
120 static const char* const kEmptyNamePrefix; 119 static const char* const kEmptyNamePrefix;
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 CodeEntry* gc_entry_; 449 CodeEntry* gc_entry_;
451 SampleRateCalculator sample_rate_calc_; 450 SampleRateCalculator sample_rate_calc_;
452 451
453 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); 452 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
454 }; 453 };
455 454
456 455
457 } } // namespace v8::internal 456 } } // namespace v8::internal
458 457
459 #endif // V8_PROFILE_GENERATOR_H_ 458 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698