OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/context-measure.h" | 5 #include "src/context-measure.h" |
6 | 6 |
7 #include "src/base/logging.h" | 7 #include "src/base/logging.h" |
8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 object->IterateBody(map->instance_type(), size, this); | 67 object->IterateBody(map->instance_type(), size, this); |
68 } | 68 } |
69 | 69 |
70 | 70 |
71 void ContextMeasure::VisitPointers(Object** start, Object** end) { | 71 void ContextMeasure::VisitPointers(Object** start, Object** end) { |
72 for (Object** current = start; current < end; current++) { | 72 for (Object** current = start; current < end; current++) { |
73 if ((*current)->IsSmi()) continue; | 73 if ((*current)->IsSmi()) continue; |
74 MeasureObject(HeapObject::cast(*current)); | 74 MeasureObject(HeapObject::cast(*current)); |
75 } | 75 } |
76 } | 76 } |
77 } | 77 } // namespace internal |
78 } // namespace v8::internal | 78 } // namespace v8 |
OLD | NEW |