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 23 matching lines...) Expand all Loading... |
34 namespace internal { | 34 namespace internal { |
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 }; | 46 }; |
46 | 47 |
47 | 48 |
48 class Isolate; | 49 class Isolate; |
49 | 50 |
50 | 51 |
51 class Execution : public AllStatic { | 52 class Execution : public AllStatic { |
52 public: | 53 public: |
53 // Call a function, the caller supplies a receiver and an array | 54 // Call a function, the caller supplies a receiver and an array |
54 // of arguments. Arguments are Object* type. After function returns, | 55 // of arguments. Arguments are Object* type. After function returns, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 bool IsTerminateExecution(); | 191 bool IsTerminateExecution(); |
191 void TerminateExecution(); | 192 void TerminateExecution(); |
192 #ifdef ENABLE_DEBUGGER_SUPPORT | 193 #ifdef ENABLE_DEBUGGER_SUPPORT |
193 bool IsDebugBreak(); | 194 bool IsDebugBreak(); |
194 void DebugBreak(); | 195 void DebugBreak(); |
195 bool IsDebugCommand(); | 196 bool IsDebugCommand(); |
196 void DebugCommand(); | 197 void DebugCommand(); |
197 #endif | 198 #endif |
198 bool IsGCRequest(); | 199 bool IsGCRequest(); |
199 void RequestGC(); | 200 void RequestGC(); |
| 201 bool IsFullDeopt(); |
| 202 void FullDeopt(); |
200 void Continue(InterruptFlag after_what); | 203 void Continue(InterruptFlag after_what); |
201 | 204 |
202 // This provides an asynchronous read of the stack limits for the current | 205 // This provides an asynchronous read of the stack limits for the current |
203 // thread. There are no locks protecting this, but it is assumed that you | 206 // thread. There are no locks protecting this, but it is assumed that you |
204 // have the global V8 lock if you are using multiple V8 threads. | 207 // have the global V8 lock if you are using multiple V8 threads. |
205 uintptr_t climit() { | 208 uintptr_t climit() { |
206 return thread_local_.climit_; | 209 return thread_local_.climit_; |
207 } | 210 } |
208 uintptr_t real_climit() { | 211 uintptr_t real_climit() { |
209 return thread_local_.real_climit_; | 212 return thread_local_.real_climit_; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 friend class StackLimitCheck; | 298 friend class StackLimitCheck; |
296 friend class PostponeInterruptsScope; | 299 friend class PostponeInterruptsScope; |
297 | 300 |
298 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 301 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
299 }; | 302 }; |
300 | 303 |
301 | 304 |
302 } } // namespace v8::internal | 305 } } // namespace v8::internal |
303 | 306 |
304 #endif // V8_EXECUTION_H_ | 307 #endif // V8_EXECUTION_H_ |
OLD | NEW |