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 #ifndef V8_EXECUTION_H_ | 5 #ifndef V8_EXECUTION_H_ |
6 #define V8_EXECUTION_H_ | 6 #define V8_EXECUTION_H_ |
7 | 7 |
8 #include "handles.h" | 8 #include "handles.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // it has been set up. | 148 // it has been set up. |
149 void ClearThread(const ExecutionAccess& lock); | 149 void ClearThread(const ExecutionAccess& lock); |
150 | 150 |
151 bool IsStackOverflow(); | 151 bool IsStackOverflow(); |
152 | 152 |
153 #define INTERRUPT_LIST(V) \ | 153 #define INTERRUPT_LIST(V) \ |
154 V(DEBUGBREAK, DebugBreak) \ | 154 V(DEBUGBREAK, DebugBreak) \ |
155 V(DEBUGCOMMAND, DebugCommand) \ | 155 V(DEBUGCOMMAND, DebugCommand) \ |
156 V(TERMINATE_EXECUTION, TerminateExecution) \ | 156 V(TERMINATE_EXECUTION, TerminateExecution) \ |
157 V(GC_REQUEST, GC) \ | 157 V(GC_REQUEST, GC) \ |
158 V(FULL_DEOPT, FullDeopt) \ | |
159 V(INSTALL_CODE, InstallCode) \ | 158 V(INSTALL_CODE, InstallCode) \ |
160 V(API_INTERRUPT, ApiInterrupt) \ | 159 V(API_INTERRUPT, ApiInterrupt) \ |
161 V(DEOPT_MARKED_ALLOCATION_SITES, DeoptMarkedAllocationSites) | 160 V(DEOPT_MARKED_ALLOCATION_SITES, DeoptMarkedAllocationSites) |
162 | 161 |
163 #define V(NAME, Name) \ | 162 #define V(NAME, Name) \ |
164 inline bool Check##Name() { return CheckInterrupt(1 << NAME); } \ | 163 inline bool Check##Name() { return CheckInterrupt(1 << NAME); } \ |
165 inline void Request##Name() { RequestInterrupt(1 << NAME); } \ | 164 inline void Request##Name() { RequestInterrupt(1 << NAME); } \ |
166 inline void Clear##Name() { ClearInterrupt(1 << NAME); } | 165 inline void Clear##Name() { ClearInterrupt(1 << NAME); } |
167 INTERRUPT_LIST(V) | 166 INTERRUPT_LIST(V) |
168 #undef V | 167 #undef V |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 friend class Isolate; | 277 friend class Isolate; |
279 friend class StackLimitCheck; | 278 friend class StackLimitCheck; |
280 friend class PostponeInterruptsScope; | 279 friend class PostponeInterruptsScope; |
281 | 280 |
282 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 281 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
283 }; | 282 }; |
284 | 283 |
285 } } // namespace v8::internal | 284 } } // namespace v8::internal |
286 | 285 |
287 #endif // V8_EXECUTION_H_ | 286 #endif // V8_EXECUTION_H_ |
OLD | NEW |