| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ASSERT_SCOPE_H_ | 5 #ifndef V8_ASSERT_SCOPE_H_ |
| 6 #define V8_ASSERT_SCOPE_H_ | 6 #define V8_ASSERT_SCOPE_H_ |
| 7 | 7 |
| 8 #include "allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "platform.h" | 9 #include "src/platform.h" |
| 10 #include "utils.h" | 10 #include "src/utils.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 class Isolate; | 15 class Isolate; |
| 16 | 16 |
| 17 enum PerThreadAssertType { | 17 enum PerThreadAssertType { |
| 18 HEAP_ALLOCATION_ASSERT, | 18 HEAP_ALLOCATION_ASSERT, |
| 19 HANDLE_ALLOCATION_ASSERT, | 19 HANDLE_ALLOCATION_ASSERT, |
| 20 HANDLE_DEREFERENCE_ASSERT, | 20 HANDLE_DEREFERENCE_ASSERT, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, false> | 250 typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, false> |
| 251 DisallowDeoptimization; | 251 DisallowDeoptimization; |
| 252 | 252 |
| 253 // Scope to introduce an exception to DisallowDeoptimization. | 253 // Scope to introduce an exception to DisallowDeoptimization. |
| 254 typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, true> | 254 typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, true> |
| 255 AllowDeoptimization; | 255 AllowDeoptimization; |
| 256 | 256 |
| 257 } } // namespace v8::internal | 257 } } // namespace v8::internal |
| 258 | 258 |
| 259 #endif // V8_ASSERT_SCOPE_H_ | 259 #endif // V8_ASSERT_SCOPE_H_ |
| OLD | NEW |