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

Side by Side Diff: src/cpu-profiler.cc

Issue 6646022: Remove `sfi' abbreviations (a follow-up to r6902). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 String* name, 62 String* name,
63 Address start) { 63 Address start) {
64 if (FilterOutCodeCreateEvent(tag)) return; 64 if (FilterOutCodeCreateEvent(tag)) return;
65 CodeEventsContainer evt_rec; 65 CodeEventsContainer evt_rec;
66 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; 66 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_;
67 rec->type = CodeEventRecord::CODE_CREATION; 67 rec->type = CodeEventRecord::CODE_CREATION;
68 rec->order = ++enqueue_order_; 68 rec->order = ++enqueue_order_;
69 rec->start = start; 69 rec->start = start;
70 rec->entry = generator_->NewCodeEntry(tag, prefix, name); 70 rec->entry = generator_->NewCodeEntry(tag, prefix, name);
71 rec->size = 1; 71 rec->size = 1;
72 rec->sfi_address = NULL; 72 rec->shared = NULL;
73 events_buffer_.Enqueue(evt_rec); 73 events_buffer_.Enqueue(evt_rec);
74 } 74 }
75 75
76 76
77 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag, 77 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag,
78 String* name, 78 String* name,
79 String* resource_name, 79 String* resource_name,
80 int line_number, 80 int line_number,
81 Address start, 81 Address start,
82 unsigned size, 82 unsigned size,
83 Address sfi_address) { 83 Address shared) {
84 if (FilterOutCodeCreateEvent(tag)) return; 84 if (FilterOutCodeCreateEvent(tag)) return;
85 CodeEventsContainer evt_rec; 85 CodeEventsContainer evt_rec;
86 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; 86 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_;
87 rec->type = CodeEventRecord::CODE_CREATION; 87 rec->type = CodeEventRecord::CODE_CREATION;
88 rec->order = ++enqueue_order_; 88 rec->order = ++enqueue_order_;
89 rec->start = start; 89 rec->start = start;
90 rec->entry = generator_->NewCodeEntry(tag, name, resource_name, line_number); 90 rec->entry = generator_->NewCodeEntry(tag, name, resource_name, line_number);
91 rec->size = size; 91 rec->size = size;
92 rec->sfi_address = sfi_address; 92 rec->shared = shared;
93 events_buffer_.Enqueue(evt_rec); 93 events_buffer_.Enqueue(evt_rec);
94 } 94 }
95 95
96 96
97 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag, 97 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag,
98 const char* name, 98 const char* name,
99 Address start, 99 Address start,
100 unsigned size) { 100 unsigned size) {
101 if (FilterOutCodeCreateEvent(tag)) return; 101 if (FilterOutCodeCreateEvent(tag)) return;
102 CodeEventsContainer evt_rec; 102 CodeEventsContainer evt_rec;
103 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; 103 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_;
104 rec->type = CodeEventRecord::CODE_CREATION; 104 rec->type = CodeEventRecord::CODE_CREATION;
105 rec->order = ++enqueue_order_; 105 rec->order = ++enqueue_order_;
106 rec->start = start; 106 rec->start = start;
107 rec->entry = generator_->NewCodeEntry(tag, name); 107 rec->entry = generator_->NewCodeEntry(tag, name);
108 rec->size = size; 108 rec->size = size;
109 rec->sfi_address = NULL; 109 rec->shared = NULL;
110 events_buffer_.Enqueue(evt_rec); 110 events_buffer_.Enqueue(evt_rec);
111 } 111 }
112 112
113 113
114 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag, 114 void ProfilerEventsProcessor::CodeCreateEvent(Logger::LogEventsAndTags tag,
115 int args_count, 115 int args_count,
116 Address start, 116 Address start,
117 unsigned size) { 117 unsigned size) {
118 if (FilterOutCodeCreateEvent(tag)) return; 118 if (FilterOutCodeCreateEvent(tag)) return;
119 CodeEventsContainer evt_rec; 119 CodeEventsContainer evt_rec;
120 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_; 120 CodeCreateEventRecord* rec = &evt_rec.CodeCreateEventRecord_;
121 rec->type = CodeEventRecord::CODE_CREATION; 121 rec->type = CodeEventRecord::CODE_CREATION;
122 rec->order = ++enqueue_order_; 122 rec->order = ++enqueue_order_;
123 rec->start = start; 123 rec->start = start;
124 rec->entry = generator_->NewCodeEntry(tag, args_count); 124 rec->entry = generator_->NewCodeEntry(tag, args_count);
125 rec->size = size; 125 rec->size = size;
126 rec->sfi_address = NULL; 126 rec->shared = NULL;
127 events_buffer_.Enqueue(evt_rec); 127 events_buffer_.Enqueue(evt_rec);
128 } 128 }
129 129
130 130
131 void ProfilerEventsProcessor::CodeMoveEvent(Address from, Address to) { 131 void ProfilerEventsProcessor::CodeMoveEvent(Address from, Address to) {
132 CodeEventsContainer evt_rec; 132 CodeEventsContainer evt_rec;
133 CodeMoveEventRecord* rec = &evt_rec.CodeMoveEventRecord_; 133 CodeMoveEventRecord* rec = &evt_rec.CodeMoveEventRecord_;
134 rec->type = CodeEventRecord::CODE_MOVE; 134 rec->type = CodeEventRecord::CODE_MOVE;
135 rec->order = ++enqueue_order_; 135 rec->order = ++enqueue_order_;
136 rec->from = from; 136 rec->from = from;
137 rec->to = to; 137 rec->to = to;
138 events_buffer_.Enqueue(evt_rec); 138 events_buffer_.Enqueue(evt_rec);
139 } 139 }
140 140
141 141
142 void ProfilerEventsProcessor::CodeDeleteEvent(Address from) { 142 void ProfilerEventsProcessor::CodeDeleteEvent(Address from) {
143 CodeEventsContainer evt_rec; 143 CodeEventsContainer evt_rec;
144 CodeDeleteEventRecord* rec = &evt_rec.CodeDeleteEventRecord_; 144 CodeDeleteEventRecord* rec = &evt_rec.CodeDeleteEventRecord_;
145 rec->type = CodeEventRecord::CODE_DELETE; 145 rec->type = CodeEventRecord::CODE_DELETE;
146 rec->order = ++enqueue_order_; 146 rec->order = ++enqueue_order_;
147 rec->start = from; 147 rec->start = from;
148 events_buffer_.Enqueue(evt_rec); 148 events_buffer_.Enqueue(evt_rec);
149 } 149 }
150 150
151 151
152 void ProfilerEventsProcessor::SFIMoveEvent(Address from, Address to) { 152 void ProfilerEventsProcessor::SharedFunctionMoveEvent(Address from, Address to) {
153 CodeEventsContainer evt_rec; 153 CodeEventsContainer evt_rec;
154 SFIMoveEventRecord* rec = &evt_rec.SFIMoveEventRecord_; 154 SharedFunctionMoveEventRecord* rec = &evt_rec.SharedFunctionMoveEventRecord_;
155 rec->type = CodeEventRecord::SFI_MOVE; 155 rec->type = CodeEventRecord::SHARED_FUNC_MOVE;
156 rec->order = ++enqueue_order_; 156 rec->order = ++enqueue_order_;
157 rec->from = from; 157 rec->from = from;
158 rec->to = to; 158 rec->to = to;
159 events_buffer_.Enqueue(evt_rec); 159 events_buffer_.Enqueue(evt_rec);
160 } 160 }
161 161
162 162
163 void ProfilerEventsProcessor::RegExpCodeCreateEvent( 163 void ProfilerEventsProcessor::RegExpCodeCreateEvent(
164 Logger::LogEventsAndTags tag, 164 Logger::LogEventsAndTags tag,
165 const char* prefix, 165 const char* prefix,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 void CpuProfiler::CodeMoveEvent(Address from, Address to) { 396 void CpuProfiler::CodeMoveEvent(Address from, Address to) {
397 singleton_->processor_->CodeMoveEvent(from, to); 397 singleton_->processor_->CodeMoveEvent(from, to);
398 } 398 }
399 399
400 400
401 void CpuProfiler::CodeDeleteEvent(Address from) { 401 void CpuProfiler::CodeDeleteEvent(Address from) {
402 singleton_->processor_->CodeDeleteEvent(from); 402 singleton_->processor_->CodeDeleteEvent(from);
403 } 403 }
404 404
405 405
406 void CpuProfiler::SFIMoveEvent(Address from, Address to) { 406 void CpuProfiler::SharedFunctionMoveEvent(Address from, Address to) {
407 singleton_->processor_->SFIMoveEvent(from, to); 407 singleton_->processor_->SharedFunctionMoveEvent(from, to);
408 } 408 }
409 409
410 410
411 void CpuProfiler::GetterCallbackEvent(String* name, Address entry_point) { 411 void CpuProfiler::GetterCallbackEvent(String* name, Address entry_point) {
412 singleton_->processor_->CallbackCreateEvent( 412 singleton_->processor_->CallbackCreateEvent(
413 Logger::CALLBACK_TAG, "get ", name, entry_point); 413 Logger::CALLBACK_TAG, "get ", name, entry_point);
414 } 414 }
415 415
416 416
417 void CpuProfiler::RegExpCodeCreateEvent(Code* code, String* source) { 417 void CpuProfiler::RegExpCodeCreateEvent(Code* code, String* source) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void CpuProfiler::TearDown() { 545 void CpuProfiler::TearDown() {
546 #ifdef ENABLE_LOGGING_AND_PROFILING 546 #ifdef ENABLE_LOGGING_AND_PROFILING
547 if (singleton_ != NULL) { 547 if (singleton_ != NULL) {
548 delete singleton_; 548 delete singleton_;
549 } 549 }
550 singleton_ = NULL; 550 singleton_ = NULL;
551 #endif 551 #endif
552 } 552 }
553 553
554 } } // namespace v8::internal 554 } } // namespace v8::internal
OLDNEW
« src/cpu-profiler.h ('K') | « src/cpu-profiler.h ('k') | src/cpu-profiler-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698