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

Side by Side Diff: src/log.cc

Issue 3410012: Merge r5467..r5469 into branches/2.3.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.3/
Patch Set: '' Created 10 years, 3 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/ia32/frames-ia32.cc ('k') | src/mips/frames-mips.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 int i = 0; 164 int i = 0;
165 const Address callback = VMState::external_callback(); 165 const Address callback = VMState::external_callback();
166 if (callback != NULL) { 166 if (callback != NULL) {
167 sample->stack[i++] = callback; 167 sample->stack[i++] = callback;
168 } 168 }
169 169
170 SafeStackTraceFrameIterator it(sample->fp, sample->sp, 170 SafeStackTraceFrameIterator it(sample->fp, sample->sp,
171 sample->sp, js_entry_sp); 171 sample->sp, js_entry_sp);
172 while (!it.done() && i < TickSample::kMaxFramesCount) { 172 while (!it.done() && i < TickSample::kMaxFramesCount) {
173 sample->stack[i++] = reinterpret_cast<Address>(it.frame()->function()); 173 sample->stack[i++] =
174 reinterpret_cast<Address>(it.frame()->function_slot_object()) -
175 kHeapObjectTag;
174 it.Advance(); 176 it.Advance();
175 } 177 }
176 sample->frames_count = i; 178 sample->frames_count = i;
177 } 179 }
178 180
179 181
180 // 182 //
181 // Ticker used to provide ticks to the profiler and the sliding state 183 // Ticker used to provide ticks to the profiler and the sliding state
182 // window. 184 // window.
183 // 185 //
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 } 1554 }
1553 // Otherwise, if the sliding state window computation has not been 1555 // Otherwise, if the sliding state window computation has not been
1554 // started we do it now. 1556 // started we do it now.
1555 if (sliding_state_window_ == NULL) { 1557 if (sliding_state_window_ == NULL) {
1556 sliding_state_window_ = new SlidingStateWindow(); 1558 sliding_state_window_ = new SlidingStateWindow();
1557 } 1559 }
1558 #endif 1560 #endif
1559 } 1561 }
1560 1562
1561 } } // namespace v8::internal 1563 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/frames-ia32.cc ('k') | src/mips/frames-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698