| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 | 36 |
| 37 // Flag used to set the interrupt causes. | 37 // Flag used to set the interrupt causes. |
| 38 enum InterruptFlag { | 38 enum InterruptFlag { |
| 39 INTERRUPT = 1 << 0, | 39 INTERRUPT = 1 << 0, |
| 40 DEBUGBREAK = 1 << 1, | 40 DEBUGBREAK = 1 << 1, |
| 41 DEBUGCOMMAND = 1 << 2, | 41 DEBUGCOMMAND = 1 << 2, |
| 42 PREEMPT = 1 << 3, | 42 PREEMPT = 1 << 3, |
| 43 TERMINATE = 1 << 4, | 43 TERMINATE = 1 << 4, |
| 44 GC_REQUEST = 1 << 5, | 44 GC_REQUEST = 1 << 5, |
| 45 FULL_DEOPT = 1 << 6 | 45 FULL_DEOPT = 1 << 6, |
| 46 INSTALL_CODE = 1 << 7 |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 | 49 |
| 49 class Isolate; | 50 class Isolate; |
| 50 | 51 |
| 51 | 52 |
| 52 class Execution : public AllStatic { | 53 class Execution : public AllStatic { |
| 53 public: | 54 public: |
| 54 // Call a function, the caller supplies a receiver and an array | 55 // Call a function, the caller supplies a receiver and an array |
| 55 // of arguments. Arguments are Object* type. After function returns, | 56 // of arguments. Arguments are Object* type. After function returns, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void TerminateExecution(); | 207 void TerminateExecution(); |
| 207 void CancelTerminateExecution(); | 208 void CancelTerminateExecution(); |
| 208 #ifdef ENABLE_DEBUGGER_SUPPORT | 209 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 209 bool IsDebugBreak(); | 210 bool IsDebugBreak(); |
| 210 void DebugBreak(); | 211 void DebugBreak(); |
| 211 bool IsDebugCommand(); | 212 bool IsDebugCommand(); |
| 212 void DebugCommand(); | 213 void DebugCommand(); |
| 213 #endif | 214 #endif |
| 214 bool IsGCRequest(); | 215 bool IsGCRequest(); |
| 215 void RequestGC(); | 216 void RequestGC(); |
| 217 bool IsInstallCodeRequest(); |
| 218 void RequestInstallCode(); |
| 216 bool IsFullDeopt(); | 219 bool IsFullDeopt(); |
| 217 void FullDeopt(); | 220 void FullDeopt(); |
| 218 void Continue(InterruptFlag after_what); | 221 void Continue(InterruptFlag after_what); |
| 219 | 222 |
| 220 // This provides an asynchronous read of the stack limits for the current | 223 // This provides an asynchronous read of the stack limits for the current |
| 221 // thread. There are no locks protecting this, but it is assumed that you | 224 // thread. There are no locks protecting this, but it is assumed that you |
| 222 // have the global V8 lock if you are using multiple V8 threads. | 225 // have the global V8 lock if you are using multiple V8 threads. |
| 223 uintptr_t climit() { | 226 uintptr_t climit() { |
| 224 return thread_local_.climit_; | 227 return thread_local_.climit_; |
| 225 } | 228 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 friend class StackLimitCheck; | 316 friend class StackLimitCheck; |
| 314 friend class PostponeInterruptsScope; | 317 friend class PostponeInterruptsScope; |
| 315 | 318 |
| 316 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 319 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 317 }; | 320 }; |
| 318 | 321 |
| 319 | 322 |
| 320 } } // namespace v8::internal | 323 } } // namespace v8::internal |
| 321 | 324 |
| 322 #endif // V8_EXECUTION_H_ | 325 #endif // V8_EXECUTION_H_ |
| OLD | NEW |