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

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

Issue 3301008: [Isolates] Add heap pointer to all maps and use map->heap() more. (Closed)
Patch Set: even more 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
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 406
407 HeapSnapshot* HeapProfiler::FindSnapshot(unsigned uid) { 407 HeapSnapshot* HeapProfiler::FindSnapshot(unsigned uid) {
408 HeapProfiler* profiler = Isolate::Current()->heap_profiler(); 408 HeapProfiler* profiler = Isolate::Current()->heap_profiler();
409 ASSERT(profiler != NULL); 409 ASSERT(profiler != NULL);
410 return profiler->snapshots_->GetSnapshot(uid); 410 return profiler->snapshots_->GetSnapshot(uid);
411 } 411 }
412 412
413 413
414 void HeapProfiler::ObjectMoveEvent(Address from, Address to) { 414 void HeapProfiler::ObjectMoveEvent(Address from, Address to) {
415 HeapProfiler* profiler = Isolate::Current()->heap_profiler(); 415 snapshots_->ObjectMoveEvent(from, to);
416 ASSERT(profiler != NULL);
417 profiler->snapshots_->ObjectMoveEvent(from, to);
418 } 416 }
419 417
420 418
421 const JSObjectsClusterTreeConfig::Key JSObjectsClusterTreeConfig::kNoKey; 419 const JSObjectsClusterTreeConfig::Key JSObjectsClusterTreeConfig::kNoKey;
422 const JSObjectsClusterTreeConfig::Value JSObjectsClusterTreeConfig::kNoValue; 420 const JSObjectsClusterTreeConfig::Value JSObjectsClusterTreeConfig::kNoValue;
423 421
424 422
425 ConstructorHeapProfile::ConstructorHeapProfile() 423 ConstructorHeapProfile::ConstructorHeapProfile()
426 : zscope_(DELETE_ON_EXIT) { 424 : zscope_(DELETE_ON_EXIT) {
427 } 425 }
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 isolate_->global_handles()->MakeWeak(handle.location(), 1089 isolate_->global_handles()->MakeWeak(handle.location(),
1092 static_cast<void*>(stack.start()), 1090 static_cast<void*>(stack.start()),
1093 StackWeakReferenceCallback); 1091 StackWeakReferenceCallback);
1094 } 1092 }
1095 1093
1096 1094
1097 #endif // ENABLE_LOGGING_AND_PROFILING 1095 #endif // ENABLE_LOGGING_AND_PROFILING
1098 1096
1099 1097
1100 } } // namespace v8::internal 1098 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698