| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 static void SetStackLimit(uintptr_t limit); | 152 static void SetStackLimit(uintptr_t limit); |
| 153 | 153 |
| 154 static Address address_of_jslimit() { | 154 static Address address_of_jslimit() { |
| 155 return reinterpret_cast<Address>(&thread_local_.jslimit_); | 155 return reinterpret_cast<Address>(&thread_local_.jslimit_); |
| 156 } | 156 } |
| 157 | 157 |
| 158 // Threading support. | 158 // Threading support. |
| 159 static char* ArchiveStackGuard(char* to); | 159 static char* ArchiveStackGuard(char* to); |
| 160 static char* RestoreStackGuard(char* from); | 160 static char* RestoreStackGuard(char* from); |
| 161 static int ArchiveSpacePerThread(); | 161 static int ArchiveSpacePerThread(); |
| 162 static void FreeThreadResources(); |
| 162 | 163 |
| 163 static bool IsStackOverflow(); | 164 static bool IsStackOverflow(); |
| 164 static bool IsPreempted(); | 165 static bool IsPreempted(); |
| 165 static void Preempt(); | 166 static void Preempt(); |
| 166 static bool IsInterrupted(); | 167 static bool IsInterrupted(); |
| 167 static void Interrupt(); | 168 static void Interrupt(); |
| 168 static bool IsTerminateExecution(); | 169 static bool IsTerminateExecution(); |
| 169 static void TerminateExecution(); | 170 static void TerminateExecution(); |
| 170 #ifdef ENABLE_DEBUGGER_SUPPORT | 171 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 171 static bool IsDebugBreak(); | 172 static bool IsDebugBreak(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 v8::Handle<v8::String> name); | 292 v8::Handle<v8::String> name); |
| 292 static v8::Handle<v8::Value> GC(const v8::Arguments& args); | 293 static v8::Handle<v8::Value> GC(const v8::Arguments& args); |
| 293 private: | 294 private: |
| 294 static const char* kSource; | 295 static const char* kSource; |
| 295 }; | 296 }; |
| 296 | 297 |
| 297 | 298 |
| 298 } } // namespace v8::internal | 299 } } // namespace v8::internal |
| 299 | 300 |
| 300 #endif // V8_EXECUTION_H_ | 301 #endif // V8_EXECUTION_H_ |
| OLD | NEW |