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 26 matching lines...) Expand all Loading... |
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 INSTALL_CODE = 1 << 7, |
47 API_INTERRUPT = 1 << 8 | 47 API_INTERRUPT = 1 << 8, |
| 48 DEOPT_MARKED_CODE = 1 << 9 |
48 }; | 49 }; |
49 | 50 |
50 | 51 |
51 class Isolate; | 52 class Isolate; |
52 | 53 |
53 | 54 |
54 class Execution : public AllStatic { | 55 class Execution : public AllStatic { |
55 public: | 56 public: |
56 // Call a function, the caller supplies a receiver and an array | 57 // Call a function, the caller supplies a receiver and an array |
57 // of arguments. Arguments are Object* type. After function returns, | 58 // of arguments. Arguments are Object* type. After function returns, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 void DebugBreak(); | 215 void DebugBreak(); |
215 bool IsDebugCommand(); | 216 bool IsDebugCommand(); |
216 void DebugCommand(); | 217 void DebugCommand(); |
217 #endif | 218 #endif |
218 bool IsGCRequest(); | 219 bool IsGCRequest(); |
219 void RequestGC(); | 220 void RequestGC(); |
220 bool IsInstallCodeRequest(); | 221 bool IsInstallCodeRequest(); |
221 void RequestInstallCode(); | 222 void RequestInstallCode(); |
222 bool IsFullDeopt(); | 223 bool IsFullDeopt(); |
223 void FullDeopt(); | 224 void FullDeopt(); |
| 225 bool IsDeoptMarkedCode(); |
| 226 void DeoptMarkedCode(); |
224 void Continue(InterruptFlag after_what); | 227 void Continue(InterruptFlag after_what); |
225 | 228 |
226 void RequestInterrupt(InterruptCallback callback, void* data); | 229 void RequestInterrupt(InterruptCallback callback, void* data); |
227 void ClearInterrupt(); | 230 void ClearInterrupt(); |
228 bool IsAPIInterrupt(); | 231 bool IsAPIInterrupt(); |
229 void InvokeInterruptCallback(); | 232 void InvokeInterruptCallback(); |
230 | 233 |
231 // This provides an asynchronous read of the stack limits for the current | 234 // This provides an asynchronous read of the stack limits for the current |
232 // thread. There are no locks protecting this, but it is assumed that you | 235 // thread. There are no locks protecting this, but it is assumed that you |
233 // have the global V8 lock if you are using multiple V8 threads. | 236 // have the global V8 lock if you are using multiple V8 threads. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 friend class StackLimitCheck; | 330 friend class StackLimitCheck; |
328 friend class PostponeInterruptsScope; | 331 friend class PostponeInterruptsScope; |
329 | 332 |
330 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 333 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
331 }; | 334 }; |
332 | 335 |
333 | 336 |
334 } } // namespace v8::internal | 337 } } // namespace v8::internal |
335 | 338 |
336 #endif // V8_EXECUTION_H_ | 339 #endif // V8_EXECUTION_H_ |
OLD | NEW |