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