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

Unified Diff: src/heap-snapshot-generator.cc

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix pedantic build (take2). Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-snapshot-generator.cc
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc
index f1bdc71cca03dc3cf1d0277d65a5f2997595f495..63916a268fb237d17afcc1c5ef7eac3b24863b88 100644
--- a/src/heap-snapshot-generator.cc
+++ b/src/heap-snapshot-generator.cc
@@ -1894,18 +1894,17 @@ bool V8HeapExplorer::IterateAndExtractSinglePass() {
bool V8HeapExplorer::IsEssentialObject(Object* object) {
- return object->IsHeapObject()
- && !object->IsOddball()
- && object != heap_->empty_byte_array()
- && object != heap_->empty_fixed_array()
- && object != heap_->empty_descriptor_array()
- && object != heap_->fixed_array_map()
- && object != heap_->cell_map()
- && object != heap_->global_property_cell_map()
- && object != heap_->shared_function_info_map()
- && object != heap_->free_space_map()
- && object != heap_->one_pointer_filler_map()
- && object != heap_->two_pointer_filler_map();
+ return object->IsHeapObject() && !object->IsOddball() &&
+ object != heap_->empty_byte_array() &&
+ object != heap_->empty_bytecode_array() &&
+ object != heap_->empty_fixed_array() &&
+ object != heap_->empty_descriptor_array() &&
+ object != heap_->fixed_array_map() && object != heap_->cell_map() &&
+ object != heap_->global_property_cell_map() &&
+ object != heap_->shared_function_info_map() &&
+ object != heap_->free_space_map() &&
+ object != heap_->one_pointer_filler_map() &&
+ object != heap_->two_pointer_filler_map();
}
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698