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 "src/handles.h" | 8 #include "src/handles.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 inline void set_interrupt_limits(const ExecutionAccess& lock); | 220 inline void set_interrupt_limits(const ExecutionAccess& lock); |
221 | 221 |
222 // Reset limits to actual values. For example after handling interrupt. | 222 // Reset limits to actual values. For example after handling interrupt. |
223 // You should hold the ExecutionAccess lock when calling this method. | 223 // You should hold the ExecutionAccess lock when calling this method. |
224 inline void reset_limits(const ExecutionAccess& lock); | 224 inline void reset_limits(const ExecutionAccess& lock); |
225 | 225 |
226 // Enable or disable interrupts. | 226 // Enable or disable interrupts. |
227 void EnableInterrupts(); | 227 void EnableInterrupts(); |
228 void DisableInterrupts(); | 228 void DisableInterrupts(); |
229 | 229 |
230 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 | 230 #if V8_TARGET_ARCH_64_BIT |
231 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); | 231 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); |
232 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); | 232 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); |
233 #else | 233 #else |
234 static const uintptr_t kInterruptLimit = 0xfffffffe; | 234 static const uintptr_t kInterruptLimit = 0xfffffffe; |
235 static const uintptr_t kIllegalLimit = 0xfffffff8; | 235 static const uintptr_t kIllegalLimit = 0xfffffff8; |
236 #endif | 236 #endif |
237 | 237 |
238 class ThreadLocal V8_FINAL { | 238 class ThreadLocal V8_FINAL { |
239 public: | 239 public: |
240 ThreadLocal() { Clear(); } | 240 ThreadLocal() { Clear(); } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 friend class Isolate; | 277 friend class Isolate; |
278 friend class StackLimitCheck; | 278 friend class StackLimitCheck; |
279 friend class PostponeInterruptsScope; | 279 friend class PostponeInterruptsScope; |
280 | 280 |
281 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 281 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
282 }; | 282 }; |
283 | 283 |
284 } } // namespace v8::internal | 284 } } // namespace v8::internal |
285 | 285 |
286 #endif // V8_EXECUTION_H_ | 286 #endif // V8_EXECUTION_H_ |
OLD | NEW |