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 "src/assert-scope.h" | 5 #include "src/assert-scope.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/isolate-inl.h" | 9 #include "src/debug.h" |
| 10 #include "src/isolate.h" |
10 #include "src/utils.h" | 11 #include "src/utils.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 struct PerThreadAssertKeyConstructTrait final { | 18 struct PerThreadAssertKeyConstructTrait final { |
18 static void Construct(base::Thread::LocalStorageKey* key) { | 19 static void Construct(base::Thread::LocalStorageKey* key) { |
19 *key = base::Thread::CreateThreadLocalKey(); | 20 *key = base::Thread::CreateThreadLocalKey(); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 template class PerIsolateAssertScope<JAVASCRIPT_EXECUTION_THROWS, true>; | 147 template class PerIsolateAssertScope<JAVASCRIPT_EXECUTION_THROWS, true>; |
147 template class PerIsolateAssertScope<ALLOCATION_FAILURE_ASSERT, false>; | 148 template class PerIsolateAssertScope<ALLOCATION_FAILURE_ASSERT, false>; |
148 template class PerIsolateAssertScope<ALLOCATION_FAILURE_ASSERT, true>; | 149 template class PerIsolateAssertScope<ALLOCATION_FAILURE_ASSERT, true>; |
149 template class PerIsolateAssertScope<DEOPTIMIZATION_ASSERT, false>; | 150 template class PerIsolateAssertScope<DEOPTIMIZATION_ASSERT, false>; |
150 template class PerIsolateAssertScope<DEOPTIMIZATION_ASSERT, true>; | 151 template class PerIsolateAssertScope<DEOPTIMIZATION_ASSERT, true>; |
151 template class PerIsolateAssertScope<COMPILATION_ASSERT, false>; | 152 template class PerIsolateAssertScope<COMPILATION_ASSERT, false>; |
152 template class PerIsolateAssertScope<COMPILATION_ASSERT, true>; | 153 template class PerIsolateAssertScope<COMPILATION_ASSERT, true>; |
153 | 154 |
154 } // namespace internal | 155 } // namespace internal |
155 } // namespace v8 | 156 } // namespace v8 |
OLD | NEW |