| 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 #ifndef V8_CONTEXT_MEASURE_H_ | 5 #ifndef V8_CONTEXT_MEASURE_H_ |
| 6 #define V8_CONTEXT_MEASURE_H_ | 6 #define V8_CONTEXT_MEASURE_H_ |
| 7 | 7 |
| 8 #include "src/snapshot/serialize.h" | 8 #include "src/address-map.h" |
| 9 #include "src/assert-scope.h" |
| 10 #include "src/objects.h" |
| 9 | 11 |
| 10 namespace v8 { | 12 namespace v8 { |
| 11 namespace internal { | 13 namespace internal { |
| 12 | 14 |
| 13 class ContextMeasure : public ObjectVisitor { | 15 class ContextMeasure : public ObjectVisitor { |
| 14 public: | 16 public: |
| 15 explicit ContextMeasure(Context* context); | 17 explicit ContextMeasure(Context* context); |
| 16 | 18 |
| 17 int Size() { return size_; } | 19 int Size() { return size_; } |
| 18 int Count() { return count_; } | 20 int Count() { return count_; } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 int size_; | 40 int size_; |
| 39 | 41 |
| 40 DisallowHeapAllocation no_gc_; | 42 DisallowHeapAllocation no_gc_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(ContextMeasure); | 44 DISALLOW_COPY_AND_ASSIGN(ContextMeasure); |
| 43 }; | 45 }; |
| 44 } // namespace internal | 46 } // namespace internal |
| 45 } // namespace v8 | 47 } // namespace v8 |
| 46 | 48 |
| 47 #endif // V8_CONTEXT_MEASURE_H_ | 49 #endif // V8_CONTEXT_MEASURE_H_ |
| OLD | NEW |