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 RUNTIME_PROFILER_TICK = 1 << 5, | 44 RUNTIME_PROFILER_TICK = 1 << 5, |
45 GC_REQUEST = 1 << 6 | 45 GC_REQUEST = 1 << 6, |
| 46 CODE_READY = 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 189 |
189 bool IsStackOverflow(); | 190 bool IsStackOverflow(); |
190 bool IsPreempted(); | 191 bool IsPreempted(); |
191 void Preempt(); | 192 void Preempt(); |
192 bool IsInterrupted(); | 193 bool IsInterrupted(); |
193 void Interrupt(); | 194 void Interrupt(); |
194 bool IsTerminateExecution(); | 195 bool IsTerminateExecution(); |
195 void TerminateExecution(); | 196 void TerminateExecution(); |
196 bool IsRuntimeProfilerTick(); | 197 bool IsRuntimeProfilerTick(); |
197 void RequestRuntimeProfilerTick(); | 198 void RequestRuntimeProfilerTick(); |
| 199 bool IsCodeReadyEvent(); |
| 200 void RequestCodeReadyEvent(); |
198 #ifdef ENABLE_DEBUGGER_SUPPORT | 201 #ifdef ENABLE_DEBUGGER_SUPPORT |
199 bool IsDebugBreak(); | 202 bool IsDebugBreak(); |
200 void DebugBreak(); | 203 void DebugBreak(); |
201 bool IsDebugCommand(); | 204 bool IsDebugCommand(); |
202 void DebugCommand(); | 205 void DebugCommand(); |
203 #endif | 206 #endif |
204 bool IsGCRequest(); | 207 bool IsGCRequest(); |
205 void RequestGC(); | 208 void RequestGC(); |
206 void Continue(InterruptFlag after_what); | 209 void Continue(InterruptFlag after_what); |
207 | 210 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 friend class StackLimitCheck; | 304 friend class StackLimitCheck; |
302 friend class PostponeInterruptsScope; | 305 friend class PostponeInterruptsScope; |
303 | 306 |
304 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 307 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
305 }; | 308 }; |
306 | 309 |
307 | 310 |
308 } } // namespace v8::internal | 311 } } // namespace v8::internal |
309 | 312 |
310 #endif // V8_EXECUTION_H_ | 313 #endif // V8_EXECUTION_H_ |
OLD | NEW |