rust-v8 137.2.0
Source: https://static.crates.io/crates/v8/v8-137.2.0.crate
Archive SHA-256: d2b387c1c5731284e756c03280032068e68e5b52f6c4714492403c30f650ad52

These notices are preserved from the upstream source distribution.
This may include notices for upstream components not used in iOpenPod.
Each component retains its own license; inclusion is not relicensing.

========================================================================
Source file: v8-137.2.0/third_party/highway/src/debian/copyright
========================================================================

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: highway

Files: *
Copyright: 2020 Google LLC
License: Apache-2.0
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 .
      http://www.apache.org/licenses/LICENSE-2.0
 .
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 .
 On Debian systems, the complete text of the Apache License, Version 2
 can be found in "/usr/share/common-licenses/Apache-2.0".

========================================================================
Source file: v8-137.2.0/v8/src/compiler/turboshaft/copying-phase.cc
========================================================================

// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/compiler/turboshaft/copying-phase.h"

namespace v8::internal::compiler::turboshaft {

int CountDecimalDigits(uint32_t value) {
  int result = 1;
  while (value > 9) {
    result++;
    value = value / 10;
  }
  return result;
}

std::ostream& operator<<(std::ostream& os, PaddingSpace padding) {
  if (padding.spaces > 10000) return os;
  for (int i = 0; i < padding.spaces; ++i) {
    os << ' ';
  }
  return os;
}

}  // namespace v8::internal::compiler::turboshaft
