OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 inline void set_interrupt_limits(const ExecutionAccess& lock); | 274 inline void set_interrupt_limits(const ExecutionAccess& lock); |
275 | 275 |
276 // Reset limits to actual values. For example after handling interrupt. | 276 // Reset limits to actual values. For example after handling interrupt. |
277 // You should hold the ExecutionAccess lock when calling this method. | 277 // You should hold the ExecutionAccess lock when calling this method. |
278 inline void reset_limits(const ExecutionAccess& lock); | 278 inline void reset_limits(const ExecutionAccess& lock); |
279 | 279 |
280 // Enable or disable interrupts. | 280 // Enable or disable interrupts. |
281 void EnableInterrupts(); | 281 void EnableInterrupts(); |
282 void DisableInterrupts(); | 282 void DisableInterrupts(); |
283 | 283 |
284 #if V8_TARGET_ARCH_X64 | 284 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_A64 |
285 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); | 285 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); |
286 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); | 286 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); |
287 #else | 287 #else |
288 static const uintptr_t kInterruptLimit = 0xfffffffe; | 288 static const uintptr_t kInterruptLimit = 0xfffffffe; |
289 static const uintptr_t kIllegalLimit = 0xfffffff8; | 289 static const uintptr_t kIllegalLimit = 0xfffffff8; |
290 #endif | 290 #endif |
291 | 291 |
292 class ThreadLocal { | 292 class ThreadLocal { |
293 public: | 293 public: |
294 ThreadLocal() { Clear(); } | 294 ThreadLocal() { Clear(); } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 friend class StackLimitCheck; | 330 friend class StackLimitCheck; |
331 friend class PostponeInterruptsScope; | 331 friend class PostponeInterruptsScope; |
332 | 332 |
333 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 333 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
334 }; | 334 }; |
335 | 335 |
336 | 336 |
337 } } // namespace v8::internal | 337 } } // namespace v8::internal |
338 | 338 |
339 #endif // V8_EXECUTION_H_ | 339 #endif // V8_EXECUTION_H_ |
OLD | NEW |