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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 } | 219 } |
220 uintptr_t real_jslimit() { | 220 uintptr_t real_jslimit() { |
221 return thread_local_.real_jslimit_; | 221 return thread_local_.real_jslimit_; |
222 } | 222 } |
223 Address address_of_jslimit() { | 223 Address address_of_jslimit() { |
224 return reinterpret_cast<Address>(&thread_local_.jslimit_); | 224 return reinterpret_cast<Address>(&thread_local_.jslimit_); |
225 } | 225 } |
226 Address address_of_real_jslimit() { | 226 Address address_of_real_jslimit() { |
227 return reinterpret_cast<Address>(&thread_local_.real_jslimit_); | 227 return reinterpret_cast<Address>(&thread_local_.real_jslimit_); |
228 } | 228 } |
| 229 bool ShouldPostponeInterrupts(); |
229 | 230 |
230 private: | 231 private: |
231 StackGuard(); | 232 StackGuard(); |
232 | 233 |
233 // You should hold the ExecutionAccess lock when calling this method. | 234 // You should hold the ExecutionAccess lock when calling this method. |
234 bool has_pending_interrupts(const ExecutionAccess& lock) { | 235 bool has_pending_interrupts(const ExecutionAccess& lock) { |
235 // Sanity check: We shouldn't be asking about pending interrupts | 236 // Sanity check: We shouldn't be asking about pending interrupts |
236 // unless we're not postponing them anymore. | 237 // unless we're not postponing them anymore. |
237 ASSERT(!should_postpone_interrupts(lock)); | 238 ASSERT(!should_postpone_interrupts(lock)); |
238 return thread_local_.interrupt_flags_ != 0; | 239 return thread_local_.interrupt_flags_ != 0; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 friend class StackLimitCheck; | 301 friend class StackLimitCheck; |
301 friend class PostponeInterruptsScope; | 302 friend class PostponeInterruptsScope; |
302 | 303 |
303 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 304 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
304 }; | 305 }; |
305 | 306 |
306 | 307 |
307 } } // namespace v8::internal | 308 } } // namespace v8::internal |
308 | 309 |
309 #endif // V8_EXECUTION_H_ | 310 #endif // V8_EXECUTION_H_ |
OLD | NEW |