| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- // Common definitions used outside parser so that we don't have to include the whole Parser.h.
- #pragma once
- namespace Js
- {
- typedef int32 ByteCodeLabel; // Size of this match the offset size in layouts
- typedef uint32 RegSlot;
- typedef uint8 RegSlot_OneByte;
- typedef int8 RegSlot_OneSByte;
- typedef int16 RegSlot_TwoSByte;
- typedef uint16 RegSlot_TwoByte;
- }
- enum ErrorTypeEnum
- {
- kjstError,
- kjstEvalError,
- kjstRangeError,
- kjstReferenceError,
- kjstSyntaxError,
- kjstTypeError,
- kjstURIError,
- kjstCustomError,
- #ifdef ENABLE_PROJECTION
- kjstWinRTError,
- #endif
- };
- struct ParseNode;
- typedef ParseNode *ParseNodePtr;
- //
- // Below was moved from scrutil.h to share with chakradiag.
- //
- #define HR(sc) ((HRESULT)(sc))
- #define MAKE_HR(vbserr) (MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, vbserr))
|