| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6263 callback); | 6263 callback); |
| 6264 } | 6264 } |
| 6265 | 6265 |
| 6266 | 6266 |
| 6267 int HeapProfiler::GetPersistentHandleCount() { | 6267 int HeapProfiler::GetPersistentHandleCount() { |
| 6268 i::Isolate* isolate = i::Isolate::Current(); | 6268 i::Isolate* isolate = i::Isolate::Current(); |
| 6269 return isolate->global_handles()->NumberOfGlobalHandles(); | 6269 return isolate->global_handles()->NumberOfGlobalHandles(); |
| 6270 } | 6270 } |
| 6271 | 6271 |
| 6272 | 6272 |
| 6273 size_t HeapProfiler::GetMemorySizeUsedByProfiler() { |
| 6274 return i::HeapProfiler::GetMemorySizeUsedByProfiler(); |
| 6275 } |
| 6276 |
| 6277 |
| 6273 v8::Testing::StressType internal::Testing::stress_type_ = | 6278 v8::Testing::StressType internal::Testing::stress_type_ = |
| 6274 v8::Testing::kStressTypeOpt; | 6279 v8::Testing::kStressTypeOpt; |
| 6275 | 6280 |
| 6276 | 6281 |
| 6277 void Testing::SetStressRunType(Testing::StressType type) { | 6282 void Testing::SetStressRunType(Testing::StressType type) { |
| 6278 internal::Testing::set_stress_type(type); | 6283 internal::Testing::set_stress_type(type); |
| 6279 } | 6284 } |
| 6280 | 6285 |
| 6281 int Testing::GetStressRuns() { | 6286 int Testing::GetStressRuns() { |
| 6282 if (internal::FLAG_stress_runs != 0) return internal::FLAG_stress_runs; | 6287 if (internal::FLAG_stress_runs != 0) return internal::FLAG_stress_runs; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6396 | 6401 |
| 6397 | 6402 |
| 6398 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6403 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 6399 HandleScopeImplementer* scope_implementer = | 6404 HandleScopeImplementer* scope_implementer = |
| 6400 reinterpret_cast<HandleScopeImplementer*>(storage); | 6405 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 6401 scope_implementer->IterateThis(v); | 6406 scope_implementer->IterateThis(v); |
| 6402 return storage + ArchiveSpacePerThread(); | 6407 return storage + ArchiveSpacePerThread(); |
| 6403 } | 6408 } |
| 6404 | 6409 |
| 6405 } } // namespace v8::internal | 6410 } } // namespace v8::internal |
| OLD | NEW |