OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium 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 "core/testing/WorkerInternals.h" | 5 #include "core/testing/WorkerInternals.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
8 #include "core/frame/Deprecation.h" | 8 #include "core/frame/Deprecation.h" |
9 #include "core/frame/UseCounter.h" | 9 #include "core/frame/UseCounter.h" |
10 #include "core/testing/OriginTrialsTest.h" | 10 #include "core/testing/OriginTrialsTest.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 UseCounter::count(scriptState->getExecutionContext(), | 23 UseCounter::count(scriptState->getExecutionContext(), |
24 static_cast<UseCounter::Feature>(feature)); | 24 static_cast<UseCounter::Feature>(feature)); |
25 } | 25 } |
26 | 26 |
27 void WorkerInternals::countDeprecation(ScriptState* scriptState, | 27 void WorkerInternals::countDeprecation(ScriptState* scriptState, |
28 uint32_t feature) { | 28 uint32_t feature) { |
29 Deprecation::countDeprecation(scriptState->getExecutionContext(), | 29 Deprecation::countDeprecation(scriptState->getExecutionContext(), |
30 static_cast<UseCounter::Feature>(feature)); | 30 static_cast<UseCounter::Feature>(feature)); |
31 } | 31 } |
32 | 32 |
| 33 void WorkerInternals::collectGarbage(ScriptState* scriptState) { |
| 34 scriptState->isolate()->RequestGarbageCollectionForTesting( |
| 35 v8::Isolate::kFullGarbageCollection); |
| 36 } |
| 37 |
33 } // namespace blink | 38 } // namespace blink |
OLD | NEW |