| 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 <limits> | 5 #include <limits> |
| 6 | 6 |
| 7 #include "src/heap/gc-idle-time-handler.h" | 7 #include "src/heap/gc-idle-time-handler.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // Emulate mutator work. | 339 // Emulate mutator work. |
| 340 for (int i = 0; i < GCIdleTimeHandler::kIdleScavengeThreshold; i++) { | 340 for (int i = 0; i < GCIdleTimeHandler::kIdleScavengeThreshold; i++) { |
| 341 handler()->NotifyScavenge(); | 341 handler()->NotifyScavenge(); |
| 342 } | 342 } |
| 343 action = handler()->Compute(0, heap_state); | 343 action = handler()->Compute(0, heap_state); |
| 344 EXPECT_EQ(DO_NOTHING, action.type); | 344 EXPECT_EQ(DO_NOTHING, action.type); |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace internal | 347 } // namespace internal |
| 348 } // namespace v8 | 348 } // namespace v8 |
| OLD | NEW |