OLD | NEW |
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 | 144 |
145 // | 145 // |
146 // StackTracer implementation | 146 // StackTracer implementation |
147 // | 147 // |
148 void StackTracer::Trace(Isolate* isolate, TickSample* sample) { | 148 void StackTracer::Trace(Isolate* isolate, TickSample* sample) { |
149 ASSERT(isolate->IsInitialized()); | 149 ASSERT(isolate->IsInitialized()); |
150 | 150 |
151 sample->tos = NULL; | 151 sample->tos = NULL; |
152 sample->frames_count = 0; | 152 sample->frames_count = 0; |
| 153 sample->has_external_callback = false; |
153 | 154 |
154 // Avoid collecting traces while doing GC. | 155 // Avoid collecting traces while doing GC. |
155 if (sample->state == GC) return; | 156 if (sample->state == GC) return; |
156 | 157 |
157 const Address js_entry_sp = | 158 const Address js_entry_sp = |
158 Isolate::js_entry_sp(isolate->thread_local_top()); | 159 Isolate::js_entry_sp(isolate->thread_local_top()); |
159 if (js_entry_sp == 0) { | 160 if (js_entry_sp == 0) { |
160 // Not executing JS now. | 161 // Not executing JS now. |
161 return; | 162 return; |
162 } | 163 } |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1657 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
1657 ASSERT(sampler->IsActive()); | 1658 ASSERT(sampler->IsActive()); |
1658 ScopedLock lock(mutex_); | 1659 ScopedLock lock(mutex_); |
1659 ASSERT(active_samplers_ != NULL); | 1660 ASSERT(active_samplers_ != NULL); |
1660 bool removed = active_samplers_->RemoveElement(sampler); | 1661 bool removed = active_samplers_->RemoveElement(sampler); |
1661 ASSERT(removed); | 1662 ASSERT(removed); |
1662 USE(removed); | 1663 USE(removed); |
1663 } | 1664 } |
1664 | 1665 |
1665 } } // namespace v8::internal | 1666 } } // namespace v8::internal |
OLD | NEW |