| 1234567891011121314151617181920212223242526272829303132333435 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- #pragma once
- namespace Js
- {
- class EHBailoutData
- {
- public:
- int32 nestingDepth;
- int32 catchOffset;
- EHBailoutData * parent;
- EHBailoutData * child;
- public:
- EHBailoutData() : nestingDepth(-1), catchOffset(0), parent(nullptr), child(nullptr) {}
- EHBailoutData(int32 nestingDepth, int32 catchOffset, EHBailoutData * parent)
- {
- this->nestingDepth = nestingDepth;
- this->catchOffset = catchOffset;
- this->parent = parent;
- this->child = nullptr;
- }
- #if ENABLE_NATIVE_CODEGEN
- void Fixup(NativeCodeData::DataChunk* chunkList)
- {
- FixupNativeDataPointer(parent, chunkList);
- FixupNativeDataPointer(child, chunkList);
- }
- #endif
- };
- }
|