OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <cmath> | 5 #include <cmath> |
| 6 #include <iostream> |
6 #include <limits> | 7 #include <limits> |
7 | 8 |
8 #include "src/objects.h" | 9 #include "src/objects.h" |
9 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
10 | 11 |
11 #include "src/handles.h" | 12 #include "src/handles.h" |
12 #include "src/handles-inl.h" | 13 #include "src/handles-inl.h" |
13 | 14 |
14 #include "src/heap/heap.h" | 15 #include "src/heap/heap.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 23 matching lines...) Expand all Loading... |
39 CheckEqualRounded(1.193, Heap::HeapGrowingFactor(200, 1)); | 40 CheckEqualRounded(1.193, Heap::HeapGrowingFactor(200, 1)); |
40 CheckEqualRounded(1.121, Heap::HeapGrowingFactor(300, 1)); | 41 CheckEqualRounded(1.121, Heap::HeapGrowingFactor(300, 1)); |
41 CheckEqualRounded(Heap::HeapGrowingFactor(300, 1), | 42 CheckEqualRounded(Heap::HeapGrowingFactor(300, 1), |
42 Heap::HeapGrowingFactor(600, 2)); | 43 Heap::HeapGrowingFactor(600, 2)); |
43 CheckEqualRounded(Heap::kMinHeapGrowingFactor, | 44 CheckEqualRounded(Heap::kMinHeapGrowingFactor, |
44 Heap::HeapGrowingFactor(400, 1)); | 45 Heap::HeapGrowingFactor(400, 1)); |
45 } | 46 } |
46 | 47 |
47 } // namespace internal | 48 } // namespace internal |
48 } // namespace v8 | 49 } // namespace v8 |
OLD | NEW |