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 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 | 40 |
41 const char* StringsStorage::GetFunctionName(const char* name) { | 41 const char* StringsStorage::GetFunctionName(const char* name) { |
42 return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName; | 42 return strlen(name) > 0 ? name : ProfileGenerator::kAnonymousFunctionName; |
43 } | 43 } |
44 | 44 |
45 | 45 |
46 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, | 46 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, |
47 const char* name, | 47 const char* name, |
48 int security_token_id, | |
49 const char* name_prefix, | 48 const char* name_prefix, |
50 const char* resource_name, | 49 const char* resource_name, |
51 int line_number) | 50 int line_number) |
52 : tag_(tag), | 51 : tag_(tag), |
53 builtin_id_(Builtins::builtin_count), | 52 builtin_id_(Builtins::builtin_count), |
54 name_prefix_(name_prefix), | 53 name_prefix_(name_prefix), |
55 name_(name), | 54 name_(name), |
56 resource_name_(resource_name), | 55 resource_name_(resource_name), |
57 line_number_(line_number), | 56 line_number_(line_number), |
58 shared_id_(0), | 57 shared_id_(0), |
59 script_id_(v8::Script::kNoScriptId), | 58 script_id_(v8::Script::kNoScriptId), |
60 security_token_id_(security_token_id), | |
61 no_frame_ranges_(NULL) { | 59 no_frame_ranges_(NULL) { |
62 } | 60 } |
63 | 61 |
64 | 62 |
65 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { | 63 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { |
66 return tag == Logger::FUNCTION_TAG | 64 return tag == Logger::FUNCTION_TAG |
67 || tag == Logger::LAZY_COMPILE_TAG | 65 || tag == Logger::LAZY_COMPILE_TAG |
68 || tag == Logger::SCRIPT_TAG | 66 || tag == Logger::SCRIPT_TAG |
69 || tag == Logger::NATIVE_FUNCTION_TAG | 67 || tag == Logger::NATIVE_FUNCTION_TAG |
70 || tag == Logger::NATIVE_LAZY_COMPILE_TAG | 68 || tag == Logger::NATIVE_LAZY_COMPILE_TAG |
(...skipping 23 matching lines...) Expand all Loading... |
94 case OTHER: | 92 case OTHER: |
95 case EXTERNAL: | 93 case EXTERNAL: |
96 return program_entry_; | 94 return program_entry_; |
97 default: return NULL; | 95 default: return NULL; |
98 } | 96 } |
99 } | 97 } |
100 | 98 |
101 } } // namespace v8::internal | 99 } } // namespace v8::internal |
102 | 100 |
103 #endif // V8_PROFILE_GENERATOR_INL_H_ | 101 #endif // V8_PROFILE_GENERATOR_INL_H_ |
OLD | NEW |