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

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

Issue 700963002: Replace C++ bitfields with our own BitFields (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed AST node field sizes; more scanner fixes; undid hydrogen.h/cc changes Created 6 years, 1 month 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/runtime/runtime-array.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PROFILE_GENERATOR_INL_H_ 5 #ifndef V8_PROFILE_GENERATOR_INL_H_
6 #define V8_PROFILE_GENERATOR_INL_H_ 6 #define V8_PROFILE_GENERATOR_INL_H_
7 7
8 #include "src/profile-generator.h" 8 #include "src/profile-generator.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, 13 CodeEntry::CodeEntry(Logger::LogEventsAndTags tag, const char* name,
14 const char* name, 14 const char* name_prefix, const char* resource_name,
15 const char* name_prefix, 15 int line_number, int column_number)
16 const char* resource_name, 16 : bit_field_(TagField::encode(tag) |
17 int line_number, 17 BuiltinIdField::encode(Builtins::builtin_count)),
18 int column_number)
19 : tag_(tag),
20 builtin_id_(Builtins::builtin_count),
21 name_prefix_(name_prefix), 18 name_prefix_(name_prefix),
22 name_(name), 19 name_(name),
23 resource_name_(resource_name), 20 resource_name_(resource_name),
24 line_number_(line_number), 21 line_number_(line_number),
25 column_number_(column_number), 22 column_number_(column_number),
26 shared_id_(0), 23 shared_id_(0),
27 script_id_(v8::UnboundScript::kNoScriptId), 24 script_id_(v8::UnboundScript::kNoScriptId),
28 no_frame_ranges_(NULL), 25 no_frame_ranges_(NULL),
29 bailout_reason_(kEmptyBailoutReason) { } 26 bailout_reason_(kEmptyBailoutReason) {}
30 27
31 28
32 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) { 29 bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
33 return tag == Logger::FUNCTION_TAG 30 return tag == Logger::FUNCTION_TAG
34 || tag == Logger::LAZY_COMPILE_TAG 31 || tag == Logger::LAZY_COMPILE_TAG
35 || tag == Logger::SCRIPT_TAG 32 || tag == Logger::SCRIPT_TAG
36 || tag == Logger::NATIVE_FUNCTION_TAG 33 || tag == Logger::NATIVE_FUNCTION_TAG
37 || tag == Logger::NATIVE_LAZY_COMPILE_TAG 34 || tag == Logger::NATIVE_LAZY_COMPILE_TAG
38 || tag == Logger::NATIVE_SCRIPT_TAG; 35 || tag == Logger::NATIVE_SCRIPT_TAG;
39 } 36 }
40 37
41 38
42 ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry) 39 ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry)
43 : tree_(tree), 40 : tree_(tree),
44 entry_(entry), 41 entry_(entry),
45 self_ticks_(0), 42 self_ticks_(0),
46 children_(CodeEntriesMatch), 43 children_(CodeEntriesMatch),
47 id_(tree->next_node_id()) { } 44 id_(tree->next_node_id()) { }
48 45
49 } } // namespace v8::internal 46 } } // namespace v8::internal
50 47
51 #endif // V8_PROFILE_GENERATOR_INL_H_ 48 #endif // V8_PROFILE_GENERATOR_INL_H_
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/runtime/runtime-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698