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

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

Issue 2811033: [Isolates] Remove even more statics. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase and address comments Created 10 years, 6 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/x64/codegen-x64.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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 security_token_id_(security_token_id) { 45 security_token_id_(security_token_id) {
46 } 46 }
47 47
48 48
49 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, 49 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
50 const char* name_prefix, 50 const char* name_prefix,
51 const char* name, 51 const char* name,
52 const char* resource_name, 52 const char* resource_name,
53 int line_number, 53 int line_number,
54 int security_token_id) 54 int security_token_id)
55 : call_uid_(next_call_uid_++), 55 : tag_(tag),
56 tag_(tag),
57 name_prefix_(name_prefix), 56 name_prefix_(name_prefix),
58 name_(name), 57 name_(name),
59 resource_name_(resource_name), 58 resource_name_(resource_name),
60 line_number_(line_number), 59 line_number_(line_number),
61 security_token_id_(security_token_id) { 60 security_token_id_(security_token_id) {
61 Isolate* isolate = Isolate::Current();
62 call_uid_ = isolate->code_entry_next_call_uid();
63 isolate->set_code_entry_next_call_uid(call_uid_ + 1);
62 } 64 }
63 65
64 66
65 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { 67 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
66 return tag == Logger::FUNCTION_TAG 68 return tag == Logger::FUNCTION_TAG
67 || tag == Logger::LAZY_COMPILE_TAG 69 || tag == Logger::LAZY_COMPILE_TAG
68 || tag == Logger::SCRIPT_TAG 70 || tag == Logger::SCRIPT_TAG
69 || tag == Logger::NATIVE_FUNCTION_TAG 71 || tag == Logger::NATIVE_FUNCTION_TAG
70 || tag == Logger::NATIVE_LAZY_COMPILE_TAG 72 || tag == Logger::NATIVE_LAZY_COMPILE_TAG
71 || tag == Logger::NATIVE_SCRIPT_TAG; 73 || tag == Logger::NATIVE_SCRIPT_TAG;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (!IsAlias(p->value)) 141 if (!IsAlias(p->value))
140 visitor->Apply(reinterpret_cast<HeapEntry*>(p->value)); 142 visitor->Apply(reinterpret_cast<HeapEntry*>(p->value));
141 } 143 }
142 } 144 }
143 145
144 } } // namespace v8::internal 146 } } // namespace v8::internal
145 147
146 #endif // ENABLE_LOGGING_AND_PROFILING 148 #endif // ENABLE_LOGGING_AND_PROFILING
147 149
148 #endif // V8_PROFILE_GENERATOR_INL_H_ 150 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698