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

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

Issue 2084017: Version 2.2.11... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 7 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/profile-generator.cc ('k') | src/serialize.h » ('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 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 17 matching lines...) Expand all
28 #ifndef V8_PROFILE_GENERATOR_INL_H_ 28 #ifndef V8_PROFILE_GENERATOR_INL_H_
29 #define V8_PROFILE_GENERATOR_INL_H_ 29 #define V8_PROFILE_GENERATOR_INL_H_
30 30
31 #ifdef ENABLE_LOGGING_AND_PROFILING 31 #ifdef ENABLE_LOGGING_AND_PROFILING
32 32
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(int security_token_id)
39 : call_uid_(0),
40 tag_(Logger::FUNCTION_TAG),
41 name_prefix_(kEmptyNamePrefix),
42 name_(""),
43 resource_name_(""),
44 line_number_(0),
45 security_token_id_(security_token_id) {
46 }
47
48
38 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, 49 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
39 const char* name_prefix, 50 const char* name_prefix,
40 const char* name, 51 const char* name,
41 const char* resource_name, 52 const char* resource_name,
42 int line_number) 53 int line_number,
54 int security_token_id)
43 : call_uid_(next_call_uid_++), 55 : call_uid_(next_call_uid_++),
44 tag_(tag), 56 tag_(tag),
45 name_prefix_(name_prefix), 57 name_prefix_(name_prefix),
46 name_(name), 58 name_(name),
47 resource_name_(resource_name), 59 resource_name_(resource_name),
48 line_number_(line_number) { 60 line_number_(line_number),
61 security_token_id_(security_token_id) {
49 } 62 }
50 63
51 64
52 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { 65 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
53 return tag == Logger::FUNCTION_TAG 66 return tag == Logger::FUNCTION_TAG
54 || tag == Logger::LAZY_COMPILE_TAG 67 || tag == Logger::LAZY_COMPILE_TAG
55 || tag == Logger::SCRIPT_TAG 68 || tag == Logger::SCRIPT_TAG
56 || tag == Logger::NATIVE_FUNCTION_TAG 69 || tag == Logger::NATIVE_FUNCTION_TAG
57 || tag == Logger::NATIVE_LAZY_COMPILE_TAG 70 || tag == Logger::NATIVE_LAZY_COMPILE_TAG
58 || tag == Logger::NATIVE_SCRIPT_TAG; 71 || tag == Logger::NATIVE_SCRIPT_TAG;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return program_entry_; 128 return program_entry_;
116 default: return NULL; 129 default: return NULL;
117 } 130 }
118 } 131 }
119 132
120 } } // namespace v8::internal 133 } } // namespace v8::internal
121 134
122 #endif // ENABLE_LOGGING_AND_PROFILING 135 #endif // ENABLE_LOGGING_AND_PROFILING
123 136
124 #endif // V8_PROFILE_GENERATOR_INL_H_ 137 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698