| OLD | NEW |
| 1 // Copyright 2009-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2009-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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 164 } |
| 165 | 165 |
| 166 | 166 |
| 167 void HeapProfiler::StopHeapAllocationsRecording() { | 167 void HeapProfiler::StopHeapAllocationsRecording() { |
| 168 StopHeapObjectsTracking(); | 168 StopHeapObjectsTracking(); |
| 169 is_tracking_allocations_ = false; | 169 is_tracking_allocations_ = false; |
| 170 DropCompiledCode(); | 170 DropCompiledCode(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 | 173 |
| 174 void HeapProfiler::RecordObjectAllocationFromMasm(Isolate* isolate, | |
| 175 Address obj, | |
| 176 int size) { | |
| 177 isolate->heap_profiler()->NewObjectEvent(obj, size); | |
| 178 } | |
| 179 | |
| 180 | |
| 181 void HeapProfiler::DropCompiledCode() { | 174 void HeapProfiler::DropCompiledCode() { |
| 182 Isolate* isolate = heap()->isolate(); | 175 Isolate* isolate = heap()->isolate(); |
| 183 HandleScope scope(isolate); | 176 HandleScope scope(isolate); |
| 184 | 177 |
| 185 if (FLAG_concurrent_recompilation) { | 178 if (FLAG_concurrent_recompilation) { |
| 186 isolate->optimizing_compiler_thread()->Flush(); | 179 isolate->optimizing_compiler_thread()->Flush(); |
| 187 } | 180 } |
| 188 | 181 |
| 189 Deoptimizer::DeoptimizeAll(isolate); | 182 Deoptimizer::DeoptimizeAll(isolate); |
| 190 | 183 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 210 if (kind == Code::FUNCTION || kind == Code::BUILTIN) { | 203 if (kind == Code::FUNCTION || kind == Code::BUILTIN) { |
| 211 function->set_code(*lazy_compile); | 204 function->set_code(*lazy_compile); |
| 212 shared->set_code(*lazy_compile); | 205 shared->set_code(*lazy_compile); |
| 213 } | 206 } |
| 214 } | 207 } |
| 215 } | 208 } |
| 216 } | 209 } |
| 217 | 210 |
| 218 | 211 |
| 219 } } // namespace v8::internal | 212 } } // namespace v8::internal |
| OLD | NEW |