BufferBuilder.cpp 871 B

123456789101112131415161718192021222324252627282930
  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. #include "CommonDataStructuresPch.h"
  6. #include "Option.h"
  7. #include "ImmutableList.h"
  8. #include "BufferBuilder.h"
  9. namespace Js
  10. {
  11. #if DBG
  12. void
  13. BufferBuilder::TraceOutput(byte * buffer, uint32 size) const
  14. {
  15. if (PHASE_TRACE1(Js::ByteCodeSerializationPhase))
  16. {
  17. Output::Print(L"%08X: %-40s:", this->offset, this->clue);
  18. for (uint i = 0; i < size; i ++)
  19. {
  20. Output::Print(L" %02x", buffer[this->offset + i]);
  21. }
  22. Output::Print(L"\n");
  23. }
  24. }
  25. #endif
  26. };