EHBailoutData.h 940 B

123456789101112131415161718192021222324252627
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace Js
  7. {
  8. class EHBailoutData
  9. {
  10. public:
  11. int32 nestingDepth;
  12. int32 catchOffset;
  13. EHBailoutData * parent;
  14. EHBailoutData * child;
  15. public:
  16. EHBailoutData() : nestingDepth(-1), catchOffset(0), parent(nullptr), child(nullptr) {}
  17. EHBailoutData(int32 nestingDepth, int32 catchOffset, EHBailoutData * parent)
  18. {
  19. this->nestingDepth = nestingDepth;
  20. this->catchOffset = catchOffset;
  21. this->parent = parent;
  22. this->child = nullptr;
  23. }
  24. };
  25. }