| 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 "include/v8stdint.h" | 8 #include <stdint.h> |
| 9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 // Forward declarations. | 14 // Forward declarations. |
| 15 class Isolate; | 15 class Isolate; |
| 16 class PerThreadAssertData; | 16 class PerThreadAssertData; |
| 17 | 17 |
| 18 | 18 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Scope to document where we do not expect deoptimization. | 175 // Scope to document where we do not expect deoptimization. |
| 176 typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, false> | 176 typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, false> |
| 177 DisallowCompilation; | 177 DisallowCompilation; |
| 178 | 178 |
| 179 // Scope to introduce an exception to DisallowDeoptimization. | 179 // Scope to introduce an exception to DisallowDeoptimization. |
| 180 typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, true> | 180 typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, true> |
| 181 AllowCompilation; | 181 AllowCompilation; |
| 182 } } // namespace v8::internal | 182 } } // namespace v8::internal |
| 183 | 183 |
| 184 #endif // V8_ASSERT_SCOPE_H_ | 184 #endif // V8_ASSERT_SCOPE_H_ |
| OLD | NEW |