| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 22 matching lines...) Expand all Loading... |
| 33 #include "profile-generator.h" | 33 #include "profile-generator.h" |
| 34 | 34 |
| 35 namespace v8 { | 35 namespace v8 { |
| 36 namespace internal { | 36 namespace internal { |
| 37 | 37 |
| 38 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, | 38 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, |
| 39 const char* name_prefix, | 39 const char* name_prefix, |
| 40 const char* name, | 40 const char* name, |
| 41 const char* resource_name, | 41 const char* resource_name, |
| 42 int line_number) | 42 int line_number) |
| 43 : tag_(tag), | 43 : call_uid_(next_call_uid_++), |
| 44 tag_(tag), |
| 44 name_prefix_(name_prefix), | 45 name_prefix_(name_prefix), |
| 45 name_(name), | 46 name_(name), |
| 46 resource_name_(resource_name), | 47 resource_name_(resource_name), |
| 47 line_number_(line_number) { | 48 line_number_(line_number) { |
| 48 } | 49 } |
| 49 | 50 |
| 50 | 51 |
| 51 bool CodeEntry::is_js_function() const { | 52 bool CodeEntry::is_js_function() const { |
| 52 return tag_ == Logger::FUNCTION_TAG | 53 return tag_ == Logger::FUNCTION_TAG |
| 53 || tag_ == Logger::LAZY_COMPILE_TAG | 54 || tag_ == Logger::LAZY_COMPILE_TAG |
| (...skipping 29 matching lines...) Expand all Loading... |
| 83 // Called from VM thread, and only it can mutate the list, | 84 // Called from VM thread, and only it can mutate the list, |
| 84 // so no locking is needed here. | 85 // so no locking is needed here. |
| 85 return current_profiles_.length() == 1; | 86 return current_profiles_.length() == 1; |
| 86 } | 87 } |
| 87 | 88 |
| 88 } } // namespace v8::internal | 89 } } // namespace v8::internal |
| 89 | 90 |
| 90 #endif // ENABLE_CPP_PROFILES_PROCESSOR | 91 #endif // ENABLE_CPP_PROFILES_PROCESSOR |
| 91 | 92 |
| 92 #endif // V8_PROFILE_GENERATOR_INL_H_ | 93 #endif // V8_PROFILE_GENERATOR_INL_H_ |
| OLD | NEW |