| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 inline void set_interrupt_limits(const ExecutionAccess& lock); | 275 inline void set_interrupt_limits(const ExecutionAccess& lock); |
| 276 | 276 |
| 277 // Reset limits to actual values. For example after handling interrupt. | 277 // Reset limits to actual values. For example after handling interrupt. |
| 278 // You should hold the ExecutionAccess lock when calling this method. | 278 // You should hold the ExecutionAccess lock when calling this method. |
| 279 inline void reset_limits(const ExecutionAccess& lock); | 279 inline void reset_limits(const ExecutionAccess& lock); |
| 280 | 280 |
| 281 // Enable or disable interrupts. | 281 // Enable or disable interrupts. |
| 282 void EnableInterrupts(); | 282 void EnableInterrupts(); |
| 283 void DisableInterrupts(); | 283 void DisableInterrupts(); |
| 284 | 284 |
| 285 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_A64 | 285 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 |
| 286 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); | 286 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe); |
| 287 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); | 287 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8); |
| 288 #else | 288 #else |
| 289 static const uintptr_t kInterruptLimit = 0xfffffffe; | 289 static const uintptr_t kInterruptLimit = 0xfffffffe; |
| 290 static const uintptr_t kIllegalLimit = 0xfffffff8; | 290 static const uintptr_t kIllegalLimit = 0xfffffff8; |
| 291 #endif | 291 #endif |
| 292 | 292 |
| 293 class ThreadLocal { | 293 class ThreadLocal { |
| 294 public: | 294 public: |
| 295 ThreadLocal() { Clear(); } | 295 ThreadLocal() { Clear(); } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 friend class StackLimitCheck; | 331 friend class StackLimitCheck; |
| 332 friend class PostponeInterruptsScope; | 332 friend class PostponeInterruptsScope; |
| 333 | 333 |
| 334 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 334 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 | 337 |
| 338 } } // namespace v8::internal | 338 } } // namespace v8::internal |
| 339 | 339 |
| 340 #endif // V8_EXECUTION_H_ | 340 #endif // V8_EXECUTION_H_ |
| OLD | NEW |