Changeset 57192 in webkit for trunk/JavaScriptCore/runtime/Terminator.h
- Timestamp:
- Apr 6, 2010, 9:38:23 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Terminator.h
r57191 r57192 1 1 /* 2 * Copyright (C) 20 08 Apple Inc. All rights reserved.2 * Copyright (C) 2010 Google Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 11 11 * notice, this list of conditions and the following disclaimer in the 12 12 * documentation and/or other materials provided with the distribution. 13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of13 * 3. Neither the name of Google Inc. ("Google") nor the names of 14 14 * its contributors may be used to endorse or promote products derived 15 15 * from this software without specific prior written permission. … … 27 27 */ 28 28 29 #ifndef ExceptionHelpers_h 30 #define ExceptionHelpers_h 31 29 #ifndef Terminator_h 30 #define Terminator_h 32 31 33 32 namespace JSC { 34 33 35 class CodeBlock; 36 class ExecState; 37 class Identifier; 38 class JSGlobalData; 39 class JSNotAnObjectErrorStub; 40 class JSObject; 41 class JSValue; 42 class Node; 43 struct Instruction; 44 45 JSValue createInterruptedExecutionException(JSGlobalData*); 46 JSValue createStackOverflowError(ExecState*); 47 JSValue createTypeError(ExecState*, const char* message); 48 JSValue createUndefinedVariableError(ExecState*, const Identifier&, unsigned bytecodeOffset, CodeBlock*); 49 JSNotAnObjectErrorStub* createNotAnObjectErrorStub(ExecState*, bool isNull); 50 JSObject* createInvalidParamError(ExecState*, const char* op, JSValue, unsigned bytecodeOffset, CodeBlock*); 51 JSObject* createNotAConstructorError(ExecState*, JSValue, unsigned bytecodeOffset, CodeBlock*); 52 JSValue createNotAFunctionError(ExecState*, JSValue, unsigned bytecodeOffset, CodeBlock*); 53 JSObject* createNotAnObjectError(ExecState*, JSNotAnObjectErrorStub*, unsigned bytecodeOffset, CodeBlock*); 54 JSValue throwOutOfMemoryError(ExecState*); 34 class Terminator { 35 public: 36 Terminator() : m_shouldTerminate(false) { } 37 38 void terminateSoon() { m_shouldTerminate = true; } 39 bool shouldTerminate() const { return m_shouldTerminate; } 40 41 private: 42 bool m_shouldTerminate; 43 }; 55 44 56 45 } // namespace JSC 57 46 58 #endif // ExceptionHelpers_h47 #endif // Terminator_h
Note:
See TracChangeset
for help on using the changeset viewer.